meson.build 730 B

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