mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 06:02:28 +02:00
Add missing Qt dependencies to gradle script
This commit is contained in:
parent
8cac98545a
commit
6d732dd8ba
2 changed files with 18 additions and 4 deletions
|
@ -1,9 +1,5 @@
|
|||
apply plugin: 'com.android.application'
|
||||
|
||||
ext.RELEASE_NUMBER = project.hasProperty('RELEASE_NUMBER') ? project.getProperty('RELEASE_NUMBER') : '0'
|
||||
ext.RELEASE_TYPE = project.hasProperty('RELEASE_TYPE') ? project.getProperty('RELEASE_TYPE') : 'DEV'
|
||||
ext.BUILD_BRANCH = project.hasProperty('BUILD_BRANCH') ? project.getProperty('BUILD_BRANCH') : ''
|
||||
|
||||
android {
|
||||
compileSdkVersion 26
|
||||
defaultConfig {
|
||||
|
|
|
@ -53,6 +53,8 @@ ext {
|
|||
'Qt5WebSockets',
|
||||
'Qt5Widgets',
|
||||
'Qt5XmlPatterns',
|
||||
'Qt5Concurrent',
|
||||
'Qt5Svg',
|
||||
// Android specific
|
||||
'Qt5AndroidExtras',
|
||||
'Qt5WebView',
|
||||
|
@ -502,6 +504,22 @@ task generateAssetsFileList() {
|
|||
}
|
||||
}
|
||||
|
||||
task copyInterfaceAssets() {
|
||||
doLast {
|
||||
def resourcesDir = new File("${appDir}/../../interface/resources")
|
||||
def scriptsDir = new File("${appDir}/../../scripts")
|
||||
def assetsDir = new File(appDir, 'src/main/assets')
|
||||
copy {
|
||||
from resourcesDir
|
||||
into new File(assetsDir, "resources")
|
||||
}
|
||||
copy {
|
||||
from scriptsDir
|
||||
into new File(assetsDir, "scripts")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
// FIXME derive the path from the gradle environment
|
||||
def toolchain = [
|
||||
|
|
Loading…
Reference in a new issue