meson.build 617 B

12345678910111213141516171819202122232425262728
  1. project('lonely tiger', 'c')
  2. src = [
  3. 'Main.c',
  4. 'tokenizer/Tokenizer.c',
  5. 'tokenizer/Token.c',
  6. 'tokenizer/File.c',
  7. 'utils/Utils.c',
  8. 'utils/Variables.c',
  9. 'utils/Functions.c',
  10. 'utils/ByteCodePrinter.c',
  11. 'Compiler.c',
  12. 'DataType.c',
  13. 'Test.c',
  14. 'vm/ByteCode.c',
  15. 'vm/Script.c',
  16. 'vm/Arrays.c',
  17. 'libraries/Time.c',
  18. 'libraries/Math.c'
  19. ]
  20. cc = meson.get_compiler('c')
  21. mathDep = cc.find_library('m', required : true)
  22. executable('lonely_tiger',
  23. sources: src,
  24. dependencies : mathDep,
  25. c_args: ['-Wall', '-Wextra', '-pedantic', '-Werror', '-O3'])