mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-20 07:08:31 +02:00
Fix build on Windows with -Ddefault_library=static
cairo-perf-chart.c.obj : error LNK2019: unresolved external symbol __imp_cairo_create referenced in function main etc.
This commit is contained in:
parent
bd8bd609f6
commit
e25511ecd6
1 changed files with 6 additions and 5 deletions
|
|
@ -260,6 +260,12 @@ endforeach
|
|||
|
||||
incsrc = include_directories('.')
|
||||
|
||||
cairo_static_args = []
|
||||
if get_option('default_library') == 'static' and host_machine.system() == 'windows'
|
||||
cairo_static_args += ['-DCAIRO_WIN32_STATIC_BUILD']
|
||||
add_project_arguments('-DCAIRO_WIN32_STATIC_BUILD', language: 'c')
|
||||
endif
|
||||
|
||||
libcairo = library('cairo', cairo_sources,
|
||||
dependencies: deps,
|
||||
c_args: cairo_no_warn_c_args + pthread_c_args,
|
||||
|
|
@ -273,11 +279,6 @@ 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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue