mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-15 13:49:01 +08:00
9fc945b4a2
* [teemo] Update to v2.7 * [teemo] Format manifest * [teemo] Update to v2.7 * [akali] Update to v1.43 * [akali] Update to v1.43 * [akali] Update to v1.43 * overwrite version * add license * overwrite version * [akali] Update string replace method. * [akali] run x-add-version command. * [cpp-ipc] Update to v1.2.0 * [cpp-ipc] Update to v1.2.0 * Add new port named zoe. * Add zoe to baseline. * Add zeo.json * [zoe] Update REF * [zoe] Update version. * [zoe] Add port version. * [zoe] run x-add-version --all * [zoe] Remove port-version * [zoe] Update port-version * [zoe] Update version * [zoe] Update code ref. * [zoe] Update git-version. * [zoe] Update portfile.cmake * [zoe] overwrite-version * [zoe] Update ref. * [zoe] overwrite-version * [zoe] Update portfile. * [zoe] overwrite-version * [zoe] Not support android. * [zoe] Update zoe.json * [crashrpt-lite] Add new port. * Format manifest files * [crashrpt-lite] Instead deprecated functions. * add crashrpt-lite.json * [crashrpt-lite] update version. * Remvoe crashrpt-lite * Remvoe crashrpt-lite * [zoe] Export cmake config files. * [zoe] Export cmake config files. * [zoe] Update git-tree. * [zoe] Add usage and config fixup. * [zoe] Update git-tree * [zoe] remove usage. * [zoe] Update git-tree * use new function * vdb * [veigar] Add a new port. * [veigar] Add a new port. * [veigar] Add veigar.json * [veigar] Fix compile issue. * [veigar] Update Code. * [veigar] Fix bug. * [veigar] Update veigar.json * Fix compilation failures on non-windows platforms. * [veigar] overwrite-version * [veigar] Fix compilation failures on non-windows platforms. * [veigar] Fix compilation failures on non-windows platforms. * [veigar] Add support platform. * [veigar] overwrite-version * [veigar] Add license. * [veigar] Add license. * [veigar] Use ${VERSION} * [veigar] Use ${VERSION} * [veigar] Update code REF. * [veigar] run .\vcpkg.exe x-add-version veigar --overwrite-version * [veigar] Update support platform. * [veigar] Update support platform. * [veigar] Update support platform. * [veigar] Update support platform. * [veigar] Not support uwp. * [veigar] Not support uwp. * [veigar] Fix bug. * [veigar] Fix bug. * [veigar] Update to 1.2 * [veigar] Update to 1.2 * [veigar] Update format. * [veigar] Update format. * [veigar] Update format. * [veigar] Remove debug share files. * [veigar] Remove debug share files. * [veigar] Update version. * [veigar] Update version. * [cpp-ipc] Update to 1.3.0 * [cpp-ipc] Update to 1.3.0 --------- Co-authored-by: FrankXie <v-frankxie@microsoft.com> Co-authored-by: admin <admin@windows.com> Co-authored-by: paipai <noexist@gmail.com> Co-authored-by: Frank <1433351828@qq.com>
38 lines
1.4 KiB
CMake
38 lines
1.4 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO mutouyun/cpp-ipc
|
|
REF 035d76d5aaaa420a61d5e08be841cc20e585adde #v1.3.0
|
|
SHA512 fea7054befc143ca1b4c55f3ffb72eb81353ce08f761e7c1ca79dd016449f76fbfc19bdb046a68e4d84df0f24da0312a0f560d9a25257811689041267bb42f1a
|
|
HEAD_REF master
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" LIBIPC_BUILD_SHARED_LIBS)
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" LIBIPC_USE_STATIC_CRT)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DLIBIPC_BUILD_SHARED_LIBS:BOOL=${LIBIPC_BUILD_SHARED_LIBS}
|
|
-DLIBIPC_USE_STATIC_CRT:BOOL=${LIBIPC_USE_STATIC_CRT}
|
|
-DLIBIPC_BUILD_TESTS:BOOL=OFF
|
|
-DLIBIPC_BUILD_DEMOS:BOOL=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/cpp-ipc")
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cpp-ipc)
|
|
elseif(EXISTS "${CURRENT_PACKAGES_DIR}/share/cpp-ipc")
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cpp-ipc)
|
|
endif()
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libipc/export.h" "#elif defined(LIBIPC_LIBRARY_SHARED_USING__)" "#elif 1")
|
|
endif()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|