2018-10-28 00:55:12 +00:00
|
|
|
repl_src = [
|
|
|
|
'repl.cc'
|
|
|
|
]
|
|
|
|
|
2021-03-20 07:22:15 +00:00
|
|
|
repl_deps = [libcubescript]
|
2018-10-28 00:55:12 +00:00
|
|
|
repl_flags = []
|
|
|
|
|
2021-03-27 23:56:11 +00:00
|
|
|
if not get_option('repl').disabled()
|
2021-04-12 18:41:07 +00:00
|
|
|
if not get_option('linenoise').disabled()
|
2021-03-27 23:56:11 +00: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
|