You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
[Android] Allow to build dev template with symbols
(cherry picked from commit fd7141fc03)
This commit is contained in:
committed by
Rémi Verschelde
parent
08bedba341
commit
31bc9d859b
@@ -239,5 +239,5 @@ ext.shouldSign = { ->
|
|||||||
}
|
}
|
||||||
|
|
||||||
ext.shouldNotStrip = { ->
|
ext.shouldNotStrip = { ->
|
||||||
return isAndroidStudio()
|
return isAndroidStudio() || project.hasProperty("doNotStrip")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,16 +122,17 @@ task zipCustomBuild(type: Zip) {
|
|||||||
destinationDir(file(binDir))
|
destinationDir(file(binDir))
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
def templateExcludedBuildTask() {
|
||||||
* Master task used to coordinate the tasks defined above to generate the set of Godot templates.
|
|
||||||
*/
|
|
||||||
task generateGodotTemplates(type: GradleBuild) {
|
|
||||||
// We exclude these gradle tasks so we can run the scons command manually.
|
// We exclude these gradle tasks so we can run the scons command manually.
|
||||||
|
def excludedTasks = []
|
||||||
for (String buildType : supportedTargets) {
|
for (String buildType : supportedTargets) {
|
||||||
startParameter.excludedTaskNames += ":lib:" + getSconsTaskName(buildType)
|
excludedTasks += ":lib:" + getSconsTaskName(buildType)
|
||||||
|
}
|
||||||
|
return excludedTasks
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks = []
|
def templateBuildTasks() {
|
||||||
|
def tasks = []
|
||||||
|
|
||||||
// Only build the apks and aar files for which we have native shared libraries.
|
// Only build the apks and aar files for which we have native shared libraries.
|
||||||
for (String target : supportedTargets) {
|
for (String target : supportedTargets) {
|
||||||
@@ -152,6 +153,29 @@ task generateGodotTemplates(type: GradleBuild) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return tasks
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Master task used to coordinate the tasks defined above to generate the set of Godot templates.
|
||||||
|
*/
|
||||||
|
task generateGodotTemplates(type: GradleBuild) {
|
||||||
|
startParameter.excludedTaskNames = templateExcludedBuildTask()
|
||||||
|
tasks = templateBuildTasks()
|
||||||
|
|
||||||
|
finalizedBy 'zipCustomBuild'
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates the same output as generateGodotTemplates but with dev symbols
|
||||||
|
*/
|
||||||
|
task generateDevTemplate (type: GradleBuild) {
|
||||||
|
// add parameter to set symbols to true
|
||||||
|
startParameter.projectProperties += [doNotStrip: true]
|
||||||
|
|
||||||
|
startParameter.excludedTaskNames = templateExcludedBuildTask()
|
||||||
|
tasks = templateBuildTasks()
|
||||||
|
|
||||||
finalizedBy 'zipCustomBuild'
|
finalizedBy 'zipCustomBuild'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ android.useAndroidX=true
|
|||||||
|
|
||||||
# Specifies the JVM arguments used for the daemon process.
|
# Specifies the JVM arguments used for the daemon process.
|
||||||
# The setting is particularly useful for tweaking memory settings.
|
# The setting is particularly useful for tweaking memory settings.
|
||||||
org.gradle.jvmargs=-Xmx1536m
|
org.gradle.jvmargs=-Xmx4536m
|
||||||
|
|
||||||
# When configured, Gradle will run in incubating parallel mode.
|
# When configured, Gradle will run in incubating parallel mode.
|
||||||
# This option should only be used with decoupled projects. More details, visit
|
# This option should only be used with decoupled projects. More details, visit
|
||||||
|
|||||||
Reference in New Issue
Block a user