Latest 0.1.1
Homepage http://luajit.org/
License MIT
Platforms ios 8.0
Authors

Latest podspec

{
    "name": "LuaJIT",
    "version": "0.1.1",
    "summary": "LuaJIT",
    "homepage": "http://luajit.org/",
    "license": {
        "type": "MIT",
        "file": "COPYRIGHT"
    },
    "authors": {
        "xuhui": "[email protected]"
    },
    "source": {
        "http": "http://luajit.org/download/LuaJIT-2.1.0-beta2.tar.gz"
    },
    "source_files": "include/*.h",
    "platforms": {
        "ios": "8.0"
    },
    "ios": {
        "public_header_files": "include/*.h",
        "vendored_libraries": "lib/libluajit.a"
    },
    "requires_arc": false,
    "prepare_command": "ICC=$(xcrun --find clang)nSDK_VERSION=$(xcrun --sdk iphoneos --show-sdk-version 2> /dev/null)nARCHS="i386 x86_64 armv7 armv7s arm64"n  tDEVELOPER=$(xcode-select -print-path)n  tMIN_SDK_VERSION_FLAG="-miphoneos-version-min=8.0"nnBASE_PATH="${PWD}"nCURRENT_PATH="/tmp/luajit"nnmkdir -p ${CURRENT_PATH}/includenn  tcp file.tgz ${CURRENT_PATH}/file.tgzn  tcd ${CURRENT_PATH}n  ttar -xzf file.tgzn  tcd LuaJIT-2.1.0-beta2nn  techo "base path ${BASE_PATH}"nn  tsed -i .bak "s/BUILDMODE= mixed/BUILDMODE= static/g" ./src/Makefilenn  tcp -v ./src/lua.h ${CURRENT_PATH}/includencp -v ./src/lauxlib.h ${CURRENT_PATH}/includencp -v ./src/lualib.h ${CURRENT_PATH}/includencp -v ./src/luajit.h ${CURRENT_PATH}/includencp -v ./src/lua.hpp ${CURRENT_PATH}/includencp -v ./src/luaconf.h ${CURRENT_PATH}/includennecho "Build library..."nrm -rf "${BASE_PATH}/lib/"nmkdir -p "${BASE_PATH}/lib/"nmkdir -p "${BASE_PATH}/lib/jit"ncp -vRL "./src/jit/" "${BASE_PATH}/lib/jit/"nnfor TARGET_ARCH in ${ARCHS}ndontMARCH="-m32"ntHOST_ARCH="i386"ntCOMPILE_FLAGS="-DLUAJIT_ENABLE_LUA52COMPAT"ntif [ "${TARGET_ARCH}" == "i386" ] || [ "${TARGET_ARCH}" == "x86_64" ]n     tthenn       tPLATFORM="iPhoneSimulator"n       tMIN_SDK_VERSION_FLAG="-mios-simulator-version-min=8.0"n       tCOMPILE_FLAGS="$COMPILE_FLAGS -fembed-bitcode-marker"n       tif [ "${TARGET_ARCH}" == "x86_64" ]n       tthenn       ttMARCH="-m64"n       ttHOST_ARCH="x86_64"n       ttCOMPILE_FLAGS="$COMPILE_FLAGS"n       tfin     telsen       tPLATFORM="iPhoneOS"n       tCOMPILE_FLAGS="$COMPILE_FLAGS -fembed-bitcode"n       tif [ "${TARGET_ARCH}" == "arm64" ]n       tthenn       ttMARCH="-m64"n       ttHOST_ARCH="x86_64"n       ttCOMPILE_FLAGS="$COMPILE_FLAGS -DLUAJIT_ENABLE_GC64"n       tfin     tfin     tISDKP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer/SDKs/${PLATFORM}${SDK_VERSION}.sdk"n     tISDKF="-arch ${TARGET_ARCH} -isysroot $ISDKP $MIN_SDK_VERSION_FLAG $COMPILE_FLAGS"n     tmake clean 2> /dev/null n     techo =================================================n     techo "build ${TARGET_ARCH} Architecture"n     tmake HOST_CC="clang ${MARCH} -arch ${HOST_ARCH}" CROSS="$(dirname $ICC)/" TARGET_FLAGS="$ISDKF" TARGET_SYS=iOSn     tmv -v ./src/libluajit.a ${BASE_PATH}/lib/libluajit${TARGET_ARCH}.an     tJIT_LIBS="${JIT_LIBS} ${BASE_PATH}/lib/libluajit${TARGET_ARCH}.a"ndone  n  nlipo -create ${JIT_LIBS} -output ${BASE_PATH}/lib/libluajit.a  2> /dev/nullnnecho "Copying headers..."nrm -rf "${BASE_PATH}/include/"nmkdir -p "${BASE_PATH}/include/"ncp -vRL "${CURRENT_PATH}/include/" "${BASE_PATH}/include/"nncd "${BASE_PATH}"nnecho "base path ${BASE_PATH}"nnecho "Cleaning up..."n  trm -rf "${CURRENT_PATH}"necho "Done""
}

Pin It on Pinterest

Share This