2021-03-30 01:11:07 +08:00
|
|
|
if (EXISTS ${CURRENT_INSTALLED_DIR}/share/lodepng-c/copyright)
|
|
|
|
message(FATAL_ERROR "${PORT} conflict with lodepng-c, please remove lodepng-c before install ${PORT}.")
|
|
|
|
endif()
|
2017-09-03 22:32:34 +08:00
|
|
|
|
2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-09-03 22:32:34 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO lvandeve/lodepng
|
2020-03-28 11:04:02 +08:00
|
|
|
REF e34ac04553e51a6982ae234d98ce6b76dd57a6a1
|
|
|
|
SHA512 ab79fb2c6403e5d7bdf0b94a3f93f6513889eda8e6b74fb2b569fbc6f95fb79474654818cb0e71eff88214ca7c42ebd7c95f734a2faa77259fe06bfddcb6967a
|
2017-09-03 22:32:34 +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
|
|
|
|
-DDDISABLE_INSTALL_EXAMPLES=ON
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2020-03-28 11:04:02 +08:00
|
|
|
# Moves all .cmake files from /debug/share/lodepng/ to /share/lodepng/
|
|
|
|
vcpkg_fixup_cmake_targets()
|
2017-09-03 22:32:34 +08:00
|
|
|
|
2020-03-28 11:04:02 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/lodepng.h DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|