-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put back lua building directly into premake project
No longer rely on prebuilt binaries on windows and android, and remove no longer needed "lua-path" option from the premake project
- Loading branch information
Showing
10 changed files
with
68 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,7 @@ tmp/ | |
.vs/ | ||
.DS_Store | ||
lua* | ||
!lua*/ | ||
lua*/* | ||
!lua*/Android.mk | ||
!lua*/premake5.lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
APP_ABI := armeabi-v7a arm64-v8a x86 | ||
APP_PLATFORM := android-16 | ||
APP_ALLOW_MISSING_DEPS=true | ||
APP_STL := c++_static | ||
APP_CPPFLAGS := -std=c++1z | ||
APP_OPTIM := release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
include $(CLEAR_VARS) | ||
|
||
LOCAL_MODULE := lua | ||
EXCLUDED_LUA_FILES=$(LOCAL_PATH)/src/lua.c $(LOCAL_PATH)/src/luac.c | ||
FILE_LIST := $(wildcard $(LOCAL_PATH)/src/*.c) | ||
LOCAL_SRC_FILES := $(filter-out $(EXCLUDED_LUA_FILES), $(FILE_LIST)) | ||
|
||
LOCAL_CPPFLAGS := -fexceptions -fno-rtti -D"lua_getlocaledecpoint()='.'" -Wno-deprecated | ||
LOCAL_EXPORT_CFLAGS := -D"lua_getlocaledecpoint()='.'" | ||
LOCAL_CPP_EXTENSION := .c | ||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/src | ||
LOCAL_THIN_ARCHIVE := true | ||
|
||
include $(BUILD_STATIC_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
project "lua" | ||
kind "StaticLib" | ||
pic "On" | ||
files { "src/*.c", "src/*.h" } | ||
excludes { "src/lua.c", "src/luac.c" } | ||
|
||
filter { "files:**.c" } | ||
compileas "C++" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters