2023-02-14 04:34:00 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
2018-01-30 00:55:41 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ccxvii/mujs
|
2023-02-13 23:57:54 +08:00
|
|
|
REF "${VERSION}"
|
2024-03-12 04:10:07 +08:00
|
|
|
SHA512 0806684be5e6dc3cb7305355ab7c7babbfd3fd5bbd22515659a88a82c25f3f4b6af14f7ca07bacd154823b19110b749bba68311c9f317dd684e0fd5628ece573
|
2018-01-30 00:55:41 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-02-13 23:57:54 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2023-02-14 04:34:00 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/mujs.pc" DESTINATION "${SOURCE_PATH}")
|
2018-01-30 00:55:41 +08:00
|
|
|
|
2023-02-13 23:57:54 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-02-14 04:34:00 +08:00
|
|
|
OPTIONS
|
|
|
|
"-DPACKAGE_VERSION=${VERSION}"
|
2023-02-13 23:57:54 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DDISABLE_INSTALL_HEADERS=ON
|
2018-01-30 00:55:41 +08:00
|
|
|
)
|
|
|
|
|
2023-02-13 23:57:54 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2023-02-14 04:34:00 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-mujs)
|
2018-01-30 00:55:41 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-02-14 04:34:00 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2023-02-13 23:57:54 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|