mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 16:49:03 +08:00
ccf682927e
* updated libunifex version * remove comment * run x-add-versions --all * Update ports/libunifex/vcpkg.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * rerun x-add-version libunifex * Update versions/l-/libunifex.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * update libunifex to 12-07 * x-add-version * libunifex port update force cpp20 as cpp17 build doesn't work with msvc. added a compile fix for externConstexpr and removed warnings with /EHsc * Update libunifex.json version update * Update fix-compile-error.patch relax clang warnings * Update libunifex.json git x-add-version libunifex * remove unused * x-add-versions * remove old version log * fixed static compile option * bumped port version * run x-add-version --all * Hook up RTTR's actual build settings. * Add license. * Remove ci.baseline skips. * Put ci.baseline.txt skips back with a comment. * Be less pessimistic in cmake config handling, fix typo, and add indents. Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
58 lines
2.0 KiB
CMake
58 lines
2.0 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO rttrorg/rttr
|
|
REF v0.9.6
|
|
SHA512 5c94f037b319568d351ee6d25f1404adce00b40598dce4a331789d5357c059e50aae3894f90e60d37307b7e96f4672ae09d3798bbe47f796ef2044f1ac6f9e50
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-directory-output.patch
|
|
Fix-depends.patch
|
|
remove-owner-read-perms.patch
|
|
)
|
|
|
|
if("${VCPKG_LIBRARY_LINKAGE}" STREQUAL "static" AND "${VCPKG_CRT_LINKAGE}" STREQUAL "static")
|
|
set(BUILD_STATIC ON)
|
|
set(BUILD_RTTR_DYNAMIC OFF)
|
|
set(BUILD_WITH_STATIC_RUNTIME_LIBS OFF)
|
|
elseif("${VCPKG_LIBRARY_LINKAGE}" STREQUAL "dynamic" AND "${VCPKG_CRT_LINKAGE}" STREQUAL "static")
|
|
set(BUILD_STATIC OFF)
|
|
set(BUILD_RTTR_DYNAMIC OFF)
|
|
set(BUILD_WITH_STATIC_RUNTIME_LIBS ON)
|
|
elseif("${VCPKG_LIBRARY_LINKAGE}" STREQUAL "dynamic" AND "${VCPKG_CRT_LINKAGE}" STREQUAL "dynamic")
|
|
set(BUILD_STATIC OFF)
|
|
set(BUILD_RTTR_DYNAMIC ON)
|
|
set(BUILD_WITH_STATIC_RUNTIME_LIBS OFF)
|
|
else()
|
|
message(FATAL_ERROR "rttr's build system does not support this configuration: VCPKG_LIBRARY_LINKAGE: ${VCPKG_LIBRARY_LINKAGE} VCPKG_CRT_LINKAGE: ${VCPKG_CRT_LINKAGE}")
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DBUILD_BENCHMARKS=OFF
|
|
-DBUILD_UNIT_TESTS=OFF
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DBUILD_DOCUMENTATION=OFF
|
|
-DBUILD_STATIC=${BUILD_STATIC}
|
|
-DBUILD_RTTR_DYNAMIC=${BUILD_RTTR_DYNAMIC}
|
|
-DBUILD_WITH_STATIC_RUNTIME_LIBS=${BUILD_WITH_STATIC_RUNTIME_LIBS}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
|
else()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/rttr/cmake)
|
|
endif()
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
"${CURRENT_PACKAGES_DIR}/debug/README.md"
|
|
"${CURRENT_PACKAGES_DIR}/debug/LICENSE.txt"
|
|
"${CURRENT_PACKAGES_DIR}/LICENSE.txt"
|
|
"${CURRENT_PACKAGES_DIR}/README.md"
|
|
)
|