Skip to content

cmake build for LuaJIT, macOS, Linux, Windows, MingW, iOS, Android

License

Notifications You must be signed in to change notification settings

zhaozg/luajit-cmake

Repository files navigation

luajit-cmake

A flexible cmake builder for LuaJIT. Forked from WohlSoft/LuaJIT and update.

Build

make

Use a GNU compatible make.

make -DLUAJIT_DIR=... or mingw32-make -DLUAJIT_DIR=... or gnumake -DLUAJIT_DIR=....

Note: When use mingw32-make, please change \\ to / in file path on Windows.

cmake

Use cmake to compile.

cmake -H. -Bbuild -DLUAJIT_DIR=...
make --build build --config Release

Embed

add_subdirectory(luajit-cmake)
target_link_libraries(yourTarget PRIVATE luajit::lib luajit::header)

Look samples at lua-forge

CrossCompile

iOS

make iOS

Android

make Android

Windows

make Windows

Note

Note: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS). So I use mingw-w64 and wine to build and run 32 bits minilua and buildvm.

About

cmake build for LuaJIT, macOS, Linux, Windows, MingW, iOS, Android

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published