-
Notifications
You must be signed in to change notification settings - Fork 630
Luac
I don't blame you, it makes it harder for people to see your precious codes.
** This will overwrite your local version of Lua, if you don't want to do that look into changing the Lua binary name in the makefile. **
-
Download the Lua source from http://www.lua.org/download.html
-
Patch LUA_SOURCE/src/Makefile to make it 32-bit
# Change this line
macosx:
- $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"
+ $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX -arch i386" MYLIBS="-arch i386 -lreadline"
- Make Lua:
make macosx
** This won't work if you are using the wax.framework. It is easy to do, I'd just like someone else to document it. **
-
Open your project in Xcode and click ** Project > Edit Active Target **
-
Click the Build tab.
-
Make sure the Configuration: drop down has All Configurations selected.
-
Select User-Defined Settings in the Show: dropdown.
-
Add a settings named
WAX_COMPILE_SCRIPTS
and set the value to 1. -
Build the app and look at the build results... You should see
Wax is using compiled Lua scripts.
in the log.