mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 11:07:10 +01:00
Merge pull request #9800 from angelmixu/cairo-fix-export-macOS-dynamic-library
[cairo] fix export symbols on dynamic libraries for macOS
This commit is contained in:
commit
f79396b425
@ -208,10 +208,17 @@ set(CAIRO_GOBJECT_SOURCES
|
|||||||
|
|
||||||
# GObject support sources do not include header with export macro
|
# GObject support sources do not include header with export macro
|
||||||
if(BUILD_SHARED_LIBS)
|
if(BUILD_SHARED_LIBS)
|
||||||
set_source_files_properties(
|
if(MSVC)
|
||||||
"../util/cairo-gobject/cairo-gobject-enums.c"
|
set_source_files_properties(
|
||||||
|
"../util/cairo-gobject/cairo-gobject-enums.c"
|
||||||
"../util/cairo-gobject/cairo-gobject-structs.c"
|
"../util/cairo-gobject/cairo-gobject-structs.c"
|
||||||
PROPERTIES COMPILE_DEFINITIONS "cairo_public=__declspec(dllexport)")
|
PROPERTIES COMPILE_DEFINITIONS "cairo_public=__declspec(dllexport)")
|
||||||
|
else()
|
||||||
|
set_source_files_properties(
|
||||||
|
"../util/cairo-gobject/cairo-gobject-enums.c"
|
||||||
|
"../util/cairo-gobject/cairo-gobject-structs.c"
|
||||||
|
PROPERTIES COMPILE_DEFINITIONS "cairo_public=__attribute__((visibility(\"default\")))")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(cairo-gobject ${CAIRO_GOBJECT_SOURCES})
|
add_library(cairo-gobject ${CAIRO_GOBJECT_SOURCES})
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Source: cairo
|
Source: cairo
|
||||||
Version: 1.16.0-2
|
Version: 1.16.0-3
|
||||||
Homepage: https://cairographics.org
|
Homepage: https://cairographics.org
|
||||||
Description: Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System (via both Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
|
Description: Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System (via both Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
|
||||||
Build-Depends: zlib, libpng, pixman, glib, freetype, fontconfig
|
Build-Depends: zlib, libpng, pixman, glib, freetype, fontconfig
|
||||||
|
Loading…
x
Reference in New Issue
Block a user