meson.build 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. project('gaming core tests', 'cpp')
  2. sources = ['Main.cpp',
  3. 'tests/Test.cpp',
  4. 'tests/ArrayTests.cpp',
  5. 'tests/HashMapTests.cpp',
  6. 'tests/ListTests.cpp',
  7. 'tests/BitArrayTests.cpp',
  8. 'tests/StringBufferTests.cpp',
  9. 'tests/RandomTests.cpp',
  10. 'utils/Random.cpp',
  11. 'tests/RingBufferTests.cpp',
  12. 'tests/SplitStringTests.cpp',
  13. 'tests/VectorTests.cpp',
  14. 'math/Vector.cpp',
  15. 'math/Matrix.cpp',
  16. 'tests/MatrixTests.cpp',
  17. 'tests/StackTests.cpp',
  18. 'tests/MatrixStackTests.cpp',
  19. 'tests/PlaneTests.cpp',
  20. 'math/Plane.cpp',
  21. 'tests/FrustumTests.cpp',
  22. 'math/Frustum.cpp',
  23. 'utils/Size.cpp',
  24. 'tests/QuaternionTests.cpp',
  25. 'math/Quaternion.cpp',
  26. 'tests/UtilsTests.cpp',
  27. 'tests/ColorTests.cpp',
  28. 'utils/Clock.cpp',
  29. 'tests/ClockTests.cpp',
  30. 'images/PNGReader.cpp',
  31. 'tests/PNGReaderTests.cpp',
  32. 'tests/BufferTests.cpp',
  33. 'tests/TypedBufferTests.cpp',
  34. 'wrapper/Texture.cpp',
  35. 'wrapper/GL.cpp',
  36. 'wrapper/GLFW.cpp',
  37. 'wrapper/GLEW.cpp',
  38. 'wrapper/Shader.cpp',
  39. 'wrapper/VertexBuffer.cpp',
  40. 'wrapper/Attributes.cpp',
  41. 'wrapper/Window.cpp',
  42. 'wrapper/WindowOptions.cpp',
  43. 'input/Button.cpp',
  44. 'input/Buttons.cpp',
  45. 'wrapper/TextureFormat.cpp',
  46. 'rendering/FileTexture.cpp',
  47. 'memory/StackAllocator.cpp',
  48. 'tests/StackAllocatorTests.cpp',
  49. 'utils/Buffer.cpp']
  50. glewDep = dependency('glew')
  51. glfwDep = dependency('glfw3')
  52. pngDep = dependency('libpng')
  53. executable('tests',
  54. sources: sources,
  55. dependencies : [glewDep, glfwDep, pngDep],
  56. cpp_args: ['-Wall', '-Wextra', '-pedantic', '-Werror'])