diff options
| author | Alexander Täschner <A.Taeschner@gsi.de> | 2017-06-08 08:02:15 +0200 |
|---|---|---|
| committer | Alexander Täschner <A.Taeschner@gsi.de> | 2017-06-08 08:02:15 +0200 |
| commit | 796220ee174b756dd9b47f5790d9907d57b0e175 (patch) | |
| tree | 19b8543c13e3381206b7c8bec20dcee6b6133fcc | |
| parent | 1c11bec722bbe25b1523cf436e9567d1689cc408 (diff) | |
| download | vcpkg-796220ee174b756dd9b47f5790d9907d57b0e175.tar.gz vcpkg-796220ee174b756dd9b47f5790d9907d57b0e175.zip | |
[cairo] Hardcode value of CAIRO_WIN32_STATIC_BUILD into the cairo headers.
| -rw-r--r-- | ports/cairo/CONTROL | 2 | ||||
| -rw-r--r-- | ports/cairo/portfile.cmake | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ports/cairo/CONTROL b/ports/cairo/CONTROL index 89ba03b79..88325c521 100644 --- a/ports/cairo/CONTROL +++ b/ports/cairo/CONTROL @@ -1,4 +1,4 @@ Source: cairo -Version: 1.15.4 +Version: 1.15.4-1 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 diff --git a/ports/cairo/portfile.cmake b/ports/cairo/portfile.cmake index 57b45e91c..d6036d93c 100644 --- a/ports/cairo/portfile.cmake +++ b/ports/cairo/portfile.cmake @@ -32,6 +32,14 @@ endif() vcpkg_install_cmake() +file(READ "${SOURCE_PATH}/src/cairo.h" CAIRO_H) +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + string(REPLACE "defined (CAIRO_WIN32_STATIC_BUILD)" "1" CAIRO_H "${CAIRO_H}") +else() + string(REPLACE "defined (CAIRO_WIN32_STATIC_BUILD)" "0" CAIRO_H "${CAIRO_H}") +endif() +file(WRITE "${SOURCE_PATH}/src/cairo.h" "${CAIRO_H}") + # Copy the appropriate header files. file(COPY "${SOURCE_PATH}/src/cairo.h" |
