summaryrefslogtreecommitdiff
path: root/src/lua-interface.cpp
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-06-04 20:47:19 +0000
committerPixel <pixel@nobis-crew.org>2009-06-04 20:47:19 +0000
commit0eab74c7716691805d9efc9560e7ada7341744ff (patch)
tree6dc60532505d862a6ca2b52c1500236b5c53f971 /src/lua-interface.cpp
parentd6da338952d110597cba9106c14bee5f2e4627de (diff)
Adding lua-interface-light target for win32.
Diffstat (limited to 'src/lua-interface.cpp')
-rw-r--r--src/lua-interface.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lua-interface.cpp b/src/lua-interface.cpp
index 4b1e949..0fef98a 100644
--- a/src/lua-interface.cpp
+++ b/src/lua-interface.cpp
@@ -84,6 +84,10 @@ extern void luacd_init(Lua * L) WEAK;
#define main dll_main
#endif
+#ifdef LUA_INTERFACE_LIGHT
+#define MODULES_BUILT_IN
+#endif
+
#ifdef _WIN32
#include <windows.h>
@@ -320,12 +324,14 @@ int sLua_baselua_interface::baselua_interface_proceed_statics(Lua * L, int n, in
#if !(defined(NO_SMART_MODULES) || defined(MODULES_BUILT_IN))
} else if ((filename == "luaconfigfiles") && (luaconfigfiles_init != NULL)) {
luaconfigfiles_init(L);
+#ifndef LUA_INTERFACE_LIGHT
#ifndef _MSVC
} else if ((filename == "luaftgl") && (luaftgl_init != NULL)) {
luaftgl_init(L);
} else if ((filename == "luagl") && (luagl_init != NULL)) {
luagl_init(L);
#endif
+#endif
} else if ((filename == "luahandle") && (luahandle_init != NULL)) {
luahandle_init(L);
} else if ((filename == "luahttp") && (luahttp_init != NULL)) {
@@ -334,18 +340,23 @@ int sLua_baselua_interface::baselua_interface_proceed_statics(Lua * L, int n, in
luasmtp_init(L);
} else if ((filename == "lualibs") && (lualibs_init != NULL)) {
lualibs_init(L);
+#ifndef LUA_INTERFACE_LIGHT
#ifndef _MSVC
} else if ((filename == "luaocci") && (luaocci_init != NULL)) {
luaocci_init(L);
#endif
+#endif
} else if ((filename == "luaregex") && (luaregex_init != NULL)) {
luaregex_init(L);
+#ifndef LUA_INTERFACE_LIGHT
} else if ((filename == "luasql") && (luasql_init != NULL)) {
luasql_init(L);
+#endif
} else if ((filename == "luatask") && (luatask_init != NULL)) {
luatask_init(L);
} else if ((filename == "luaxml") && (luaxml_init != NULL)) {
luaxml_init(L);
+#ifndef LUA_INTERFACE_LIGHT
#ifndef _MSVC
} else if ((filename == "luaosmesa") && (luaosmesa_init != NULL)) {
luaosmesa_init(L);
@@ -353,6 +364,7 @@ int sLua_baselua_interface::baselua_interface_proceed_statics(Lua * L, int n, in
} else if ((filename == "luacd") && (luacd_init != NULL)) {
luacd_init(L);
#endif
+#endif
} else {
LuaLoadPlugin(filename, L);
}
@@ -707,12 +719,15 @@ void autoload_exports(Lua * L) {
luasmtp_init(L);
if (luaregex_init)
luaregex_init(L);
+#ifndef LUA_INTERFACE_LIGHT
if (luasql_init)
luasql_init(L);
+#endif
if (luatask_init)
luatask_init(L);
if (luaxml_init)
luaxml_init(L);
+#ifndef LUA_INTERFACE_LIGHT
#ifndef _MSVC
if (luaftgl_init)
luaftgl_init(L);
@@ -726,6 +741,7 @@ void autoload_exports(Lua * L) {
if (luacd_init)
luacd_init(L);
#endif
+#endif
}
virtual int startup() throw (GeneralException) {