mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +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',
|
||||
value: false,
|
||||
description: 'Enable log message')
|
||||
|
||||
option('static',
|
||||
type: 'boolean',
|
||||
value: false,
|
||||
description: 'Enable to use static library(png, jpg)')
|
||||
|
|
|
@ -9,18 +9,26 @@ if all_loaders or get_option('loaders').contains('svg') == true
|
|||
endif
|
||||
|
||||
if all_loaders or get_option('loaders').contains('png') == true
|
||||
if get_option('static') == true
|
||||
subdir('png')
|
||||
else
|
||||
subdir('external_png')
|
||||
if not png_dep.found()
|
||||
subdir('png')
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
if all_loaders or get_option('loaders').contains('jpg') == true
|
||||
if get_option('static') == true
|
||||
subdir('jpg')
|
||||
else
|
||||
subdir('external_jpg')
|
||||
if not jpg_dep.found()
|
||||
subdir('jpg')
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
subdir('raw')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue