meson: handle also cases when the options are disabled

This commit is contained in:
Marcel Hollerbach 2017-10-03 21:33:45 +02:00
parent ac304ea2a9
commit f0c2c4605b
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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
)