Re: [PATCH] lib/libluajit-ios.a universal binary build script

  • From: Adam Strzelecki <ono@xxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 30 Oct 2012 15:50:01 +0100

Mike,

Few remarks about this patch: First of all it replaces the one at 
http://luajit.org/install.html which has several flaws:
(1) It does refer to /Applications/Xcode45-DP4.app which isn't default 
location, /Applications/Xcode.app is.
(2) It refers to "gcc" which is depreciated and not used by Xcode, "clang" 
(aliased by "cc") is. "gcc" in Xcode tools is just frontend wrapper around LLVM.
(3) It builds only "armv7", no Simulator, no "armv7s" which is also default 
target in latest iOS6 SDK.
(4) Requires Command Line Tools installed within Xcode, which is not default.

FYI if you want to put my script in http://luajit.org/install.html, please:
(1) remove #!/bin/bash
(2) remove cd $(dirname "$0")/.. && which is added to ensure PWD when calling 
make will be above script location, which is lib/

You may consider placing this as proposed in lib/build-ios. This will let Xcode 
developers not need to use command line to get LuaJIT integrated into their 
project.

You can consider adding iOS instructions:
(1) ensure lib/libluajit-ios.a exists running lib/build-ios
(2) drag lib/libluajit-ios.a into you Xcode project
(3) drag src/lua*.h src/lauxlib.h into your Xcode project

Btw. I think src/lua*.h src/lauxlib.h files could be moved for convenience to 
include/ as these are external headers, exposed via "make install", this would 
make (3) easier, just dragging include/ into the project.

Regards,
-- 
Adam Strzelecki | nanoant.com | twitter.com/nanoant


Other related posts:

  • » Re: [PATCH] lib/libluajit-ios.a universal binary build script - Adam Strzelecki