-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCOMPILE.android
41 lines (36 loc) · 1021 Bytes
/
COMPILE.android
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
COMPILING for Android using Android Studio 1.4 Preview 3
put src files and Android/Lua_Editor.c to a new jni folder
put Android/Java files under java folder
replace the manifest by the Android/Manifesft
copy all files under Assets/ to the folder assets/
replace the Module:app build.gradle with :
apply plugin: 'com.android.model.application'
model {
android {
compileSdkVersion = 19
buildToolsVersion = "23.0.0"
defaultConfig.with {
applicationId = "begah.editor.lua"
minSdkVersion.apiLevel = 10
targetSdkVersion.apiLevel = 19
}
}
/*
* native build settings
*/
android.ndk {
CFlags += "-std=c99"
moduleName = "Lua_Editor"
ldLibs += "GLESv2"
ldLibs += "log"
ldLibs += "android"
ldLibs += "dl"
ldLibs += "z"
}
android.buildTypes {
release {
minifyEnabled = false
proguardFiles += file('proguard-rules.txt')
}
}
}