@@ -25,7 +25,7 @@ allprojects {
2525ext {
2626 supportedAbis = [" arm32" , " arm64" , " x86_32" , " x86_64" ]
2727 supportedFlavors = [" editor" , " template" ]
28- supportedEditorVendors = [" google " , " meta " ]
28+ supportedAndroidDistributions = [" android " , " horizonos " ]
2929 supportedFlavorsBuildTypes = [
3030 " editor" : [" dev" , " debug" , " release" ],
3131 " template" : [" dev" , " debug" , " release" ]
@@ -94,17 +94,17 @@ def templateExcludedBuildTask() {
9494/**
9595 * Generates the build tasks for the given flavor
9696 * @param flavor Must be one of the supported flavors ('template' / 'editor')
97- * @param editorVendor Must be one of the supported editor vendors ('google ' / 'meta ')
97+ * @param androidDistro Must be one of the supported Android distributions ('android ' / 'horizonos ')
9898 */
99- def generateBuildTasks (String flavor = " template" , String editorVendor = " google " ) {
99+ def generateBuildTasks (String flavor = " template" , String androidDistro = " android " ) {
100100 if (! supportedFlavors. contains(flavor)) {
101101 throw new GradleException (" Invalid build flavor: $flavor " )
102102 }
103- if (! supportedEditorVendors . contains(editorVendor )) {
104- throw new GradleException (" Invalid editor vendor : $e ditorVendor " )
103+ if (! supportedAndroidDistributions . contains(androidDistro )) {
104+ throw new GradleException (" Invalid Android distribution : $a ndroidDistro " )
105105 }
106106
107- String capitalizedEditorVendor = editorVendor . capitalize()
107+ String capitalizedAndroidDistro = androidDistro . capitalize()
108108 def buildTasks = []
109109
110110 // Only build the binary files for which we have native shared libraries unless we intend
@@ -170,28 +170,28 @@ def generateBuildTasks(String flavor = "template", String editorVendor = "google
170170 }
171171 } else {
172172 // Copy the generated editor apk to the bin directory.
173- String copyEditorApkTaskName = " copyEditor${ capitalizedEditorVendor }${ capitalizedTarget} ApkToBin"
173+ String copyEditorApkTaskName = " copyEditor${ capitalizedAndroidDistro }${ capitalizedTarget} ApkToBin"
174174 if (tasks. findByName(copyEditorApkTaskName) != null ) {
175175 buildTasks + = tasks. getByName(copyEditorApkTaskName)
176176 } else {
177177 buildTasks + = tasks. create(name : copyEditorApkTaskName, type : Copy ) {
178- dependsOn " :editor:assemble${ capitalizedEditorVendor }${ capitalizedTarget} "
179- from(" editor/build/outputs/apk/${ editorVendor } /${ target} " )
178+ dependsOn " :editor:assemble${ capitalizedAndroidDistro }${ capitalizedTarget} "
179+ from(" editor/build/outputs/apk/${ androidDistro } /${ target} " )
180180 into(androidEditorBuildsDir)
181- include(" android_editor-${ editorVendor } -${ target} *.apk" )
181+ include(" android_editor-${ androidDistro } -${ target} *.apk" )
182182 }
183183 }
184184
185185 // Copy the generated editor aab to the bin directory.
186- String copyEditorAabTaskName = " copyEditor${ capitalizedEditorVendor }${ capitalizedTarget} AabToBin"
186+ String copyEditorAabTaskName = " copyEditor${ capitalizedAndroidDistro }${ capitalizedTarget} AabToBin"
187187 if (tasks. findByName(copyEditorAabTaskName) != null ) {
188188 buildTasks + = tasks. getByName(copyEditorAabTaskName)
189189 } else {
190190 buildTasks + = tasks. create(name : copyEditorAabTaskName, type : Copy ) {
191- dependsOn " :editor:bundle${ capitalizedEditorVendor }${ capitalizedTarget} "
192- from(" editor/build/outputs/bundle/${ editorVendor }${ capitalizedTarget} " )
191+ dependsOn " :editor:bundle${ capitalizedAndroidDistro }${ capitalizedTarget} "
192+ from(" editor/build/outputs/bundle/${ androidDistro }${ capitalizedTarget} " )
193193 into(androidEditorBuildsDir)
194- include(" android_editor-${ editorVendor } -${ target} *.aab" )
194+ include(" android_editor-${ androidDistro } -${ target} *.aab" )
195195 }
196196 }
197197 }
@@ -204,27 +204,27 @@ def generateBuildTasks(String flavor = "template", String editorVendor = "google
204204}
205205
206206/**
207- * Generate the Godot Editor Android binaries .
207+ * Generate the Godot Editor binaries for Android devices .
208208 *
209209 * Note: Unless the 'generateNativeLibs` argument is specified, the Godot 'tools' shared libraries
210210 * must have been generated (via scons) prior to running this gradle task.
211211 * The task will only build the binaries for which the shared libraries is available.
212212 */
213213task generateGodotEditor {
214214 gradle. startParameter. excludedTaskNames + = templateExcludedBuildTask()
215- dependsOn = generateBuildTasks(" editor" , " google " )
215+ dependsOn = generateBuildTasks(" editor" , " android " )
216216}
217217
218218/**
219- * Generate the Godot Editor Android binaries for Meta devices.
219+ * Generate the Godot Editor binaries for HorizonOS devices.
220220 *
221221 * Note: Unless the 'generateNativeLibs` argument is specified, the Godot 'tools' shared libraries
222222 * must have been generated (via scons) prior to running this gradle task.
223223 * The task will only build the binaries for which the shared libraries is available.
224224 */
225- task generateGodotMetaEditor {
225+ task generateGodotHorizonOSEditor {
226226 gradle. startParameter. excludedTaskNames + = templateExcludedBuildTask()
227- dependsOn = generateBuildTasks(" editor" , " meta " )
227+ dependsOn = generateBuildTasks(" editor" , " horizonos " )
228228}
229229
230230/**
0 commit comments