mirror of https://github.com/OpenMW/openmw.git
Add Lua/LuaJit and sol3 to openmw
parent
c94339f248
commit
9e168fd9cc
@ -1,4 +1,4 @@
|
||||
#!/bin/sh -ex
|
||||
|
||||
curl -fSL -R -J https://gitlab.com/OpenMW/openmw-deps/-/raw/main/android/openmw-android-deps-20201129.zip -o ~/openmw-android-deps.zip
|
||||
curl -fSL -R -J https://gitlab.com/OpenMW/openmw-deps/-/raw/main/android/openmw-android-deps-20201230.zip -o ~/openmw-android-deps.zip
|
||||
unzip -o ~/openmw-android-deps -d /usr/lib/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr > /dev/null
|
||||
|
@ -0,0 +1,14 @@
|
||||
# Once found, defines:
|
||||
# LuaJit_FOUND
|
||||
# LuaJit_INCLUDE_DIR
|
||||
# LuaJit_LIBRARIES
|
||||
|
||||
include(LibFindMacros)
|
||||
|
||||
libfind_pkg_detect(LuaJit luajit
|
||||
FIND_PATH luajit.h PATH_SUFFIXES luajit luajit-2.1
|
||||
FIND_LIBRARY luajit-5.1 luajit
|
||||
)
|
||||
|
||||
libfind_process(LuaJit)
|
||||
|
@ -0,0 +1,15 @@
|
||||
#ifndef SOL_SINGLE_CONFIG_HPP
|
||||
#define SOL_SINGLE_CONFIG_HPP
|
||||
|
||||
#define SOL_SAFE_USERTYPE 1
|
||||
#define SOL_SAFE_REFERENCES 1
|
||||
#define SOL_SAFE_FUNCTION_CALLS 1
|
||||
#define SOL_SAFE_FUNCTION 1
|
||||
#define SOL_NO_NIL 0
|
||||
|
||||
#ifndef NO_LUAJIT
|
||||
#define SOL_LUAJIT 1
|
||||
#define SOL_EXCEPTIONS_SAFE_PROPAGATION 0
|
||||
#endif
|
||||
|
||||
#endif // SOL_SINGLE_CONFIG_HPP
|
Loading…
Reference in New Issue