2019-04-08 07:17:02 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO dtecta/solid3
|
|
|
|
REF c53f6bb1eaaafb1cfb305ef71b1c3a2edb4844e6
|
|
|
|
SHA512 ae42ba75f5309fecba836e5786d4cb81eeb1240f6fd7c458c6d1329d8e1075021504b927ea0aedb66162deeb79ad674cacb0190385afe456420c0d9184596f1f
|
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
disable-examples.patch
|
|
|
|
potentially-uninitialized-local-pointer-variable.patch
|
2022-07-21 00:05:56 +02:00
|
|
|
no-sse.patch
|
2019-04-08 07:17:02 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
set(DYNAMIC_SOLID OFF)
|
|
|
|
else()
|
|
|
|
set(DYNAMIC_SOLID ON)
|
|
|
|
endif()
|
|
|
|
|
2022-07-21 00:05:56 +02:00
|
|
|
vcpkg_cmake_configure(
|
2019-04-08 07:17:02 +02:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
-DDYNAMIC_SOLID=${DYNAMIC_SOLID}
|
|
|
|
)
|
|
|
|
|
2022-07-21 00:05:56 +02:00
|
|
|
vcpkg_cmake_install()
|
2019-04-08 07:17:02 +02:00
|
|
|
vcpkg_copy_pdbs()
|
2022-07-21 00:05:56 +02:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/solid3)
|
2019-04-08 07:17:02 +02:00
|
|
|
|
|
|
|
file(COPY ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/solid3)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/solid3/README.md ${CURRENT_PACKAGES_DIR}/share/solid3/copyright)
|
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE_GPL.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/solid3)
|
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE_QPL.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/solid3)
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|