2017-05-31 18:59:08 +02: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 15:03:47 +01:00
|
|
|
|
2017-05-31 18:59:08 +02:00
|
|
|
include(vcpkg_common_functions)
|
2017-05-03 04:43:07 -07:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO cnjinhao/nana
|
2017-11-29 13:12:11 -08:00
|
|
|
REF v1.5.5
|
|
|
|
SHA512 d28348b807e131f5868a162cf5b914523246ab5c4d4395186377f54dff9ad91199b13f640e05b5d959347ebfb570df79d5de39abfd690d8831034063422e3587
|
2017-05-31 18:59:08 +02:00
|
|
|
HEAD_REF develop
|
2017-05-03 04:43:07 -07:00
|
|
|
)
|
2016-12-04 15:03:47 +01:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-05-31 18:59:08 +02:00
|
|
|
PREFER_NINJA
|
2016-12-04 15:03:47 +01:00
|
|
|
OPTIONS
|
2017-05-31 18:59:08 +02:00
|
|
|
-DMSVC_USE_STATIC_RUNTIME=OFF # dont override our settings
|
2016-12-04 15:03:47 +01:00
|
|
|
-DNANA_CMAKE_ENABLE_PNG=ON
|
|
|
|
-DNANA_CMAKE_ENABLE_JPEG=ON
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DNANA_CMAKE_INSTALL_INCLUDES=OFF)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2017-02-21 15:21:11 -08:00
|
|
|
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)
|