1 Star 0 Fork 0

KeyGen/luajit-cmake

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
zhaozg 提交于 2019-07-21 15:01 . Update
ifeq ($(MAKE),mingw32-make)
CMAKE_OPTIONS += -G"MinGW Makefiles"
endif
ifeq (${LUAJIT_DIR}, )
LUAJIT_DIR = $(shell pwd)/../LuaJIT
endif
CMAKE_OPTIONS += -DLUAJIT_DIR=${LUAJIT_DIR}
IOS_ARCH ?= armv7
.PHONY : all build install clean
# Basic
all: build
cmake --build build --config Release
install: all
cmake --install build
build:
cmake -H. -Bbuild ${CMAKE_OPTIONS}
clean:
@cmake -E remove_directory build
lua:
cmake -H. -Bbuild -DLUA_DIR=$(shell pwd)/../lua
cmake --build build --config Release
# Advance
iOS:
cmake -H. -Bbuild ${CMAKE_OPTIONS} \
-DCMAKE_TOOLCHAIN_FILE=$(shell pwd)/Utils/ios.toolchain.cmake \
-DIOS_PLATFORM=OS -DIOS_ARCH=$(IOS_ARCH) -DLUAJIT_DISABLE_JIT=1 \
-DASM_FLAGS="-arch ${IOS_ARCH} -isysroot ${shell xcrun --sdk iphoneos --show-sdk-path}"
cmake --build build --config Release
Android:
cmake -H. -Bbuild ${CMAKE_OPTIONS} \
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake
cmake --build build --config Release
Windows:
cmake -H. -Bbuild ${CMAKE_OPTIONS} \
-DCMAKE_TOOLCHAIN_FILE=${shell pwd}/Utils/windows.toolchain.cmake
cmake --build build --config Release
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/songxp03/luajit-cmake.git
git@gitee.com:songxp03/luajit-cmake.git
songxp03
luajit-cmake
luajit-cmake
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385