mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
infra meson: Add -Dstatic option
Add an option for use in environments where the use of static libraries must be enforced.
This commit is contained in:
parent
abc3b40a37
commit
590381f68b
2 changed files with 17 additions and 4 deletions
|
@ -47,3 +47,8 @@ option('log',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
value: false,
|
value: false,
|
||||||
description: 'Enable log message')
|
description: 'Enable log message')
|
||||||
|
|
||||||
|
option('static',
|
||||||
|
type: 'boolean',
|
||||||
|
value: false,
|
||||||
|
description: 'Enable to use static library(png, jpg)')
|
||||||
|
|
|
@ -9,17 +9,25 @@ if all_loaders or get_option('loaders').contains('svg') == true
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if all_loaders or get_option('loaders').contains('png') == true
|
if all_loaders or get_option('loaders').contains('png') == true
|
||||||
|
if get_option('static') == true
|
||||||
|
subdir('png')
|
||||||
|
else
|
||||||
subdir('external_png')
|
subdir('external_png')
|
||||||
if not png_dep.found()
|
if not png_dep.found()
|
||||||
subdir('png')
|
subdir('png')
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if all_loaders or get_option('loaders').contains('jpg') == true
|
if all_loaders or get_option('loaders').contains('jpg') == true
|
||||||
|
if get_option('static') == true
|
||||||
|
subdir('jpg')
|
||||||
|
else
|
||||||
subdir('external_jpg')
|
subdir('external_jpg')
|
||||||
if not jpg_dep.found()
|
if not jpg_dep.found()
|
||||||
subdir('jpg')
|
subdir('jpg')
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
subdir('raw')
|
subdir('raw')
|
||||||
|
|
Loading…
Add table
Reference in a new issue