Qt/QML App for Friendiqa
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. }
  5. dependencies {
  6. classpath 'com.android.tools.build:gradle:1.1.0'
  7. }
  8. }
  9. allprojects {
  10. repositories {
  11. jcenter()
  12. }
  13. }
  14. apply plugin: 'com.android.application'
  15. dependencies {
  16. compile fileTree(dir: 'libs', include: ['*.jar'])
  17. }
  18. //apply plugin: 'android-library'
  19. dependencies {
  20. compile 'com.android.support:support-v4:25.3.1'
  21. }
  22. android {
  23. /*******************************************************
  24. * The following variables:
  25. * - androidBuildToolsVersion,
  26. * - androidCompileSdkVersion
  27. * - qt5AndroidDir - holds the path to qt android files
  28. * needed to build any Qt application
  29. * on Android.
  30. *
  31. * are defined in gradle.properties file. This file is
  32. * updated by QtCreator and androiddeployqt tools.
  33. * Changing them manually might break the compilation!
  34. *******************************************************/
  35. compileSdkVersion androidCompileSdkVersion.toInteger()
  36. buildToolsVersion androidBuildToolsVersion
  37. sourceSets {
  38. main {
  39. manifest.srcFile 'AndroidManifest.xml'
  40. java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java']
  41. aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl']
  42. res.srcDirs = [qt5AndroidDir + '/res', 'res']
  43. resources.srcDirs = ['src']
  44. renderscript.srcDirs = ['src']
  45. assets.srcDirs = ['assets']
  46. jniLibs.srcDirs = ['libs']
  47. }
  48. }
  49. lintOptions {
  50. abortOnError false
  51. }
  52. }
  53. apply from: "androidnative.gradle"
  54. setAndroidNativePath("/../androidnative.pri");