Add an option for use in environments where
the use of static libraries must be enforced.
type: 'boolean',
value: false,
description: 'Enable log message')
+
+option('static',
+ type: 'boolean',
+ value: false,
+ description: 'Enable to use static library(png, jpg)')
endif
if all_loaders or get_option('loaders').contains('png') == true
- subdir('external_png')
- if not png_dep.found()
+ 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
- subdir('external_jpg')
- if not jpg_dep.found()
+ if get_option('static') == true
subdir('jpg')
+ else
+ subdir('external_jpg')
+ if not jpg_dep.found()
+ subdir('jpg')
+ endif
endif
endif