mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-13 02:29:02 +08:00
44cfabe4df
- [X] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md) - [X] SHA512s are updated for each updated download - [ ] ~The "supports" clause reflects platforms that may be fixed by this new version~ - [ ] ~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~ - [ ] ~Any patches that are no longer applied are deleted from the port's directory.~ - [X] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [X] Only one version is added to each modified port's versions file.
46 lines
1.5 KiB
CMake
46 lines
1.5 KiB
CMake
if(VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO eclipse-iceoryx/iceoryx
|
|
REF "v${VERSION}"
|
|
SHA512 0fc259147cb60137891ea005eda683245b6ef38c3b35fd8735d2a89f8f1d1fe5096ad1075a918277ee58f3f50c2b145dc3dc6de9484843bfc0398c80b7940e2b
|
|
HEAD_REF master
|
|
PATCHES
|
|
acl.patch
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
"toml-config" TOML_CONFIG
|
|
INVERTED_FEATURES
|
|
"many-to-many" ONE_TO_MANY_ONLY
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}/iceoryx_meta"
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DDOWNLOAD_TOML_LIB=OFF
|
|
)
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME iceoryx_binding_c CONFIG_PATH lib/cmake/iceoryx_binding_c DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME iceoryx_hoofs CONFIG_PATH lib/cmake/iceoryx_hoofs DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME iceoryx_posh CONFIG_PATH lib/cmake/iceoryx_posh)
|
|
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
"${CURRENT_PACKAGES_DIR}/share/doc"
|
|
)
|
|
|
|
if(TOML_CONFIG)
|
|
vcpkg_copy_tools(TOOL_NAMES iox-roudi AUTO_CLEAN)
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/etc")
|
|
endif()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|