mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 15:27:50 +08:00
416bee254a
* sobjectizer updated to 5.6.0.1, so5extra updated to 1.3.1 * archive of different type for so5extra-1.3.1 * sobjectizer updated to 5.6.0.2
37 lines
1.3 KiB
CMake
37 lines
1.3 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
set(VERSION 5.6.0.2)
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/so-${VERSION}/dev)
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://sourceforge.net/projects/sobjectizer/files/sobjectizer/SObjectizer%20Core%20v.5.6/so-${VERSION}.tar.bz2"
|
|
FILENAME "so-${VERSION}.tar.bz2"
|
|
SHA512 8f330c757fe401d715584da224925158d97ab5bba59e442af29ac64cb6feeae00434bd9bf11601f0796737f901a4f8ada1728b60d5706294d607d4d365c2d6da
|
|
)
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
set(SOBJECTIZER_BUILD_STATIC ON)
|
|
set(SOBJECTIZER_BUILD_SHARED OFF)
|
|
else()
|
|
set(SOBJECTIZER_BUILD_STATIC OFF)
|
|
set(SOBJECTIZER_BUILD_SHARED ON)
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DSOBJECTIZER_BUILD_STATIC=${SOBJECTIZER_BUILD_STATIC}
|
|
-DSOBJECTIZER_BUILD_SHARED=${SOBJECTIZER_BUILD_SHARED}
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/sobjectizer)
|
|
|
|
# Handle copyright
|
|
file(COPY ${SOURCE_PATH}/../LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/sobjectizer)
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/sobjectizer/LICENSE ${CURRENT_PACKAGES_DIR}/share/sobjectizer/copyright)
|