mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 23:48:59 +08:00
Merge pull request #1233 from AlexanderTaeschner/pango_static
[pango] Add CAIRO_WIN32_STATIC_BUILD symbol to static pangocairo builds
This commit is contained in:
commit
1b717d851f
@ -1,4 +1,4 @@
|
||||
Source: cairo
|
||||
Version: 1.15.4-1
|
||||
Version: 1.15.4-2
|
||||
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
|
||||
|
@ -49,6 +49,16 @@ foreach(FILE
|
||||
file(COPY ${FILE} DESTINATION ${CURRENT_PACKAGES_DIR}/include/cairo)
|
||||
endforeach()
|
||||
|
||||
foreach(FILE "${CURRENT_PACKAGES_DIR}/include/cairo.h" "${CURRENT_PACKAGES_DIR}/include/cairo/cairo.h")
|
||||
file(READ ${FILE} 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 ${FILE} "${CAIRO_H}")
|
||||
endforeach()
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/cairo)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/cairo/COPYING ${CURRENT_PACKAGES_DIR}/share/cairo/copyright)
|
||||
|
Loading…
Reference in New Issue
Block a user