forked from enlightenment/enlightenment
improve meson build module disabling
ref 61ddcb25e6075e5e6a5436dc6f981e45317c5d7d
This commit is contained in:
parent
4f5067dde9
commit
c1a3ec9940
|
@ -78,6 +78,7 @@ mods = [
|
||||||
|
|
||||||
foreach m: mods
|
foreach m: mods
|
||||||
desktop_only = false
|
desktop_only = false
|
||||||
|
disable = false
|
||||||
no_icon = false
|
no_icon = false
|
||||||
cargs = ''
|
cargs = ''
|
||||||
data = []
|
data = []
|
||||||
|
@ -87,13 +88,14 @@ foreach m: mods
|
||||||
_dir_bin = join_paths(_dir, module_arch)
|
_dir_bin = join_paths(_dir, module_arch)
|
||||||
|
|
||||||
opt = '-'.join(m.split('_'))
|
opt = '-'.join(m.split('_'))
|
||||||
disable = get_option(opt)
|
|
||||||
|
|
||||||
if disable == true
|
if get_option(opt) == true
|
||||||
subdir(m)
|
subdir(m)
|
||||||
|
else
|
||||||
|
disable = true
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if disable == true
|
if disable == false
|
||||||
|
|
||||||
_inc2 = []
|
_inc2 = []
|
||||||
foreach i: inc
|
foreach i: inc
|
||||||
|
|
Loading…
Reference in New Issue