-
Notifications
You must be signed in to change notification settings - Fork 96
Feature/769 libuv package and thread header #815
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2127aeb
gh-769: Add libuv dep, update ci workflows and add smoke test
pnoltes e2d3cee
gh-769: Add celix_uv_cleanup.h
pnoltes 1b0b093
gh-769: Update conan libuv dep to build_utils
pnoltes e0af030
Exclude try locks on macos rwlock test
pnoltes feb9d8e
Remove libuv linkng from ei tests
pnoltes 23a3408
gh-769: Move trylock test for rwlock to in sep thread
pnoltes 5ef11d9
gh-769: Move trylock test for mutex to a sep thread
pnoltes 9f46175
gh-769: Refactor celix_uv_cleanup func and struct naming
pnoltes e4bf623
Update ci config 1.x config to use conan 1.66
pnoltes f7dce1b
Remove celix_auto support for uv_thread_t
pnoltes 0e61b47
Add missing find_dependencies in CelixDeps.cmake.in
pnoltes f425e10
Update CelixConfig.cmake include Modules before find_dep
pnoltes d8c8cb4
Update ubuntu ci to use conan 2.x
PengZheng 387a0bb
Update coverage to use conan 2.x
PengZheng 8571cbc
Remove require-override in coverage build.
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,61 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| # - Try to find libuv | ||
| # Once done this will define | ||
| # libuv_FOUND - System has libuv | ||
| # LIBUV_INCLUDE_DIR - The libuv include directory | ||
| # LIBUV_LIBRARY - The libuv library | ||
| # uv - Imported target for libuv | ||
|
|
||
| find_package(libuv CONFIG QUIET) | ||
|
|
||
| if (NOT libuv_FOUND) | ||
| find_package(PkgConfig QUIET) | ||
| if (PkgConfig_FOUND) | ||
| pkg_check_modules(LIBUV QUIET libuv) | ||
| endif () | ||
| endif () | ||
|
|
||
| if (NOT libuv_FOUND) | ||
| find_path(LIBUV_INCLUDE_DIR | ||
| NAMES uv.h | ||
| HINTS ${LIBUV_INCLUDEDIR} ${LIBUV_INCLUDE_DIRS} | ||
| ) | ||
|
|
||
| find_library(LIBUV_LIBRARY | ||
| NAMES uv libuv | ||
| HINTS ${LIBUV_LIBDIR} ${LIBUV_LIBRARY_DIRS} | ||
| ) | ||
|
|
||
| include(FindPackageHandleStandardArgs) | ||
| find_package_handle_standard_args(libuv DEFAULT_MSG LIBUV_LIBRARY LIBUV_INCLUDE_DIR) | ||
| mark_as_advanced(LIBUV_INCLUDE_DIR LIBUV_LIBRARY) | ||
| endif () | ||
|
|
||
pnoltes marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| if (libuv_FOUND AND NOT TARGET libuv::uv AND TARGET libuv::libuv) | ||
| #Note: libuv cmake config possible defines libuv::libuv target | ||
| # and conan libuv package defines uv target | ||
| # so create an alias target uv for consistency | ||
| add_library(libuv::uv ALIAS libuv::libuv) | ||
| elseif (libuv_FOUND AND NOT TARGET libuv::uv AND LIBUV_LIBRARY AND LIBUV_INCLUDE_DIR) | ||
| add_library(libuv::uv SHARED IMPORTED) | ||
| set_target_properties(libuv::uv PROPERTIES | ||
| IMPORTED_LOCATION "${LIBUV_LIBRARY}" | ||
| INTERFACE_INCLUDE_DIRECTORIES "${LIBUV_INCLUDE_DIR}" | ||
| ) | ||
| endif () | ||
This file contains hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.