meson.build 1.9 KB

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