mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
[librsvg] Fix for macOS (#11722)
* fix librsvg * fix for linux dependencies * fix for linux dependencies (retry) * increase control port version Co-authored-by: Angel Sánchez <angelsanchez@inedit.com>
This commit is contained in:
parent
ec7c7afbe7
commit
f3c92f82d6
@ -5,11 +5,19 @@ find_package(unofficial-cairo CONFIG REQUIRED)
|
||||
find_package(unofficial-libcroco CONFIG REQUIRED)
|
||||
find_package(unofficial-glib CONFIG REQUIRED)
|
||||
find_package(LibXml2 REQUIRED)
|
||||
find_library(PANGO_LIB pango-1.0)
|
||||
find_library(PANGO_CAIRO_LIB pangocairo-1.0)
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
find_library(PANGO_LIB pango-1.0)
|
||||
find_library(PANGO_CAIRO_LIB pangocairo-1.0)
|
||||
find_library(GDK_PIXBUF_LIB gdk_pixbuf-2.0)
|
||||
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
find_library(PANGO_LIB pango-1.0)
|
||||
find_library(PANGO_CAIRO_LIB pangocairo-1.0)
|
||||
find_library(GDK_PIXBUF_LIB gdk_pixbuf-2)
|
||||
else()
|
||||
find_library(PANGO_LIB pango-1)
|
||||
find_library(PANGO_CAIRO_LIB pangocairo-1)
|
||||
find_library(PANGO_FT2_LIB pangoft2-1)
|
||||
find_library(FONTCONFIG_LIB fontconfig)
|
||||
find_library(GDK_PIXBUF_LIB gdk_pixbuf-2)
|
||||
endif()
|
||||
|
||||
@ -112,6 +120,8 @@ target_link_libraries(rsvg-2.40 PRIVATE
|
||||
${PANGO_LIB}
|
||||
${PANGO_CAIRO_LIB}
|
||||
${GDK_PIXBUF_LIB}
|
||||
${PANGO_FT2_LIB}
|
||||
${FONTCONFIG_LIB}
|
||||
)
|
||||
target_link_libraries(pixbufloader-svg PRIVATE
|
||||
rsvg-2.40
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: librsvg
|
||||
Version: 2.40.20
|
||||
Version: 2.40.20-1
|
||||
Description: A small library to render Scalable Vector Graphics (SVG)
|
||||
Build-Depends: cairo, pango, gdk-pixbuf, libcroco
|
Loading…
x
Reference in New Issue
Block a user