1234567891011121314151617181920212223242526272829303132333435363738 |
- project('lonelytiger', 'c')
- src = [
- 'tokenizer/Tokenizer.c',
- 'tokenizer/Token.c',
- 'tokenizer/FileTokens.c',
- 'utils/SnuviUtils.c',
- 'utils/Variables.c',
- 'utils/Functions.c',
- 'utils/ByteCodePrinter.c',
- 'Compiler.c',
- 'DataType.c',
- 'Error.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)
|