meson.build 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. threadDep = dependency('threads')
  58. glewDep = dependency('glew')
  59. glfwDep = dependency('glfw3')
  60. pngDep = dependency('libpng')
  61. executable('tests',
  62. sources: sources,
  63. dependencies : [threadDep, glewDep, glfwDep, pngDep],
  64. cpp_args: ['-Wall', '-Wextra', '-pedantic', '-Werror', '-DLOG_LEVEL=4'])