simple_mtglife

diff android/build.gradle @ 0:6321cfa2ad62

initial
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 23 Jan 2015 15:24:27 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/android/build.gradle	Fri Jan 23 15:24:27 2015 +0200
     1.3 @@ -0,0 +1,51 @@
     1.4 +buildscript {
     1.5 +    repositories {
     1.6 +        mavenCentral()
     1.7 +    }
     1.8 +
     1.9 +    dependencies {
    1.10 +        classpath 'com.android.tools.build:gradle:0.12.1'
    1.11 +    }
    1.12 +}
    1.13 +
    1.14 +apply plugin: 'android'
    1.15 +
    1.16 +dependencies {
    1.17 +    compile fileTree(dir: 'libs', include: ['*.jar'])
    1.18 +}
    1.19 +
    1.20 +android {
    1.21 +    /*******************************************************
    1.22 +     * The following variables:
    1.23 +     * - androidBuildToolsVersion,
    1.24 +     * - androidCompileSdkVersion
    1.25 +     * - qt5AndroidDir - holds the path to qt android files
    1.26 +     *                   needed to build any Qt application
    1.27 +     *                   on Android.
    1.28 +     *
    1.29 +     * are defined in gradle.properties file. This file is
    1.30 +     * updated by QtCreator and androiddeployqt tools.
    1.31 +     * Changing them manually might break the compilation!
    1.32 +     *******************************************************/
    1.33 +
    1.34 +    compileSdkVersion androidCompileSdkVersion.toInteger()
    1.35 +
    1.36 +    buildToolsVersion androidBuildToolsVersion
    1.37 +
    1.38 +    sourceSets {
    1.39 +        main {
    1.40 +            manifest.srcFile 'AndroidManifest.xml'
    1.41 +            java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java']
    1.42 +            aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl']
    1.43 +            res.srcDirs = [qt5AndroidDir + '/res', 'res']
    1.44 +            resources.srcDirs = ['src']
    1.45 +            renderscript.srcDirs = ['src']
    1.46 +            assets.srcDirs = ['assets']
    1.47 +            jniLibs.srcDirs = ['libs']
    1.48 +       }
    1.49 +    }
    1.50 +
    1.51 +    lintOptions {
    1.52 +        abortOnError false
    1.53 +    }
    1.54 +}