vcpkg/ports/nana/portfile.cmake

30 lines
991 B
CMake
Raw Normal View History

2017-06-01 00:59:08 +08:00
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
message(STATUS "Warning: Dynamic building not supported. Building static.")
set(VCPKG_LIBRARY_LINKAGE static)
endif()
2016-12-04 22:03:47 +08:00
2017-06-01 00:59:08 +08:00
include(vcpkg_common_functions)
2017-05-03 19:43:07 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO cnjinhao/nana
2017-07-28 07:18:21 +08:00
REF v1.5.4
SHA512 54d8d06a7792c7c626793f0c5f769884d7af78950a1df7d543f13bbb6de5ae35b51130a150438faa1c3c53dfea29fad6d12b94c535c264aac893325b244c6e0a
2017-06-01 00:59:08 +08:00
HEAD_REF develop
2017-05-03 19:43:07 +08:00
)
2016-12-04 22:03:47 +08:00
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
2017-06-01 00:59:08 +08:00
PREFER_NINJA
2016-12-04 22:03:47 +08:00
OPTIONS
2017-06-01 00:59:08 +08:00
-DMSVC_USE_STATIC_RUNTIME=OFF # dont override our settings
2016-12-04 22:03:47 +08:00
-DNANA_CMAKE_ENABLE_PNG=ON
-DNANA_CMAKE_ENABLE_JPEG=ON
OPTIONS_DEBUG
-DNANA_CMAKE_INSTALL_INCLUDES=OFF)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/nana)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/nana/LICENSE ${CURRENT_PACKAGES_DIR}/share/nana/copyright)