mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:19:01 +08:00
df8276a218
* Modernize lodepng portfile * Update to 8c6a9e30 * Install LICENSE as copyright * Don't install examples * Remove unused parameter * Merge lodepng-c into lodepng * Add usage * Omit lodepng-util: not official API * Update versions * [gdal] Don't use lz4: not a dependency * [libjxl] Fix link flags * Revise install cleanup, handle .dylib * Add extra flags for uwp * Workaround uwp toolchain quirks * More dependency control, jxl_extras for tools only * Pass the version to the build * Update versions * Skip CI for libjxl:arm-uwp * Install usage file * Update versions * Use version-date for lodepng, mark lodepng-c as deprecated, and update version database. Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
32 lines
1.1 KiB
CMake
32 lines
1.1 KiB
CMake
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()
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO lvandeve/lodepng
|
|
REF 8c6a9e30576f07bf470ad6f09458a2dcd7a6a84a
|
|
SHA512 2e0abc063be45dc04a070656260e9a2b9fa1172433cdd7d4988f0afc11751ad28aa802350598ef0e2b27c2c011fd9d9f7ab7f267b0bfcdf28f9f708b888c4411
|
|
HEAD_REF master
|
|
)
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
configure_file("${SOURCE_PATH}/lodepng.cpp" "${SOURCE_PATH}/lodepng.c" COPYONLY)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS_DEBUG
|
|
-DDISABLE_INSTALL_HEADERS=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME lodepng-c)
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|