2018-10-28 02:55:12 +02:00
|
|
|
repl_src = [
|
|
|
|
'repl.cc'
|
|
|
|
]
|
|
|
|
|
2021-03-20 08:22:15 +01:00
|
|
|
repl_deps = [libcubescript]
|
2018-10-28 02:55:12 +02:00
|
|
|
repl_flags = []
|
|
|
|
|
2021-03-28 00:56:11 +01:00
|
|
|
if not get_option('repl').disabled()
|
2021-04-12 20:41:07 +02:00
|
|
|
if not get_option('linenoise').disabled()
|
2021-03-28 00:56:11 +01:00
|
|
|
repl_flags = ['-DCS_REPL_USE_LINENOISE']
|
|
|
|
endif
|
|
|
|
executable('cubescript',
|
|
|
|
repl_src,
|
|
|
|
dependencies: repl_deps,
|
|
|
|
include_directories: libcubescript_includes + [include_directories('.')],
|
|
|
|
cpp_args: extra_cxxflags + repl_flags,
|
|
|
|
install: true
|
|
|
|
)
|
|
|
|
endif
|