Explorar o código

添加linux默认引用lua5.3库

nianhua %!s(int64=2) %!d(string=hai) anos
pai
achega
a9540c0ad4
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      src/core/modulemanager.cpp

+ 7 - 0
src/core/modulemanager.cpp

@@ -116,6 +116,13 @@ void fastweb::module_manager::start()
 #define DLL_EXT "dll"
 #else
 #define DLL_EXT "so"
+#endif
+#ifndef _WIN32
+		// Linux
+		{
+			m_lua_include_path += ";/usr/local/lib/lua/5.3/?.lua";
+			m_lua_include_cpath += ";/usr/local/share/lua/5.3/?.lua";
+		}
 #endif
 		// 用户
 		{