Skip to content
This repository was archived by the owner on Sep 12, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions wolf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ option(WOLF_SYSTEM_LOG "Enable log" ON)
option(WOLF_SYSTEM_LZ4 "Enable lz4 for compression" ON)
option(WOLF_SYSTEM_LZMA "Enable lzma for compression" ON)
#option(WOLF_SYSTEM_LUA "Enable lua scripting language" OFF)
option(WOLF_SYSTEM_PYTHON "Enable python scripting language" OFF)
option(WOLF_SYSTEM_MIMALLOC "Enable Microsoft's mimalloc memory allocator" ON)
option(WOLF_SYSTEM_POSTGRESQL "Enable postgresql database client" OFF)
option(WOLF_SYSTEM_PYTHON "Enable embedded Python3 scripting" OFF)
Expand Down Expand Up @@ -305,6 +306,7 @@ source_group("system/gamepad" FILES ${WOLF_SYSTEM_GAMEPAD_CLIENT_SRC} ${WOLF_SYS
source_group("system/log" FILES ${WOLF_SYSTEM_LOG_SRC})
source_group("system/compression" FILES ${WOLF_SYSTEM_LZ4_SRCS} ${WOLF_SYSTEM_LZMA_SRCS})
source_group("system/script" FILES ${WOLF_SYSTEM_LUA_SRC})
source_group("system/script" FILES ${WOLF_SYSTEM_PYTHON_SRC})
source_group("system/socket" FILES ${WOLF_SYSTEM_SOCKET_SRC} ${WOLF_SYSTEM_HTTP_WS_SRC})
source_group("system/test" FILES ${WOLF_SYSTEM_TEST_SRC})
source_group("system" FILES ${WOLF_SYSTEM_SRC})
Expand Down
10 changes: 10 additions & 0 deletions wolf/cmake/system.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,16 @@ endif()
# ${WOLF_SYSTEM_LUA_SRC}
#)
#endif()
if (WOLF_SYSTEM_PYTHON)
file(GLOB_RECURSE WOLF_SYSTEM_PYTHON_SRC
"${CMAKE_CURRENT_SOURCE_DIR}/system/script/w_python.hpp"
"${CMAKE_CURRENT_SOURCE_DIR}/system/script/w_python.cpp"
)

list(APPEND SRCS
${WOLF_SYSTEM_PYTHON_SRC}
)
endif()

if (EMSCRIPTEN)
file (GLOB_RECURSE WOLF_SYSTEM_SRC
Expand Down
1 change: 1 addition & 0 deletions wolf/system/script/w_python.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "w_python.hpp"
Loading