mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-18 20:55:09 +00:00
41 lines
893 B
Groovy
41 lines
893 B
Groovy
|
apply plugin: 'com.android.application'
|
||
|
|
||
|
android {
|
||
|
compileSdkVersion 21
|
||
|
buildToolsVersion "21.1.2"
|
||
|
|
||
|
|
||
|
sourceSets.main {
|
||
|
jni.srcDirs = []
|
||
|
jniLibs.srcDir 'src/main/libs'
|
||
|
}
|
||
|
|
||
|
defaultConfig {
|
||
|
applicationId "com.example.untitled"
|
||
|
minSdkVersion 11
|
||
|
targetSdkVersion 11
|
||
|
|
||
|
ndk {
|
||
|
//moduleName "native-activity"
|
||
|
stl "stlport_static"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
buildTypes {
|
||
|
release {
|
||
|
minifyEnabled false
|
||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// call regular ndk-build(.cmd) script from app directory
|
||
|
task ndkBuild(type: Exec) {
|
||
|
commandLine '$QB64_NDK_BUILD_CMD_FILE$','-C', file('src/main').absolutePath
|
||
|
}
|
||
|
|
||
|
tasks.withType(JavaCompile) {
|
||
|
compileTask -> compileTask.dependsOn ndkBuild
|
||
|
}
|
||
|
|
||
|
}
|