You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Tools/Android/ProjectBuilder/build.gradle.in

79 lines
1.7 KiB
Groovy

//
// Copyright (c) Contributors to the Open 3D Engine Project.
// For complete copyright and license terms please see the LICENSE at the root of this distribution.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//
apply plugin: "com.android.${TARGET_TYPE}"
android {
${SIGNING_CONFIGS}
compileSdkVersion sdkVer
buildToolsVersion buildToolsVer
ndkVersion ndkPlatformVer
lintOptions {
abortOnError false
checkReleaseBuilds false
}
defaultConfig {
minSdkVersion minSdkVer
targetSdkVersion sdkVer
${NATIVE_CMAKE_SECTION_DEFAULT_CONFIG}
}
buildTypes {
debug {
debuggable true
${NATIVE_CMAKE_SECTION_DEBUG_CONFIG}
${SIGNING_DEBUG_CONFIG}
}
profile {
debuggable true
${NATIVE_CMAKE_SECTION_PROFILE_CONFIG}
${SIGNING_PROFILE_CONFIG}
}
release {
debuggable false
minifyEnabled false
${NATIVE_CMAKE_SECTION_RELEASE_CONFIG}
${SIGNING_RELEASE_CONFIG}
}
}
compileOptions {
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility JavaVersion.VERSION_1_7
}
${NATIVE_CMAKE_SECTION_ANDROID}
sourceSets {
main {
${OVERRIDE_JAVA_SOURCESET}
jniLibs {
srcDirs = ["src/main/jniLibs"${OPTIONAL_JNI_SRC_LIB_SET}]
}
}
}
packagingOptions {
pickFirst '**/*.so'
}
}
${PROJECT_DEPENDENCIES}
afterEvaluate {
${CUSTOM_APPLY_ASSET_LAYOUT_DEBUG_TASK}
${CUSTOM_APPLY_ASSET_LAYOUT_PROFILE_TASK}
${CUSTOM_APPLY_ASSET_LAYOUT_RELEASE_TASK}
${CUSTOM_GRADLE_COPY_NATIVE_DEBUG_LIB_TASK}
${CUSTOM_GRADLE_COPY_NATIVE_PROFILE_LIB_TASK}
${CUSTOM_GRADLE_COPY_NATIVE_RELEASE_LIB_TASK}
}