meson.build 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. 'tests/QuaternionTests.cpp',
  27. 'math/Quaternion.cpp',
  28. 'tests/UtilsTests.cpp',
  29. 'tests/ColorTests.cpp',
  30. 'utils/Clock.cpp',
  31. 'tests/ClockTests.cpp',
  32. 'images/PNGReader.cpp',
  33. 'tests/PNGReaderTests.cpp',
  34. 'tests/BufferTests.cpp',
  35. 'tests/TypedBufferTests.cpp',
  36. 'wrapper/GL.cpp',
  37. 'wrapper/GLFW.cpp',
  38. 'wrapper/GLEW.cpp',
  39. 'rendering/Texture.cpp',
  40. 'rendering/Shader.cpp',
  41. 'rendering/VertexBuffer.cpp',
  42. 'rendering/Attributes.cpp',
  43. 'rendering/Window.cpp',
  44. 'rendering/WindowOptions.cpp',
  45. 'rendering/TextureFormat.cpp',
  46. 'rendering/FileTexture.cpp',
  47. 'input/Button.cpp',
  48. 'input/Buttons.cpp',
  49. 'tests/UniquePointerTests.cpp',
  50. 'utils/Buffer.cpp',
  51. 'tests/NetworkTests.cpp',
  52. 'network/Packet.cpp',
  53. 'network/Server.cpp',
  54. 'network/Client.cpp',
  55. 'network/ENet.cpp']
  56. threadDep = dependency('threads')
  57. glewDep = dependency('glew')
  58. glfwDep = dependency('glfw3')
  59. pngDep = dependency('libpng')
  60. executable('tests',
  61. sources: sources,
  62. dependencies : [threadDep, glewDep, glfwDep, pngDep],
  63. cpp_args: ['-Wall', '-Wextra', '-pedantic', '-Werror'])