nuclear@0: buildscript { nuclear@0: repositories { nuclear@0: mavenCentral() nuclear@0: } nuclear@0: nuclear@0: dependencies { nuclear@0: classpath 'com.android.tools.build:gradle:0.12.1' nuclear@0: } nuclear@0: } nuclear@0: nuclear@0: apply plugin: 'android' nuclear@0: nuclear@0: dependencies { nuclear@0: compile fileTree(dir: 'libs', include: ['*.jar']) nuclear@0: } nuclear@0: nuclear@0: android { nuclear@0: /******************************************************* nuclear@0: * The following variables: nuclear@0: * - androidBuildToolsVersion, nuclear@0: * - androidCompileSdkVersion nuclear@0: * - qt5AndroidDir - holds the path to qt android files nuclear@0: * needed to build any Qt application nuclear@0: * on Android. nuclear@0: * nuclear@0: * are defined in gradle.properties file. This file is nuclear@0: * updated by QtCreator and androiddeployqt tools. nuclear@0: * Changing them manually might break the compilation! nuclear@0: *******************************************************/ nuclear@0: nuclear@0: compileSdkVersion androidCompileSdkVersion.toInteger() nuclear@0: nuclear@0: buildToolsVersion androidBuildToolsVersion nuclear@0: nuclear@0: sourceSets { nuclear@0: main { nuclear@0: manifest.srcFile 'AndroidManifest.xml' nuclear@0: java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java'] nuclear@0: aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl'] nuclear@0: res.srcDirs = [qt5AndroidDir + '/res', 'res'] nuclear@0: resources.srcDirs = ['src'] nuclear@0: renderscript.srcDirs = ['src'] nuclear@0: assets.srcDirs = ['assets'] nuclear@0: jniLibs.srcDirs = ['libs'] nuclear@0: } nuclear@0: } nuclear@0: nuclear@0: lintOptions { nuclear@0: abortOnError false nuclear@0: } nuclear@0: }