vcpkg/ports/cairo/cairo_static_fix.patch

18 lines
596 B
Diff
Raw Normal View History

--- meson.build.orig 2022-03-19 03:40:07.000000000 +0900
+++ meson.build 2022-03-29 21:32:41.000000000 +0900
2023-02-28 03:51:45 +08:00
@@ -96,6 +96,13 @@
endif
add_project_arguments('-D_GNU_SOURCE', language: 'c')
+if host_machine.system() == 'windows'
+ lib_default = get_option('default_library')
+ if lib_default == 'static'
+ add_project_arguments('-DCAIRO_WIN32_STATIC_BUILD', language: 'c')
+ endif
+endif
+
# Make sure source directory hasn't been configured with autotools
fs = import('fs')
if fs.exists('config.h') or fs.exists('src/cairo-features.h') or fs.exists('src/cairo-supported-features.h')