12345678910111213141516171819202122232425262728293031323334 |
- project('lonely tiger', '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')
- mathDep = cc.find_library('m', required : true)
- args = ['-Wall', '-Wextra', '-pedantic', '-Werror', '-O3']
- static_library('lonely_tiger',
- sources: src,
- dependencies : mathDep,
- c_args: args)
- executable('lonely_tiger',
- sources: src + ['Main.c'],
- dependencies : mathDep,
- c_args: args)
|