vcpkg/ports/mujs/portfile.cmake

28 lines
796 B
CMake
Raw Normal View History

2018-01-30 00:55:41 +08:00
include(vcpkg_common_functions)
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
message(WARNING "building static")
set(VCPKG_LIBRARY_LINKAGE static)
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ccxvii/mujs
2018-06-13 01:32:58 +08:00
REF 34cb61711fe29934dfa82ab55ea59ed85ae62642
SHA512 7b813f0f081b68b2582dac31abdd0c0cbb7f9ceaa83510682319faf3e55f67d6fff27b4b10b6a8be5e9d1bc267e480b5937013e7ee06baa8aecec7c37e86ac69
2018-01-30 00:55:41 +08:00
HEAD_REF master
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON -DDISABLE_INSTALL_TOOLS=ON
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/mujs RENAME copyright)