1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- apply plugin: 'com.android.application'
- android {
- compileSdkVersion 28
- buildToolsVersion '28.0.3'
- externalNativeBuild {
- ndkBuild {
- path './src/main/jni/Android.mk'
- }
- }
- defaultConfig {
- applicationId "com.garagegames.torque2d"
- minSdkVersion 19
- targetSdkVersion 28
- sourceSets.main {
- assets.srcDirs = [
- 'src/main/assets',
- 'src/main/game'
- ]
- ndk {
- abiFilters 'x86', 'x86_64', 'armeabi-v7a' , 'arm64-v8a'
- }
- }
- task copyGame(type: Copy, description: 'Copy torque scripts and modules') {
- from('../../../../') {
- include '**'
- exclude 'engine/**'
- exclude 'tools/**'
- exclude 'tutorials/**'
- exclude '.**'
- exclude '*.dll'
- exclude 'preferences.cs'
- exclude '*.md'
- exclude '*.app'
- exclude '*.bat'
- exclude '*.log'
- exclude '*.torsion'
- }
- into 'src/main/game'
- includeEmptyDirs = false
- }
- task wipeGame(type: Delete, description: 'Wipe android-specific copy of torque scripts and modules') {
- delete 'src/main/game/'
- }
- clean.dependsOn 'wipeGame'
- tasks.withType(JavaCompile) {
- compileTask -> compileTask.dependsOn copyGame
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- }
- }
- productFlavors {
- }
- }
- dependencies {
- }
|