]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/exiv2/portfile.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / exiv2 / portfile.cmake
1 #https://github.com/Exiv2/exiv2/issues/1063
2 vcpkg_fail_port_install(ON_TARGET "uwp")
3
4 vcpkg_from_github(
5 OUT_SOURCE_PATH SOURCE_PATH
6 REPO Exiv2/exiv2
7 REF 194bb65ac568a5435874c9d9d73b1c8a68e4edec #v0.27.3
8 SHA512 35a5a41e0a6cfe04d1ed005c8116ad4430516402b925db3d4f719e2385e2cfb09359eb7ab51853bc560138f221900778cd2e2d39f108c513b3e7d22dbb9bf503
9 HEAD_REF master
10 )
11
12 vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
13 unicode EXIV2_ENABLE_WIN_UNICODE
14 xmp EXIV2_ENABLE_XMP
15 video EXIV2_ENABLE_VIDEO
16 )
17
18 if("unicode" IN_LIST FEATURES AND NOT VCPKG_TARGET_IS_WINDOWS)
19 message(FATAL_ERROR "Feature unicode only supports Windows platform.")
20 endif()
21
22 vcpkg_configure_cmake(
23 SOURCE_PATH ${SOURCE_PATH}
24 PREFER_NINJA
25 OPTIONS
26 ${FEATURE_OPTIONS}
27 -DEXIV2_BUILD_EXIV2_COMMAND:BOOL=FALSE
28 -DEXIV2_BUILD_UNIT_TESTS:BOOL=FALSE
29 -DEXIV2_BUILD_SAMPLES:BOOL=FALSE
30 )
31
32 vcpkg_install_cmake()
33 vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/exiv2)
34 vcpkg_fixup_pkgconfig()
35
36 configure_file(
37 ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake
38 ${CURRENT_PACKAGES_DIR}/share/${PORT}
39 @ONLY
40 )
41
42 vcpkg_copy_pdbs()
43
44 # Clean
45 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
46 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/exiv2 ${CURRENT_PACKAGES_DIR}/lib/exiv2)
47
48 if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
49 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
50 endif()
51
52 # Handle copyright
53 file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)