mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 11:19:01 +08:00
26 lines
846 B
CMake
26 lines
846 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO lexbor/lexbor
|
|
REF v${VERSION}
|
|
SHA512 add1832f2e1927538206329703cd717fb30cb6ae2f52e1a0042961062cbcafd2e3ce4437ee2081ad7b2d51c6b63b910be06987e47c4a7007321db52b2812e515
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DLEXBOR_BUILD_SHARED=${BUILD_SHARED}
|
|
-DLEXBOR_BUILD_STATIC=${BUILD_STATIC}
|
|
)
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/include/lexbor/html/tree/insertion_mode"
|
|
"${CURRENT_PACKAGES_DIR}/debug/include/lexbor/html/tree/insertion_mode"
|
|
)
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|