diff options
| author | Alexander Täschner <A.Taeschner@gsi.de> | 2017-06-01 11:08:25 +0200 |
|---|---|---|
| committer | Alexander Täschner <A.Taeschner@gsi.de> | 2017-06-07 15:38:38 +0200 |
| commit | 226eefef9da1ec3b601b192263ff3d6b95aaf3cf (patch) | |
| tree | d202bfa4173b09ef53f74b4b239a46eac458883b | |
| parent | 9a698d7088beb3fa32b1b9d0321781c0ba07e18e (diff) | |
| download | vcpkg-226eefef9da1ec3b601b192263ff3d6b95aaf3cf.tar.gz vcpkg-226eefef9da1ec3b601b192263ff3d6b95aaf3cf.zip | |
[pango] Add CAIRO_WIN32_STATIC_BUILD symbol to static builds of pangocairo lib.
| -rw-r--r-- | ports/pango/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | ports/pango/CONTROL | 2 | ||||
| -rw-r--r-- | ports/pango/portfile.cmake | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/ports/pango/CMakeLists.txt b/ports/pango/CMakeLists.txt index 7dad7dbcf..ea36939b5 100644 --- a/ports/pango/CMakeLists.txt +++ b/ports/pango/CMakeLists.txt @@ -130,6 +130,10 @@ pango_add_module(pangocairo pango/pangocairo-font.c pango/pangocairo-fontmap.c pango/pangocairo-render.c) + +if (VCPKG_LIBRARY_LINKAGE STREQUAL static) + target_compile_definitions(pangocairo PRIVATE CAIRO_WIN32_STATIC_BUILD=1) +endif() target_link_libraries(pangocairo ${CAIRO_LIBRARIES} pango pangowin32 pangoft2 ${FONT_LIBRARIES}) target_include_directories(pangocairo PRIVATE ${CAIRO_INCLUDE_DIR} ${FONT_INCLUDE_DIRS}) diff --git a/ports/pango/CONTROL b/ports/pango/CONTROL index 011f33691..f5e2709c4 100644 --- a/ports/pango/CONTROL +++ b/ports/pango/CONTROL @@ -1,4 +1,4 @@ Source: pango
-Version: 1.40.6
+Version: 1.40.6-1
Description: Text and font handling library.
Build-Depends: glib, gettext, cairo, fontconfig, freetype, harfbuzz
diff --git a/ports/pango/portfile.cmake b/ports/pango/portfile.cmake index 7f28b8ca7..4e373e84a 100644 --- a/ports/pango/portfile.cmake +++ b/ports/pango/portfile.cmake @@ -17,6 +17,8 @@ vcpkg_apply_patches( vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
+ OPTIONS
+ -DVCPKG_LIBRARY_LINKAGE=${VCPKG_LIBRARY_LINKAGE}
OPTIONS_DEBUG
-DPANGO_SKIP_HEADERS=ON)
|
