|
@@ -2,7 +2,7 @@ project('cubes plus plus', 'cpp')
|
|
|
|
|
|
#sourcesCommon = ['common/stream/Stream.cpp', 'common/utils/Face.cpp', 'common/block/Block.cpp', 'common/block/Blocks.cpp', 'common/block/BlockAir.cpp', 'common/world/Chunk.cpp', 'common/world/World.cpp']
|
|
#sourcesCommon = ['common/stream/Stream.cpp', 'common/utils/Face.cpp', 'common/block/Block.cpp', 'common/block/Blocks.cpp', 'common/block/BlockAir.cpp', 'common/world/Chunk.cpp', 'common/world/World.cpp']
|
|
|
|
|
|
-sourcesCommon = ['common/stream/Stream.cpp', 'common/block/BlockRegistry.cpp','common/block/Block.cpp', 'common/utils/DataVector.cpp']
|
|
+sourcesCommon = ['common/stream/Stream.cpp', 'common/block/BlockRegistry.cpp','common/block/Block.cpp', 'common/utils/DataVector.cpp', 'common/world/Chunk.cpp', 'common/world/World.cpp']
|
|
|
|
|
|
sourcesServer = ['server/Main.cpp', 'server/GameServer.cpp', 'server/network/Server.cpp', 'server/commands/CommandManager.cpp', 'server/commands/CommandUtils.cpp', 'server/commands/GeneralCommands.cpp', 'server/commands/ServerCommands.cpp']
|
|
sourcesServer = ['server/Main.cpp', 'server/GameServer.cpp', 'server/network/Server.cpp', 'server/commands/CommandManager.cpp', 'server/commands/CommandUtils.cpp', 'server/commands/GeneralCommands.cpp', 'server/commands/ServerCommands.cpp']
|
|
|
|
|
|
@@ -10,6 +10,9 @@ sourcesServer = ['server/Main.cpp', 'server/GameServer.cpp', 'server/network/Ser
|
|
|
|
|
|
sourcesTest = ['tests/Main.cpp', 'server/commands/CommandUtils.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')
|
|
threadDep = dependency('threads')
|
|
glewDep = dependency('glew')
|
|
glewDep = dependency('glew')
|
|
glfwDep = dependency('glfw3')
|
|
glfwDep = dependency('glfw3')
|
|
@@ -17,7 +20,7 @@ pngDep = dependency('libpng')
|
|
|
|
|
|
executable('game_server',
|
|
executable('game_server',
|
|
sources: sourcesCommon + sourcesServer,
|
|
sources: sourcesCommon + sourcesServer,
|
|
- dependencies : threadDep,
|
|
+ dependencies : [threadDep, readline],
|
|
cpp_args: ['-Wall', '-Wextra', '-pedantic', '-Werror'])
|
|
cpp_args: ['-Wall', '-Wextra', '-pedantic', '-Werror'])
|
|
|
|
|
|
#executable('game_tests',
|
|
#executable('game_tests',
|