123456789101112131415161718192021222324252627282930313233 |
- project('cubes plus plus', 'cpp')
- sourcesCommon = ['common/block/BlockRegistry.cpp', 'common/block/Block.cpp', 'common/stream/Stream.cpp', 'common/world/Chunk.cpp', 'common/world/World.cpp', 'common/utils/Face.cpp', 'common/utils/DataVector.cpp']
- sourcesServer = ['server/GameServer.cpp', 'server/commands/CommandUtils.cpp', 'server/commands/ServerCommands.cpp', 'server/commands/CommandManager.cpp', 'server/network/Server.cpp', 'server/Main.cpp']
- sourcesClient = ['client/Main.cpp', 'client/rendering/WindowSize.cpp', 'client/math/Frustum.cpp', 'client/math/Ray.cpp', 'client/rendering/Framebuffers.cpp', 'client/rendering/wrapper/GLFWWrapper.cpp', 'client/rendering/wrapper/Window.cpp', 'client/Engine.cpp', 'client/input/Keys.cpp', 'client/rendering/wrapper/Shader.cpp', 'client/rendering/Shaders.cpp', 'client/Utils.cpp', 'client/rendering/Mesh.cpp', 'client/math/Matrix.cpp', 'client/math/MatrixStack.cpp', 'client/math/Vector.cpp', 'client/math/Camera.cpp', 'client/math/Plane.cpp', 'client/Game.cpp', 'client/input/MouseButtons.cpp', 'client/rendering/Texture.cpp', 'client/rendering/FontRenderer.cpp', 'client/rendering/wrapper/Framebuffer.cpp', 'client/rendering/NoiseTexture.cpp', 'client/utils/Clock.cpp', 'client/input/Control.cpp', 'client/rendering/RenderSettings.cpp']
- sourcesTest = ['tests/Main.cpp', 'server/commands/CommandUtils.cpp']
- c_compiler = meson.get_compiler('cpp')
- readline = c_compiler.find_library('readline', required: true)
- threadDep = dependency('threads')
- glewDep = dependency('glew')
- glfwDep = dependency('glfw3')
- pngDep = dependency('libpng')
- executable('game_server',
- sources: sourcesCommon + sourcesServer,
- dependencies : [threadDep, readline],
- cpp_args: ['-Wall', '-Wextra', '-pedantic', '-Werror'])
-
- #executable('game_tests',
- # sources: sourcesTest)
-
- executable('game_client',
- sources: sourcesCommon + sourcesClient,
- dependencies : [threadDep, glewDep, glfwDep, pngDep],
- cpp_args: ['-Wall', '-Wextra', '-pedantic', '-Werror'])
-
-
|