2018-11-09 02:53:06 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO memononen/nanovg
|
2019-09-06 01:43:09 +08:00
|
|
|
REF 1f9c8864fc556a1be4d4bf1d6bfe20cde25734b4
|
|
|
|
SHA512 99a44f01114ee653a966d4695596886240752f5a06d540c408b5aeaebdcc5360fc2043276515695580d048649a20dc50409107f89c4ce506d2ccb83a0635d29f
|
2018-11-09 02:53:06 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/nanovgConfig.cmake" DESTINATION "${SOURCE_PATH}")
|
2018-11-09 02:53:06 +08:00
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
file(GLOB STB_SRCS "${SOURCE_PATH}/src/stb_*")
|
2020-01-07 05:18:22 +08:00
|
|
|
if(STB_SRCS)
|
|
|
|
file(REMOVE_RECURSE ${STB_SRCS})
|
|
|
|
endif()
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-11-09 02:53:06 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-11-09 02:53:06 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share")
|
2018-11-09 02:53:06 +08:00
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|