2020-11-12 01:01:03 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Framstag/libosmscout
|
|
|
|
REF c81e1d9a0f69cc5b93588dbe330b2af587162c5f
|
|
|
|
SHA512 d6ddbc49dd40b1f938ae2cd1ea9342cab0a52db46bf7ed6716111a91d0a38acba12ff2e273d457db51fc240d578a5b849af77b53e600482cf52c3b22306f8c45
|
|
|
|
HEAD_REF master
|
2024-06-22 04:39:50 +08:00
|
|
|
PATCHES protobuf-linkage.patch
|
2020-11-12 01:01:03 +08:00
|
|
|
)
|
|
|
|
|
2023-06-17 11:38:42 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES
|
|
|
|
cairo OSMSCOUT_BUILD_MAP_CAIRO
|
|
|
|
directx OSMSCOUT_BUILD_MAP_DIRECTX
|
|
|
|
gdi OSMSCOUT_BUILD_MAP_GDI
|
|
|
|
svg OSMSCOUT_BUILD_MAP_SVG
|
2023-06-22 12:53:49 +08:00
|
|
|
qt5 OSMSCOUT_BUILD_MAP_QT
|
2023-06-17 11:38:42 +08:00
|
|
|
)
|
2020-11-12 01:01:03 +08:00
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
WINDOWS_USE_MSBUILD
|
2020-11-12 01:01:03 +08:00
|
|
|
OPTIONS
|
|
|
|
-DOSMSCOUT_BUILD_DEMOS=OFF
|
|
|
|
-DOSMSCOUT_BUILD_TOOL_DUMPDATA=OFF
|
|
|
|
-DOSMSCOUT_BUILD_TOOL_IMPORT=ON
|
|
|
|
-DOSMSCOUT_BUILD_TOOL_OSMSCOUT2=OFF
|
|
|
|
-DOSMSCOUT_BUILD_TOOL_OSMSCOUTOPENGL=OFF
|
|
|
|
-DOSMSCOUT_BUILD_TOOL_PUBLICTRANSPORTMAP=OFF
|
|
|
|
-DOSMSCOUT_BUILD_TOOL_STYLEEDITOR=OFF
|
|
|
|
-DOSMSCOUT_BUILD_EXTERN_MATLAB=OFF
|
|
|
|
-DOSMSCOUT_BUILD_TESTS=OFF
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-11-12 01:01:03 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES Import AUTO_CLEAN)
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/libosmscout)
|
2020-11-12 01:01:03 +08:00
|
|
|
|
2023-06-17 11:38:42 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2020-11-12 01:01:03 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/BasemapImport.exe")
|
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/BasemapImport.exe")
|