mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-07 14:28:02 +02:00
Don't build fontconfig on Windows
mesons 'auto' is too eager to build things. Building fontconfig as a subproject on Windows is not the right thing, unless it was explictly requested.
This commit is contained in:
parent
c287fb3a1f
commit
f6a3f6d8ad
1 changed files with 8 additions and 1 deletions
|
|
@ -198,8 +198,15 @@ if png_dep.found()
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Don't build fontconfig as a subproject on Windows unless
|
||||||
|
# explicitly requested
|
||||||
|
fontconfig_option = get_option('fontconfig')
|
||||||
|
if host_machine.system() == 'windows' and not fontconfig_option.enabled()
|
||||||
|
fontconfig_option = false
|
||||||
|
endif
|
||||||
|
|
||||||
fontconfig_dep = dependency('fontconfig',
|
fontconfig_dep = dependency('fontconfig',
|
||||||
required: get_option('fontconfig'),
|
required: fontconfig_option,
|
||||||
version: fontconfig_required_version,
|
version: fontconfig_required_version,
|
||||||
fallback: ['fontconfig', 'fontconfig_dep'],
|
fallback: ['fontconfig', 'fontconfig_dep'],
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue