forked from ketoo/NoahGameFrame
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/ketoo/NoahGameFrame into…
… develop
- Loading branch information
Showing
54 changed files
with
558 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
add_subdirectory(Theron) | ||
add_subdirectory(protobuf) | ||
add_subdirectory(redis-cplusplus-client/msvc/anet_win32) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
IF( WIN32 ) | ||
message("win32_theron") | ||
include_directories(Include) | ||
file(GLOB TEMP_SRC Theron/*.cpp) | ||
add_library(Theron ${TEMP_SRC}) | ||
set_target_properties( Theron PROPERTIES OUTPUT_NAME_DEBUG "Theron_d") | ||
set_target_properties( Theron PROPERTIES PREFIX "") | ||
set_target_properties( Theron PROPERTIES | ||
FOLDER "NFDeps" | ||
ARCHIVE_OUTPUT_DIRECTORY ${NFOutPutDir} | ||
RUNTIME_OUTPUT_DIRECTORY ${NFOutPutDir} | ||
LIBRARY_OUTPUT_DIRECTORY ${NFOutPutDir} ) | ||
add_definitions(-DTHERON_USE_STD_THREADS -D_X64) | ||
ELSE() | ||
message("not win32") | ||
ENDIF() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
Dependencies/redis-cplusplus-client/msvc/anet_win32/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
IF( WIN32 ) | ||
message("win32_anet_win64") | ||
aux_source_directory(. DIR_SRCS) | ||
|
||
add_library(anet_win64 anet_win32.c) | ||
set_target_properties( anet_win64 PROPERTIES OUTPUT_NAME_DEBUG "anet_win64_d") | ||
set_target_properties( anet_win64 PROPERTIES PREFIX "") | ||
set_target_properties( anet_win64 PROPERTIES | ||
FOLDER "NFDeps" | ||
ARCHIVE_OUTPUT_DIRECTORY ${NFOutPutDir} | ||
RUNTIME_OUTPUT_DIRECTORY ${NFOutPutDir} | ||
LIBRARY_OUTPUT_DIRECTORY ${NFOutPutDir} ) | ||
ELSE() | ||
message("not win32") | ||
ENDIF() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
|
||
add_subdirectory(NFCore) | ||
|
||
add_subdirectory(NFActorPlugin) | ||
add_subdirectory(NFConfigPlugin) | ||
|
||
add_subdirectory(NFPluginLoader) | ||
|
||
add_subdirectory(NFCore) | ||
add_subdirectory(NFKernelPlugin) | ||
|
||
add_subdirectory(NFLogPlugin) | ||
|
||
add_subdirectory(NFMessageDefine) | ||
|
||
add_subdirectory(NFNet) | ||
add_subdirectory(NFNet) | ||
add_subdirectory(NFNoSqlPlugin) | ||
add_subdirectory(NFPluginLoader) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
set(ProjectName "NFActorPlugin") | ||
file(GLOB NFActorPlugin_ROOT_Cpp *.cpp) | ||
file(GLOB NFActorPlugin_ROOT_CC *.cc) | ||
file(GLOB NFActorPlugin_ROOT_Hpp *.h) | ||
|
||
add_library(NFActorPlugin SHARED | ||
${NFActorPlugin_ROOT_Cpp} | ||
${NFActorPlugin_ROOT_CC} | ||
${NFActorPlugin_ROOT_Hpp}) | ||
|
||
if(UNIX) | ||
if (CMAKE_BUILD_TYPE MATCHES "Release") | ||
target_link_libraries(NFActorPlugin libtheron.a) | ||
else() | ||
target_link_libraries(NFActorPlugin libtherond.a) | ||
endif() | ||
add_definitions( | ||
-D_USRDLL | ||
-D_LIB | ||
-DPROTOBUF_USE_DLLS | ||
-DNFDATABASEPLUGIN_EXPORTS | ||
-DWIN32_LEAN_AND_MEAN | ||
) | ||
else() | ||
add_dependencies(NFActorPlugin libprotobuf NFMessageDefine) | ||
target_link_libraries(NFActorPlugin anet_win64 libprotobuf Theron NFMessageDefine) | ||
add_definitions( | ||
-D_USRDLL | ||
-D_LIB | ||
-DPROTOBUF_USE_DLLS | ||
-DNFDATABASEPLUGIN_EXPORTS | ||
-DWIN32_LEAN_AND_MEAN | ||
) | ||
endif() | ||
set_target_properties( NFActorPlugin PROPERTIES OUTPUT_NAME_DEBUG "NFActorPlugin_d") | ||
set_target_properties( NFActorPlugin PROPERTIES PREFIX "") | ||
set_target_properties( NFActorPlugin PROPERTIES | ||
FOLDER "NFSDK" | ||
ARCHIVE_OUTPUT_DIRECTORY ${NFOutPutDir} | ||
RUNTIME_OUTPUT_DIRECTORY ${NFOutPutDir} | ||
LIBRARY_OUTPUT_DIRECTORY ${NFOutPutDir} ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
set(ProjectName "NFNoSqlPlugin") | ||
file(GLOB NFNoSqlPlugin_ROOT_Cpp *.cpp) | ||
file(GLOB NFNoSqlPlugin_ROOT_CC *.cc) | ||
file(GLOB NFNoSqlPlugin_ROOT_Hpp *.h) | ||
|
||
if(UNIX) | ||
add_library(NFNoSqlPlugin SHARED | ||
${NFNoSqlPlugin_ROOT_Cpp} | ||
${NFNoSqlPlugin_ROOT_CC} | ||
${NFNoSqlPlugin_ROOT_Hpp} | ||
${SolutionDir}/Dependencies/redis-cplusplus-client/anet.c | ||
${SolutionDir}/Dependencies/redis-cplusplus-client/anet.h) | ||
target_include_directories(NFNoSqlPlugin PUBLIC | ||
${SolutionDir}/Dependencies/redis-cplusplus-client/) | ||
if (CMAKE_BUILD_TYPE MATCHES "Release") | ||
target_link_libraries(NFNoSqlPlugin libtheron.a) | ||
else() | ||
target_link_libraries(NFNoSqlPlugin libtherond.a) | ||
endif() | ||
add_definitions( | ||
-D_USRDLL | ||
-DTHERON_CPP11 | ||
) | ||
else() | ||
add_library(NFNoSqlPlugin SHARED | ||
${NFNoSqlPlugin_ROOT_Cpp} | ||
${NFNoSqlPlugin_ROOT_CC} | ||
${NFNoSqlPlugin_ROOT_Hpp}) | ||
target_include_directories(NFNoSqlPlugin PUBLIC | ||
${SolutionDir}/Dependencies/redis-cplusplus-client/msvc/anet_win32/) | ||
add_dependencies(NFNoSqlPlugin libprotobuf NFMessageDefine) | ||
target_link_libraries(NFNoSqlPlugin anet_win64 libprotobuf Theron NFMessageDefine) | ||
add_definitions( | ||
-D_USRDLL | ||
-DTHERON_CPP11 | ||
) | ||
endif() | ||
set_target_properties( NFNoSqlPlugin PROPERTIES OUTPUT_NAME_DEBUG "NFNoSqlPlugin_d") | ||
set_target_properties( NFNoSqlPlugin PROPERTIES PREFIX "") | ||
set_target_properties( NFNoSqlPlugin PROPERTIES | ||
FOLDER "NFSDK" | ||
ARCHIVE_OUTPUT_DIRECTORY ${NFOutPutDir} | ||
RUNTIME_OUTPUT_DIRECTORY ${NFOutPutDir} | ||
LIBRARY_OUTPUT_DIRECTORY ${NFOutPutDir} ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
set(ProjectName "NFDataAgent_NosqlPlugin") | ||
file(GLOB NFDataAgent_NosqlPlugin_ROOT_Cpp | ||
*.cpp) | ||
|
||
file(GLOB NFDataAgent_NosqlPlugin_ROOT_Hpp | ||
*.h) | ||
|
||
add_library(NFDataAgent_NosqlPlugin SHARED | ||
${NFDataAgent_NosqlPlugin_ROOT_Cpp} | ||
${NFDataAgent_NosqlPlugin_ROOT_Hpp}) | ||
|
||
set_target_properties( NFDataAgent_NosqlPlugin PROPERTIES OUTPUT_NAME_DEBUG "NFDataAgent_NosqlPlugin_d") | ||
set_target_properties( NFDataAgent_NosqlPlugin PROPERTIES PREFIX "") | ||
set_target_properties( NFDataAgent_NosqlPlugin PROPERTIES | ||
FOLDER "NFServer/GameServer" | ||
ARCHIVE_OUTPUT_DIRECTORY ${NFOutPutDir} | ||
RUNTIME_OUTPUT_DIRECTORY ${NFOutPutDir} | ||
LIBRARY_OUTPUT_DIRECTORY ${NFOutPutDir} ) | ||
link_NFSDK("NFDataAgent_NosqlPlugin") | ||
|
||
if(UNIX) | ||
add_definitions( | ||
-D_USRDLL | ||
-DELPP_NO_DEFAULT_LOG_FILE | ||
) | ||
else() | ||
add_definitions( | ||
-DWIN | ||
-D_USRDLL | ||
-DELPP_NO_DEFAULT_LOG_FILE | ||
) | ||
endif() |
Oops, something went wrong.