mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 11:07:10 +01:00
[libraw] Add wrapper for static build dependencies (#5626)
This commit is contained in:
parent
73c678d168
commit
14dc7af3b1
@ -1,4 +1,4 @@
|
|||||||
Source: libraw
|
Source: libraw
|
||||||
Version: 0.19.0-2
|
Version: 0.19.0-3
|
||||||
Build-Depends: lcms, jasper
|
Build-Depends: lcms, jasper
|
||||||
Description: raw image decoder library
|
Description: raw image decoder library
|
||||||
|
@ -79,6 +79,10 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|||||||
# Rename cmake module into a config in order to allow more flexible lookup rules
|
# Rename cmake module into a config in order to allow more flexible lookup rules
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libraw/FindLibRaw.cmake ${CURRENT_PACKAGES_DIR}/share/libraw/LibRaw-config.cmake)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libraw/FindLibRaw.cmake ${CURRENT_PACKAGES_DIR}/share/libraw/LibRaw-config.cmake)
|
||||||
|
|
||||||
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||||
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/libraw)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
file(COPY ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/libraw)
|
file(COPY ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/libraw)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libraw/COPYRIGHT ${CURRENT_PACKAGES_DIR}/share/libraw/copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libraw/COPYRIGHT ${CURRENT_PACKAGES_DIR}/share/libraw/copyright)
|
||||||
|
7
ports/libraw/vcpkg-cmake-wrapper.cmake
Normal file
7
ports/libraw/vcpkg-cmake-wrapper.cmake
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
_find_package(${ARGS})
|
||||||
|
find_package(Jasper REQUIRED)
|
||||||
|
if (Jasper_FOUND)
|
||||||
|
list(APPEND LibRaw_LIBRARIES ${JASPER_LIBRARIES})
|
||||||
|
list(APPEND LibRaw_r_LIBRARIES ${JASPER_LIBRARIES})
|
||||||
|
endif ()
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user