mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 23:59:02 +08:00
07c93b8cd5
Fixes https://github.com/microsoft/vcpkg/issues/33390 Fix the inconsistency between the name of the link library and the name of the compiled library in the PC file under static compilation - [X] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md) - [ ] ~~SHA512s are updated for each updated download~~ - [ ] ~~The "supports" clause reflects platforms that may be fixed by this new version~~ - [ ] ~~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~~ - [ ] ~~Any patches that are no longer applied are deleted from the port's directory.~~ - [X] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [X] Only one version is added to each modified port's versions file. Usage test pass with following triplets: ``` x64-windows x64-windows-static ``` --------- Co-authored-by: Jim wang (BEYONDSOFT CONSULTING INC) <v-wangjim@microsoft.com>
67 lines
2.0 KiB
CMake
67 lines
2.0 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO libjxl/libjxl
|
|
REF "v${VERSION}"
|
|
SHA512 769f102c46755d11a705ce47ae9e2ef49627ae708f416693bf1293aeeb713934baf4466e45b9c70b04ec1fc8b4a00d5ca7688c8ca03f0a91c9a15252c522a887
|
|
HEAD_REF main
|
|
PATCHES
|
|
fix-dependencies.patch
|
|
trim-shared-build.patch
|
|
fix_static_suffix.patch #https://github.com/libjxl/libjxl/pull/2754
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
tools JPEGXL_ENABLE_TOOLS
|
|
INVERTED_FEATURES
|
|
tools CMAKE_DISABLE_FIND_PACKAGE_GIF
|
|
tools CMAKE_DISABLE_FIND_PACKAGE_JPEG
|
|
tools CMAKE_DISABLE_FIND_PACKAGE_PNG
|
|
tools CMAKE_DISABLE_FIND_PACKAGE_ZLIB
|
|
)
|
|
|
|
if(VCPKG_TARGET_IS_UWP)
|
|
string(APPEND VCPKG_C_FLAGS " /wd4146")
|
|
string(APPEND VCPKG_CXX_FLAGS " /wd4146")
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
"-DJPEGXL_VERSION=${JPEGXL_VERSION}"
|
|
-DJPEGXL_FORCE_SYSTEM_BROTLI=ON
|
|
-DJPEGXL_FORCE_SYSTEM_HWY=ON
|
|
-DJPEGXL_FORCE_SYSTEM_LCMS2=ON
|
|
${FEATURE_OPTIONS}
|
|
-DJPEGXL_ENABLE_BENCHMARK=OFF
|
|
-DJPEGXL_ENABLE_DOXYGEN=OFF
|
|
-DJPEGXL_ENABLE_EXAMPLES=OFF
|
|
-DJPEGXL_ENABLE_FUZZERS=OFF
|
|
-DJPEGXL_ENABLE_JNI=OFF
|
|
-DJPEGXL_ENABLE_MANPAGES=OFF
|
|
-DJPEGXL_ENABLE_OPENEXR=OFF
|
|
-DJPEGXL_ENABLE_PLUGINS=OFF
|
|
-DJPEGXL_ENABLE_SJPEG=OFF
|
|
-DJPEGXL_ENABLE_SKCMS=OFF
|
|
-DJPEGXL_ENABLE_TCMALLOC=OFF
|
|
-DBUILD_TESTING=OFF
|
|
-DCMAKE_FIND_PACKAGE_TARGETS_GLOBAL=ON
|
|
MAYBE_UNUSED_VARIABLES
|
|
CMAKE_DISABLE_FIND_PACKAGE_GIF
|
|
CMAKE_DISABLE_FIND_PACKAGE_JPEG
|
|
CMAKE_DISABLE_FIND_PACKAGE_PNG
|
|
CMAKE_DISABLE_FIND_PACKAGE_ZLIB
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
if(JPEGXL_ENABLE_TOOLS)
|
|
vcpkg_copy_tools(TOOL_NAMES cjxl djxl cjpeg_hdr jxlinfo AUTO_CLEAN)
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|