project('grino', 'cpp', version: '0.0.0', default_options: [ 'warning_level=3', 'cpp_std=c++17' ]) grino_libdir = get_option('prefix') / get_option('libdir') / 'grino' conf = configuration_data() conf.set('version', meson.project_version()) conf.set('libdir', grino_libdir) configure_file(input: 'src/config.in.hpp', output: 'config.hpp', configuration: conf) grino_src = static_library('grino', sources: [ 'src/Compiler.cpp', 'src/Lexer.cpp', 'src/Loc.cpp', 'src/Logger.cpp', 'src/Node.cpp', 'src/Parser.cpp', 'src/Program.cpp', 'src/VM.cpp', 'src/Value.cpp', 'src/Function.cpp', 'src/StaticFunction.cpp', 'src/SymTable.cpp', 'src/Loader.cpp', ]) grino_dep = declare_dependency(link_with: grino_src) shared_library('grino_core', sources: [ 'lib/core.cpp' ], dependencies: [ grino_dep ], install: true, install_dir: grino_libdir) executable('grino', sources: [ 'src/main.cpp' ], dependencies: [ grino_dep ], install: true) executable('grino-tests', sources: [ 'tests/main.cpp', 'tests/Lexer.cpp', 'tests/Parser.cpp', ], dependencies: [ grino_dep, dependency('catch2') ])