mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 09:58:12 +02:00
Set CAIRO_WIN32_STATIC_BUILD when doing a static build on windows
This commit is contained in:
parent
a04786b933
commit
4d9657ad0d
1 changed files with 7 additions and 1 deletions
|
|
@ -307,9 +307,15 @@ libcairo = library('cairo', cairo_sources,
|
|||
|
||||
cairo_headers += [configure_file(output: 'cairo-features.h', configuration: feature_conf)]
|
||||
|
||||
cairo_static_args = []
|
||||
if get_option('default_library') == 'static' and host_machine.system() == 'windows'
|
||||
cairo_static_args += ['-DCAIRO_WIN32_STATIC_BUILD']
|
||||
endif
|
||||
|
||||
libcairo_dep = declare_dependency(link_with: libcairo,
|
||||
dependencies: deps,
|
||||
include_directories: incsrc
|
||||
include_directories: incsrc,
|
||||
compile_args: cairo_static_args,
|
||||
)
|
||||
|
||||
pkgmod.generate(libcairo,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue