1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- project('cubes plus plus', 'cpp')
- src_common = [
- 'common/block/Block.cpp',
- 'common/block/BlockRegistry.cpp',
- 'common/world/BlockMap.cpp',
- 'common/world/BlockStorage.cpp',
- 'common/world/World.cpp',
- 'common/world/HighMap.cpp',
- ]
- src_server = ['server/Main.cpp',
- 'server/GameServer.cpp',
- 'server/commands/ServerState.cpp',
- 'server/commands/CommandManager.cpp',
- 'server/world/WorldGenerator.cpp',
- 'server/snuviscript/Snuvi.cpp',
- ]
- src_client = ['client/Main.cpp',
- 'client/rendering/Framebuffers.cpp',
- 'client/rendering/Engine.cpp',
- 'client/rendering/Shaders.cpp',
- 'client/rendering/Mesh.cpp',
- 'client/Game.cpp',
- 'client/rendering/ShaderMatrix.cpp',
- 'client/rendering/NoiseTexture.cpp',
- 'client/input/Controller.cpp',
- 'client/rendering/RenderSettings.cpp',
- 'client/rendering/Renderer.cpp',
- 'client/rendering/renderer/WorldRenderer.cpp',
- 'client/rendering/Vertex.cpp',
- 'client/rendering/Triangle.cpp',
- 'client/gui/BaseGUI.cpp',
- 'client/gui/StartGUI.cpp'
- ]
- sources_test = ['tests/Main.cpp']
- args = ['-Wall', '-Wextra', '-pedantic', '-Werror']
- liblonelytiger_proj = subproject('lonely-tiger')
- liblonelytiger_dep = liblonelytiger_proj.get_variable('liblonelytiger_dep')
- libgamingcore_proj = subproject('gaming-core')
- libgamingcore_dep = libgamingcore_proj.get_variable('libgamingcore_dep')
- common = static_library('common',
- sources: src_common,
- dependencies: [libgamingcore_dep],
- c_args: args)
- common_dep = declare_dependency(
- link_with: common,
- include_directories: ['subprojects/gaming-core'])
- executable('game_server',
- sources: src_server,
- dependencies: [liblonelytiger_dep, common_dep],
- cpp_args: args)
-
- executable('game_tests',
- sources: sources_test,
- cpp_args: args)
-
- executable('game_client',
- sources: src_client,
- dependencies : common_dep,
- cpp_args: args)
|