-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/579 automatic dependency deduction #589
Merged
PengZheng
merged 45 commits into
master
from
feature/579-automatic-dependency-deduction
Jul 31, 2023
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
cda603c
Turn on build_all option when testing installed Celix.
PengZheng f0345cc
mDNSResponder does not compile on MacOS.
PengZheng 0979ee3
Fix typo.
PengZheng 58d0678
All build_ options are off by default so that users do not get what t…
PengZheng 0c216c8
Add missing build options.
PengZheng 7eef42e
Merge branch 'master' into feature/579-automatic-dependency-deduction
PengZheng 096e19f
Add options for log/shell api and log helper.
PengZheng e21fcae
Add automatic dependency deduction to shell/log/pubsub and improve cm…
PengZheng 9bc9aea
Fix compilation error.
PengZheng d3ba787
Use mDNSResponder package which supports cross-compilation.
PengZheng ba204b1
Improve deprecated header dependency specification.
PengZheng 276afaf
Improve dependency specification of RSA.
PengZheng 5543119
Merge branch 'master' into feature/579-automatic-dependency-deduction
PengZheng 46915e0
Add automatic dependency deduction to RSA.
PengZheng ecd5195
Add automatic dependency deduction to remaining libs.
PengZheng 277e537
Fix `conan create` errors.
PengZheng c09b8e6
Add automatic dependency deduction to examples, and remove DEPS from …
PengZheng dbebb57
Add missing dependency specifications.
PengZheng 2451c52
Update test_package to use celix API.
PengZheng 28e0fdf
Add missing test_package.
PengZheng 7325fe4
Use homebrew's libuuid.
PengZheng d1332ed
Use macOS's native libuuid.
PengZheng 6b8f116
Use mdnsresponder/1310.140.1
PengZheng ac3c1ce
Replace c99 with gnu99.
PengZheng 9ced95b
Use POSIX extension.
PengZheng 2c060bd
Revert "Use POSIX extension."
PengZheng 09edc8a
Use macOS-11 for build-brew.
PengZheng fd2c5f2
Recover Findlibuuid.cmake
PengZheng 3a36318
Recover Findlibuuid.cmake
PengZheng f3597df
Recover Findlibuuid.cmake
PengZheng 586e7b9
Add missing FindDNSSD.cmake
PengZheng f8bb018
Modularize error injectors.
PengZheng 2ab598f
Add conan create CI test.
PengZheng 7b184f2
Add install step for conan create CI test.
PengZheng 12094ff
Remove unnecessary find_package(CURL REQUIRED) when opting out etcd.
PengZheng 2870ad5
Fix zlib conflict for conan create CI test.
PengZheng 5ce5037
Add mac-build for conan create CI test.
PengZheng f90b9ad
Fix build profile for mac-build of conan create CI test.
PengZheng 97c6584
Fix find_package(CURL REQUIRED) for standalone etcd build.
PengZheng ebac477
Update standalone etcd to use cmake 3.18.
PengZheng 3edeabb
Update the way of setup environment variables for CLion.
PengZheng 049e1df
Exclude error_injector from Coverage.
PengZheng d908cfe
Rename error injects to exclude them from Coverage.
PengZheng 76d1f2b
Merge branch 'master' into feature/579-automatic-dependency-deduction
PengZheng c789b89
Enable ninja build for conan create.
PengZheng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Conan Create | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
|
||
ubuntu-build: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
compiler: [ [gcc,g++], [clang,clang++] ] | ||
type: [ Debug ] | ||
timeout-minutes: 120 | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3.3.0 | ||
- name: Install build dependencies | ||
run: | | ||
sudo pip install -U conan==1.59.0 | ||
sudo apt-get install -yq --no-install-recommends ninja-build | ||
- name: Setup Conan Profile | ||
env: | ||
CC: ${{ matrix.compiler[0] }} | ||
CXX: ${{ matrix.compiler[1] }} | ||
run: | | ||
# build profile | ||
conan profile new release --detect | ||
conan profile update settings.build_type=Release release | ||
#Note no backwards compatiblity for gcc5 needed, setting libcxx to c++11. | ||
conan profile update settings.compiler.libcxx=libstdc++11 release | ||
conan profile show release | ||
# host profile | ||
conan profile new default --detect | ||
conan profile update settings.build_type=${{ matrix.type }} default | ||
#Note no backwards compatiblity for gcc5 needed, setting libcxx to c++11. | ||
conan profile update settings.compiler.libcxx=libstdc++11 default | ||
conan profile show default | ||
- name: Create Celix | ||
env: | ||
CC: ${{ matrix.compiler[0] }} | ||
CXX: ${{ matrix.compiler[1] }} | ||
CONAN_CMAKE_GENERATOR: Ninja | ||
run: | | ||
conan inspect . -a options | awk 'BEGIN { FS="[\t:]+" } /build/ && !/build_all/ { print $1}' | while read option; do conan create . -b missing -o celix:${option}=True -pr:b release -pr:h default -tf examples/conan_test_package -tbf test-build -o celix:celix_cxx17=True -o celix:celix_install_deprecated_api=True --require-override=libcurl/7.64.1 --require-override=openssl/1.1.1s --require-override=zlib/1.2.13 || exit 1; done | ||
|
||
mac-build: | ||
runs-on: macOS-11 | ||
timeout-minutes: 120 | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3.3.0 | ||
- name: Install build dependencies | ||
run: | | ||
brew install python ninja | ||
pip3 install -U conan==1.59.0 | ||
- name: Setup Conan Profile | ||
run: | | ||
conan profile new default --detect | ||
conan profile update settings.build_type=Release default | ||
- name: Create Celix | ||
env: | ||
CC: ${{ matrix.compiler[0] }} | ||
CXX: ${{ matrix.compiler[1] }} | ||
CONAN_CMAKE_GENERATOR: Ninja | ||
run: | | ||
conan inspect . -a options | awk 'BEGIN { FS="[\t:]+" } /build/ && !/build_all/ { print $1}' | while read option; do conan create . -b missing -o celix:${option}=True -pr:b default -pr:h default -tf examples/conan_test_package -tbf test-build -o celix:celix_cxx17=True -o celix:celix_install_deprecated_api=True --require-override=libcurl/7.64.1 --require-override=openssl/1.1.1s --require-override=zlib/1.2.13 || exit 1; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this will generate a imported target?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this only serves to define the Celix export.