mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 11:39:03 +08:00
88f5e897a7
* Update bde port Disable windows and arm, at least for now It'd be great to enable arm64-osx (macos?) soon * Update version in bde.json * Remove ci.baseline.txt skip. * Fix version database. * fix port-version * Stop building for android, osx I don't specifically know why these don't work, but linux is the primary platform so let's fix these another time Also remove the cxx17 flag for now - we'll need to address this at some point but for now this should satisfy the feature flag requirements. * Review comments * Remove WINDOWS_USE_MSBUILD * Update versions --------- Co-authored-by: Oleg Subbotin <osubbotin@bloomberg.net> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
61 lines
1.7 KiB
CMake
61 lines
1.7 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
set(BDE_TOOLS_VERSION "${VERSION}")
|
|
|
|
# Acquire Python and add it to PATH
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
get_filename_component(PYTHON3_EXE_PATH ${PYTHON3} DIRECTORY)
|
|
|
|
# Acquire BDE Tools and add them to PATH
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH TOOLS_PATH
|
|
REPO "bloomberg/bde-tools"
|
|
REF "${BDE_TOOLS_VERSION}"
|
|
SHA512 3c39da8d1ea40459e36e11ada93cc2821ae1b16a831f93cccab463996394a400cc08bb1654642eae1aa5187f139d7fb80c4729e464051eee182133eb8a74158d
|
|
HEAD_REF main
|
|
)
|
|
|
|
message(STATUS "Configure bde-tools-v${BDE_TOOLS_VERSION}")
|
|
vcpkg_add_to_path("${PYTHON3_EXE_PATH}")
|
|
vcpkg_add_to_path("${TOOLS_PATH}/bin")
|
|
|
|
# Acquire BDE sources
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO "bloomberg/bde"
|
|
REF "${VERSION}"
|
|
SHA512 810b4a06a08739dcd990751dd543aa7dc58355f9d64a7c96ef0cf45c81501946434db42ad5bcf5d16110d5a463586b587ce09a446136e824298f39a8a871b490
|
|
HEAD_REF main
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DBDE_BUILD_TARGET_CPP17=ON
|
|
-DCMAKE_CXX_STANDARD=17
|
|
-DCMAKE_CXX_STANDARD_REQUIRED=ON
|
|
-DCMAKE_CXX_EXTENSIONS=OFF
|
|
-DBBS_BUILD_SYSTEM=1
|
|
"-DBdeBuildSystem_DIR:PATH=${TOOLS_PATH}/BdeBuildSystem"
|
|
OPTIONS_RELEASE
|
|
-DBDE_BUILD_TARGET_OPT=1
|
|
OPTIONS_DEBUG
|
|
-DBDE_BUILD_TARGET_DBG=1
|
|
)
|
|
|
|
# Build release
|
|
vcpkg_cmake_build()
|
|
|
|
# Install release
|
|
vcpkg_cmake_install()
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/bde
|
|
RENAME copyright
|
|
)
|
|
|
|
vcpkg_fixup_pkgconfig()
|