meson: handle also cases when the options are disabled
This commit is contained in:
parent
ac304ea2a9
commit
f0c2c4605b
|
@ -33,6 +33,8 @@ config_h.set_quoted('EFL_CFLAGS', run_command(find_program('pkg-config'), '--lib
|
|||
if get_option('bear') == true
|
||||
bear = find_program('bear')
|
||||
config_h.set_quoted('BEAR_COMMAND', 'bear')
|
||||
else
|
||||
config_h.set_quoted('BEAR_COMMAND', '')
|
||||
endif
|
||||
|
||||
if get_option('libclang') == true
|
||||
|
|
|
@ -25,8 +25,14 @@ foreach package : packages
|
|||
subdir(package)
|
||||
endforeach
|
||||
|
||||
deps = [elm, edi_lib]
|
||||
|
||||
if get_option('libclang') == true
|
||||
deps += [clang]
|
||||
endif
|
||||
|
||||
executable('edi', src,
|
||||
dependencies : [elm, edi_lib, clang],
|
||||
dependencies : deps,
|
||||
install : true
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue