2016-10-28 14:13:50 +08:00
|
|
|
|
2017-06-10 10:34:07 +08:00
|
|
|
if(NOT VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
|
|
|
message(FATAL_ERROR "PDCurses only supports dynamic CRT linkage")
|
|
|
|
endif()
|
|
|
|
|
2016-10-20 12:29:38 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
find_program(NMAKE nmake)
|
|
|
|
|
2018-03-22 16:50:38 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO wmcbrine/PDCurses
|
[many ports] Updates 2019.05.24 (#6618)
* [many ports] Updates 2019.05.24
* Update SHA512 and resolve conflict for ebml and matroska
* [avro-c]Fix build error caused by jansson upgrades.
* [xxhash]Update to the next version to fix build error.(xxhash issue:#179)
* Fix failures and undo asio
* [libyaml, grpc, miniz, paho-mqtt, sqlitecpp] Update patches
* Update REF
* Undo nvtt flann itk libtins aws-sdk-cpp openvdb vlpp xmsh changes
* [flann, fastcdr] Fix old patches and build error.
* [flann, fastcdr] Fix build error.
* Fix ensmallen uvatlas cppcms libplist failures and undo aws-c-common libopusenc arb taglib changes
* [dcmtk, draco, flatbuffers, forge, ftgl, mosquitto,nmslib, ogre] Update old patches and fix build error.
* fix libusbmuxd failures and undo xxhash paho-mqtt mongo-c-driver flann libffi
* fix libimobiledevice and undo qhull harfbuzz lcm libbson draco flatbuffers
* undo libmupdf forge kd-soap qca
* [mosquitto] Fix installation of import libs
* [arb][asio][aws-c-common][collada-dom][concurrentqueue][cryptopp][ebml] Revert trivial/undesired changes
* [fastcdr] Minimize patch
* [many ports] Revert trivial changes
* [libyaml] Switch to non-dist tag
* [sqlite-modern-cpp] Track master due to infrequent release
* [nano-signal-slot] Revert downgrade
* [openvpn3] Bump control version to account for portfile change
* [sqlite-modern-cpp] Fixup wrong hash
* [mosquitto] Commit missing patch
2019-06-11 08:01:54 +08:00
|
|
|
REF 2467ab2b6c07163d0171b80ad6c252c29da28173
|
|
|
|
SHA512 4d729a4e0ffa1b5d1fd35ed73329d08886e1e565936a008cd7b45f8e5fbaabcb86c65377fd1e33acef6271f828cd4158e8a56ed15cd664b2a8c8e1d66cf8c00a
|
2018-03-22 16:50:38 +08:00
|
|
|
HEAD_REF master
|
2016-10-20 12:29:38 +08:00
|
|
|
)
|
|
|
|
|
2019-10-08 01:35:13 +08:00
|
|
|
set(PDC_NMAKE_CMD ${NMAKE} /A -f ${SOURCE_PATH}/wincon/Makefile.vc WIDE=Y UTF8=Y)
|
2017-05-23 11:26:56 +08:00
|
|
|
|
2019-10-08 01:35:13 +08:00
|
|
|
set(PDC_NMAKE_CWD ${SOURCE_PATH}/wincon)
|
|
|
|
set(PDC_PDCLIB ${SOURCE_PATH}/wincon/pdcurses)
|
2016-10-28 12:12:52 +08:00
|
|
|
|
2016-11-01 00:48:58 +08:00
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
2016-10-28 12:12:52 +08:00
|
|
|
set(PDC_NMAKE_CMD ${PDC_NMAKE_CMD} DLL=Y)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
message(STATUS "Build ${TARGET_TRIPLET}-rel")
|
|
|
|
vcpkg_execute_required_process(
|
|
|
|
COMMAND ${PDC_NMAKE_CMD}
|
|
|
|
WORKING_DIRECTORY ${PDC_NMAKE_CWD}
|
|
|
|
LOGNAME build-${TARGET_TRIPLET}-rel
|
|
|
|
)
|
|
|
|
message(STATUS "Build ${TARGET_TRIPLET}-rel done")
|
2016-11-01 00:48:58 +08:00
|
|
|
|
2016-10-28 12:12:52 +08:00
|
|
|
file (
|
2016-11-01 00:48:58 +08:00
|
|
|
COPY ${PDC_PDCLIB}.lib
|
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
2016-10-28 12:12:52 +08:00
|
|
|
)
|
2016-11-01 00:48:58 +08:00
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
|
|
file (
|
|
|
|
COPY ${PDC_PDCLIB}.dll
|
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/bin
|
|
|
|
)
|
|
|
|
endif()
|
2016-10-28 12:12:52 +08:00
|
|
|
|
|
|
|
message(STATUS "Build ${TARGET_TRIPLET}-dbg")
|
2016-10-20 12:29:38 +08:00
|
|
|
vcpkg_execute_required_process(
|
2016-10-28 12:12:52 +08:00
|
|
|
COMMAND ${PDC_NMAKE_CMD} DEBUG=Y
|
|
|
|
WORKING_DIRECTORY ${PDC_NMAKE_CWD}
|
|
|
|
LOGNAME build-${TARGET_TRIPLET}-dbg
|
|
|
|
)
|
|
|
|
message(STATUS "Build ${TARGET_TRIPLET}-dbg done")
|
2016-11-01 00:48:58 +08:00
|
|
|
|
2016-10-28 12:12:52 +08:00
|
|
|
file (
|
2016-11-01 00:48:58 +08:00
|
|
|
COPY ${PDC_PDCLIB}.lib
|
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
2016-10-20 12:29:38 +08:00
|
|
|
)
|
2016-11-01 00:48:58 +08:00
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
|
|
file (
|
|
|
|
COPY ${PDC_PDCLIB}.dll
|
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin
|
|
|
|
)
|
|
|
|
endif()
|
2016-10-20 12:29:38 +08:00
|
|
|
|
2016-10-28 12:12:52 +08:00
|
|
|
file(
|
2019-10-08 01:35:13 +08:00
|
|
|
COPY ${SOURCE_PATH}/curses.h ${SOURCE_PATH}/panel.h
|
2016-10-28 12:12:52 +08:00
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
|
|
|
)
|
2016-10-20 12:29:38 +08:00
|
|
|
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/pdcurses RENAME copyright)
|
2016-11-01 00:48:58 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|