simple_mtglife

annotate android/build.gradle @ 6:9e3e14ed98eb

android: keep from sleeping while the app is active
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 16 Feb 2015 05:46:07 +0200
parents
children
rev   line source
nuclear@0 1 buildscript {
nuclear@0 2 repositories {
nuclear@0 3 mavenCentral()
nuclear@0 4 }
nuclear@0 5
nuclear@0 6 dependencies {
nuclear@0 7 classpath 'com.android.tools.build:gradle:0.12.1'
nuclear@0 8 }
nuclear@0 9 }
nuclear@0 10
nuclear@0 11 apply plugin: 'android'
nuclear@0 12
nuclear@0 13 dependencies {
nuclear@0 14 compile fileTree(dir: 'libs', include: ['*.jar'])
nuclear@0 15 }
nuclear@0 16
nuclear@0 17 android {
nuclear@0 18 /*******************************************************
nuclear@0 19 * The following variables:
nuclear@0 20 * - androidBuildToolsVersion,
nuclear@0 21 * - androidCompileSdkVersion
nuclear@0 22 * - qt5AndroidDir - holds the path to qt android files
nuclear@0 23 * needed to build any Qt application
nuclear@0 24 * on Android.
nuclear@0 25 *
nuclear@0 26 * are defined in gradle.properties file. This file is
nuclear@0 27 * updated by QtCreator and androiddeployqt tools.
nuclear@0 28 * Changing them manually might break the compilation!
nuclear@0 29 *******************************************************/
nuclear@0 30
nuclear@0 31 compileSdkVersion androidCompileSdkVersion.toInteger()
nuclear@0 32
nuclear@0 33 buildToolsVersion androidBuildToolsVersion
nuclear@0 34
nuclear@0 35 sourceSets {
nuclear@0 36 main {
nuclear@0 37 manifest.srcFile 'AndroidManifest.xml'
nuclear@0 38 java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java']
nuclear@0 39 aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl']
nuclear@0 40 res.srcDirs = [qt5AndroidDir + '/res', 'res']
nuclear@0 41 resources.srcDirs = ['src']
nuclear@0 42 renderscript.srcDirs = ['src']
nuclear@0 43 assets.srcDirs = ['assets']
nuclear@0 44 jniLibs.srcDirs = ['libs']
nuclear@0 45 }
nuclear@0 46 }
nuclear@0 47
nuclear@0 48 lintOptions {
nuclear@0 49 abortOnError false
nuclear@0 50 }
nuclear@0 51 }