meson.build 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. project('spg project', 'cpp')
  2. sources = ['Main.cpp',
  3. 'Game.cpp',
  4. 'MarchingCubes.cpp',
  5. 'LayeredFramebuffer.cpp',
  6. 'Texture3D.cpp',
  7. 'gaming-core/utils/Size.cpp',
  8. 'gaming-core/utils/Clock.cpp',
  9. 'gaming-core/utils/Random.cpp',
  10. 'gaming-core/utils/Error.cpp',
  11. 'gaming-core/wrapper/GL.cpp',
  12. 'gaming-core/rendering/Window.cpp',
  13. 'gaming-core/rendering/WindowOptions.cpp',
  14. 'gaming-core/rendering/Shader.cpp',
  15. 'gaming-core/rendering/VertexBuffer.cpp',
  16. 'gaming-core/rendering/Attributes.cpp',
  17. 'gaming-core/rendering/Texture.cpp',
  18. 'gaming-core/rendering/TextureFormat.cpp',
  19. 'gaming-core/rendering/FileTexture.cpp',
  20. 'gaming-core/images/PNGReader.cpp',
  21. 'gaming-core/math/Frustum.cpp',
  22. 'gaming-core/math/Plane.cpp',
  23. 'gaming-core/math/Matrix.cpp',
  24. 'gaming-core/math/Quaternion.cpp',
  25. 'gaming-core/math/Vector.cpp',
  26. 'gaming-core/input/TextInput.cpp',
  27. 'gaming-core/input/Button.cpp',
  28. 'gaming-core/input/Buttons.cpp']
  29. glewDep = dependency('glew')
  30. glfwDep = dependency('glfw3')
  31. pngDep = dependency('libpng')
  32. executable('demo',
  33. sources: sources,
  34. dependencies : [glewDep, glfwDep, pngDep],
  35. include_directories : include_directories('gaming-core'),
  36. cpp_args: ['-Wall', '-Wextra', '-pedantic', '-Werror'])