initial port for Cevo game in C++ (libs)
This commit is contained in:
commit
8436242032
375 files changed
+46282
No files matched your search
@@ -0,0 +1,45 @@
|
||||
# CevoAI: C++ port of the C-evo AI plugin protocol (AI Template/Protocol.pas
|
||||
# + CustomAI.pas), used to load/host AI "brain" modules (StdAI, Capital AI,
|
||||
# KIAI, SETI, Shah, Crystal, ...) and to write new ones. Deliberately has NO
|
||||
# dependency on Qt (or any other framework): the original protocol is a plain
|
||||
# C ABI (stdcall function pointers + C-aligned structs), and this port keeps
|
||||
# it that way so existing precompiled AI .dll/.so files stay loadable and new
|
||||
# AI modules can be built as plain, portable C++ shared libraries.
|
||||
#
|
||||
# Concrete AI "brain" implementations (StdAI, ...) live in their own
|
||||
# subdirectory below this one (e.g. stdai/), each built as a separate
|
||||
# shared-library plugin on top of this interface - see stdai/CMakeLists.txt.
|
||||
|
||||
set(CEVO_AI_HEADERS
|
||||
include/Cevo/AiModule.h
|
||||
include/Cevo/AiModuleHost.h
|
||||
include/Cevo/CustomAI.h
|
||||
include/Cevo/Geometry.h
|
||||
include/Cevo/Pile.h
|
||||
include/Cevo/Protocol.h
|
||||
include/Cevo/ToolAI.h
|
||||
)
|
||||
|
||||
set(CEVO_AI_SOURCES
|
||||
src/AiModule.cpp
|
||||
src/AiModuleHost.cpp
|
||||
src/CustomAI.cpp
|
||||
src/Geometry.cpp
|
||||
src/Pile.cpp
|
||||
src/Protocol.cpp
|
||||
src/ToolAI.cpp
|
||||
)
|
||||
|
||||
add_library(cevoai STATIC ${CEVO_AI_SOURCES} ${CEVO_AI_HEADERS})
|
||||
|
||||
target_include_directories(cevoai PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
target_link_libraries(cevoai PUBLIC ${CMAKE_DL_LIBS})
|
||||
|
||||
set_target_properties(cevoai PROPERTIES
|
||||
CXX_STANDARD 17
|
||||
CXX_STANDARD_REQUIRED ON
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
)
|
||||
Reference in new issue
Block a user