Skip to content

Commit

Permalink
[MOD] Remove optional folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
paintdream committed May 30, 2023
1 parent 114481d commit 826ff63
Show file tree
Hide file tree
Showing 78 changed files with 17 additions and 17 deletions.
30 changes: 15 additions & 15 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PROJECT (iris_demo)

SET (STDLIB stdc++)

ENABLE_TESTING()
ENABLE_TESTING ()

OPTION (ENABLE_COROUTINE "Enable Iris Coroutine support" ON)
OPTION (ENABLE_LUA "Enable Lua Binding support" ON)
Expand Down Expand Up @@ -38,7 +38,7 @@ ADD_EXECUTABLE (iris_dispatcher_demo ${IRIS_DISPATCHER_DEMO_SRC})
ADD_TEST (test_dispatcher iris_dispatcher_demo)

IF (NOT MSVC)
TARGET_LINK_LIBRARIES(iris_dispatcher_demo m ${STDLIB} pthread)
TARGET_LINK_LIBRARIES (iris_dispatcher_demo m ${STDLIB} pthread)
ENDIF (NOT MSVC)

FILE (GLOB_RECURSE IRIS_SYSTEM_DEMO_SRC
Expand All @@ -52,7 +52,7 @@ ADD_EXECUTABLE (iris_system_demo ${IRIS_SYSTEM_DEMO_SRC})
ADD_TEST (test_system iris_system_demo)

IF (NOT MSVC)
TARGET_LINK_LIBRARIES(iris_system_demo m ${STDLIB} pthread)
TARGET_LINK_LIBRARIES (iris_system_demo m ${STDLIB} pthread)
ENDIF (NOT MSVC)

FILE (GLOB_RECURSE IRIS_TREE_DEMO_SRC
Expand All @@ -66,7 +66,7 @@ ADD_EXECUTABLE (iris_tree_demo ${IRIS_TREE_DEMO_SRC})
ADD_TEST (test_tree iris_tree_demo)

IF (NOT MSVC)
TARGET_LINK_LIBRARIES(iris_tree_demo m ${STDLIB} pthread)
TARGET_LINK_LIBRARIES (iris_tree_demo m ${STDLIB} pthread)
ENDIF (NOT MSVC)

FILE (GLOB_RECURSE IRIS_BUFFER_DEMO_SRC
Expand All @@ -80,7 +80,7 @@ ADD_EXECUTABLE (iris_buffer_demo ${IRIS_BUFFER_DEMO_SRC})
ADD_TEST (test_buffer iris_buffer_demo)

IF (NOT MSVC)
TARGET_LINK_LIBRARIES(iris_buffer_demo m ${STDLIB} pthread)
TARGET_LINK_LIBRARIES (iris_buffer_demo m ${STDLIB} pthread)
ENDIF (NOT MSVC)

IF (ENABLE_COROUTINE)
Expand All @@ -96,7 +96,7 @@ IF (ENABLE_COROUTINE)
ADD_TEST (test_coroutine iris_coroutine_demo)

IF (NOT MSVC)
TARGET_LINK_LIBRARIES(iris_coroutine_demo m ${STDLIB} pthread)
TARGET_LINK_LIBRARIES (iris_coroutine_demo m ${STDLIB} pthread)
ENDIF (NOT MSVC)

FILE (GLOB_RECURSE IRIS_ENGINE_DEMO_SRC
Expand All @@ -111,13 +111,13 @@ IF (ENABLE_COROUTINE)
ADD_TEST (test_engine iris_engine_demo)

IF (NOT MSVC)
TARGET_LINK_LIBRARIES(iris_engine_demo m ${STDLIB} pthread)
TARGET_LINK_LIBRARIES (iris_engine_demo m ${STDLIB} pthread)
ENDIF (NOT MSVC)
ENDIF (ENABLE_COROUTINE)

IF (ENABLE_LUA)
FILE (GLOB_RECURSE IRIS_LUA_DEMO_SRC
"${PROJECT_SOURCE_DIR}/src/optional/iris_lua.h"
"${PROJECT_SOURCE_DIR}/src/iris_lua.h"
"${PROJECT_SOURCE_DIR}/test/iris_lua_demo.cpp"
)

Expand All @@ -131,13 +131,13 @@ IF (ENABLE_LUA)
MESSAGE (STATUS "Use built-in lua version.")
# default to lua 5.4
FILE (GLOB_RECURSE IRIS_LUA_CORE_SRC
"${PROJECT_SOURCE_DIR}/src/optional/lua/src/*.h"
"${PROJECT_SOURCE_DIR}/src/optional/lua/src/*.hpp"
"${PROJECT_SOURCE_DIR}/src/optional/lua/src/*.c"
"${PROJECT_SOURCE_DIR}/src/lua/src/*.h"
"${PROJECT_SOURCE_DIR}/src/lua/src/*.hpp"
"${PROJECT_SOURCE_DIR}/src/lua/src/*.c"
)

LIST (REMOVE_ITEM IRIS_LUA_CORE_SRC "${PROJECT_SOURCE_DIR}/src/optional/lua/src/lua.c")
LIST (REMOVE_ITEM IRIS_LUA_CORE_SRC "${PROJECT_SOURCE_DIR}/src/optional/lua/src/luac.c")
LIST (REMOVE_ITEM IRIS_LUA_CORE_SRC "${PROJECT_SOURCE_DIR}/src/lua/src/lua.c")
LIST (REMOVE_ITEM IRIS_LUA_CORE_SRC "${PROJECT_SOURCE_DIR}/src/lua/src/luac.c")
SET (LUALIB)
ELSE (ENABLE_LUA_BUILTIN)
IF (${USE_LUA_VERSION} STREQUAL "LuaJIT")
Expand Down Expand Up @@ -173,8 +173,8 @@ IF (ENABLE_LUA)
ADD_TEST (test_lua iris_lua_demo)

IF (MSVC)
TARGET_LINK_LIBRARIES(iris_lua_demo ${LUALIB})
TARGET_LINK_LIBRARIES (iris_lua_demo ${LUALIB})
ELSE (MSVC)
TARGET_LINK_LIBRARIES(iris_lua_demo m ${STDLIB} ${LUALIB})
TARGET_LINK_LIBRARIES (iris_lua_demo m ${STDLIB} ${LUALIB})
ENDIF (MSVC)
ENDIF (ENABLE_LUA)
2 changes: 1 addition & 1 deletion src/optional/iris_lua.h → src/iris_lua.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ SOFTWARE.

#pragma once

#include "../iris_common.h"
#include "iris_common.h"
#include <array>

extern "C" {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/iris_lua_demo.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "../src/optional/iris_lua.h"
#include "../src/iris_lua.h"
#include "../src/iris_common.inl"
#include <map>
#include <cstdio>
Expand Down

0 comments on commit 826ff63

Please sign in to comment.