1
This commit is contained in:
parent
d1ef912d3e
commit
6169fc61b5
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -7,3 +7,9 @@
|
|||||||
[submodule "third_party/tools"]
|
[submodule "third_party/tools"]
|
||||||
path = third_party/tools
|
path = third_party/tools
|
||||||
url = git@git.kingsome.cn:server_common/tools.git
|
url = git@git.kingsome.cn:server_common/tools.git
|
||||||
|
[submodule "third_party/behaviac"]
|
||||||
|
path = third_party/behaviac
|
||||||
|
url = git@git.kingsome.cn:libs/behaviac.git
|
||||||
|
[submodule "third_party/recastnavigation"]
|
||||||
|
path = third_party/recastnavigation
|
||||||
|
url = git@git.kingsome.cn:libs/recastnavigation.git
|
||||||
|
@ -8,9 +8,15 @@ else()
|
|||||||
message(GAME_ID: ${GAME_ID})
|
message(GAME_ID: ${GAME_ID})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (${RELEASE})
|
||||||
|
set(CMAKE_BUILD_TYPE "Release")
|
||||||
|
message("release mode")
|
||||||
|
else()
|
||||||
set(CMAKE_BUILD_TYPE "Debug")
|
set(CMAKE_BUILD_TYPE "Debug")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-std=gnu++11 -fsanitize=address -fno-omit-frame-pointer")
|
message("debug mode")
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++11 -DGAME_ID=${GAME_ID}")
|
endif()
|
||||||
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -std=gnu++11 -DGAME_ID=${GAME_ID} -DNDEBUG")
|
||||||
|
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++11 -DGAME_ID=${GAME_ID} -DDEBUG")
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
AFTER
|
AFTER
|
||||||
@ -21,12 +27,16 @@ include_directories(
|
|||||||
/usr/include/eigen3
|
/usr/include/eigen3
|
||||||
/usr/include/glm
|
/usr/include/glm
|
||||||
../../third_party
|
../../third_party
|
||||||
|
../../third_party/behaviac/inc
|
||||||
|
../../third_party/recastnavigation/Detour/Include
|
||||||
|
../../third_party/recastnavigation/DetourTileCache/Include
|
||||||
.
|
.
|
||||||
)
|
)
|
||||||
|
|
||||||
link_directories(
|
link_directories(
|
||||||
/usr/lib64/mysql
|
/usr/lib64/mysql
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
|
../../third_party/behaviac/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
aux_source_directory(../../third_party/a8engine/a8
|
aux_source_directory(../../third_party/a8engine/a8
|
||||||
@ -37,6 +47,14 @@ aux_source_directory(../../third_party/framework/cpp
|
|||||||
SRC_LIST
|
SRC_LIST
|
||||||
)
|
)
|
||||||
|
|
||||||
|
aux_source_directory(../../third_party/recastnavigation/Detour/Source
|
||||||
|
SRC_LIST
|
||||||
|
)
|
||||||
|
|
||||||
|
aux_source_directory(../../third_party/recastnavigation/DetourTileCache/Source
|
||||||
|
SRC_LIST
|
||||||
|
)
|
||||||
|
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND touch -a ss_proto.pb.h
|
COMMAND touch -a ss_proto.pb.h
|
||||||
COMMAND touch -a ss_proto.pb.cc
|
COMMAND touch -a ss_proto.pb.cc
|
||||||
@ -62,6 +80,8 @@ add_custom_command(TARGET script_pb_protocol
|
|||||||
)
|
)
|
||||||
add_dependencies(masterserver script_pb_protocol)
|
add_dependencies(masterserver script_pb_protocol)
|
||||||
|
|
||||||
|
|
||||||
|
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
masterserver
|
masterserver
|
||||||
pthread
|
pthread
|
||||||
@ -76,4 +96,26 @@ target_link_libraries(
|
|||||||
curl
|
curl
|
||||||
hiredis
|
hiredis
|
||||||
tinyxml2
|
tinyxml2
|
||||||
|
tcmalloc
|
||||||
|
behaviac_gcc_debug
|
||||||
)
|
)
|
||||||
|
else()
|
||||||
|
target_link_libraries(
|
||||||
|
masterserver
|
||||||
|
pthread
|
||||||
|
mysqlclient
|
||||||
|
protobuf
|
||||||
|
rt
|
||||||
|
dl
|
||||||
|
util
|
||||||
|
crypto
|
||||||
|
ssl
|
||||||
|
jsoncpp
|
||||||
|
curl
|
||||||
|
hiredis
|
||||||
|
tinyxml2
|
||||||
|
tcmalloc
|
||||||
|
behaviac_gcc_release
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
2
third_party/a8engine
vendored
2
third_party/a8engine
vendored
@ -1 +1 @@
|
|||||||
Subproject commit ee4ceec3d96375f9ca6ba4816ade7508bd570a92
|
Subproject commit cdb87a3e673aee3401b3e2ffce3ea1a1e6a603b0
|
1
third_party/behaviac
vendored
Submodule
1
third_party/behaviac
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 240414570ee2848291d24ff8d3102dc43d4104a3
|
2
third_party/framework
vendored
2
third_party/framework
vendored
@ -1 +1 @@
|
|||||||
Subproject commit f7c0890bc84974c2770688378696bd8d74cfa7c2
|
Subproject commit eb455bb95f97dc506566c443be0c72960ceebabf
|
1
third_party/recastnavigation
vendored
Submodule
1
third_party/recastnavigation
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 35ca2eadc32161cd6ab479d1a2626759a73bb5a3
|
Loading…
x
Reference in New Issue
Block a user