12345678910111213141516171819202122232425262728293031323334353637 |
- project('lonelytiger', 'c')
- src = [
- 'tokenizer/Tokenizer.c',
- 'tokenizer/Token.c',
- 'tokenizer/File.c',
- 'utils/SnuviUtils.c',
- 'utils/Variables.c',
- 'utils/Functions.c',
- 'utils/ByteCodePrinter.c',
- 'Compiler.c',
- 'DataType.c',
- 'Test.c',
- 'vm/ByteCode.c',
- 'vm/Script.c',
- 'vm/Arrays.c',
- 'libraries/Time.c',
- 'libraries/Math.c'
- ]
- cc = meson.get_compiler('c')
- math_dep = cc.find_library('m', required : true)
- args = ['-Wall', '-Wextra', '-pedantic', '-Werror']
- inc = include_directories('.')
- liblonelytiger = static_library('lonelytiger',
- sources: src,
- include_directories : inc,
- dependencies : math_dep,
- c_args: args)
- liblonelytiger_dep = declare_dependency(include_directories : inc, link_with : liblonelytiger)
- executable('tests',
- sources: src + ['Main.c'],
- dependencies : math_dep,
- c_args: args)
|