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. 'rendering/Texture.cpp',
  39. 'rendering/Shader.cpp',
  40. 'rendering/VertexBuffer.cpp',
  41. 'rendering/Attributes.cpp',
  42. 'rendering/Window.cpp',
  43. 'rendering/WindowOptions.cpp',
  44. 'rendering/TextureFormat.cpp',
  45. 'rendering/FileTexture.cpp',
  46. 'input/Button.cpp',
  47. 'input/Buttons.cpp',
  48. 'tests/UniquePointerTests.cpp',
  49. 'utils/Buffer.cpp',
  50. 'tests/NetworkTests.cpp',
  51. 'network/Packet.cpp',
  52. 'network/Server.cpp',
  53. 'network/Client.cpp',
  54. 'network/ENet.cpp',
  55. 'input/TextInput.cpp',
  56. 'utils/Error.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'])