forked from OctaForge/libcubescript
39 lines
998 B
Meson
39 lines
998 B
Meson
|
libcubescript_header_src = [
|
||
|
'../include/cubescript/cubescript.hh',
|
||
|
'../include/cubescript/cubescript_conf.hh'
|
||
|
]
|
||
|
|
||
|
libcubescript_src = [
|
||
|
'cs_gen.cc',
|
||
|
'cs_util.cc',
|
||
|
'cs_val.cc',
|
||
|
'cs_vm.cc',
|
||
|
'cubescript.cc',
|
||
|
'lib_list.cc',
|
||
|
'lib_math.cc',
|
||
|
'lib_str.cc'
|
||
|
]
|
||
|
|
||
|
libostd_dep = dependency('libostd', fallback: ['libostd', 'libostd_static'])
|
||
|
|
||
|
libcubescript_lib = both_libraries('cubescript',
|
||
|
libcubescript_src,
|
||
|
dependencies: libostd_dep,
|
||
|
include_directories: libcubescript_includes + [include_directories('.')],
|
||
|
cpp_args: extra_cxxflags,
|
||
|
install: true,
|
||
|
version: meson.project_version()
|
||
|
)
|
||
|
|
||
|
libcubescript = declare_dependency(
|
||
|
include_directories: libcubescript_includes,
|
||
|
link_with: libcubescript_lib.get_shared_lib()
|
||
|
)
|
||
|
|
||
|
libcubescript_static = declare_dependency(
|
||
|
include_directories: libcubescript_includes,
|
||
|
link_with: libcubescript_lib.get_static_lib()
|
||
|
)
|
||
|
|
||
|
install_headers(libcubescript_header_src, install_dir: dir_package_include)
|