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 29, 2023
1 parent 114481d commit 10fd713
Show file tree
Hide file tree
Showing 78 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ 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
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 10fd713

Please sign in to comment.