File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -172,9 +172,35 @@ task deleteCmakeCache() {
172
172
}
173
173
}
174
174
175
+ task extractFilament (type : Copy ) {
176
+ // Define the AAR file as an input
177
+ def filamentAar = configurations. compileClasspath. filter { it. name. contains(" filament-android" ) }. singleFile
178
+ inputs. file(filamentAar)
179
+
180
+ // Define the output directory
181
+ def outputDir = file(" $buildDir /filament" )
182
+ outputs. dir(outputDir)
183
+
184
+ from zipTree(filamentAar)
185
+ into outputDir
186
+
187
+ include " jni/**/*"
188
+ include " libs/**/*.so"
189
+
190
+ doFirst {
191
+ println " Extracting Filament AAR..."
192
+ }
193
+ doLast {
194
+ println " Extraction complete."
195
+ }
196
+ }
197
+
175
198
tasks. configureEach { task ->
176
199
// C++ clean
177
200
if (task. name. contains(" clean" )) {
178
201
task. dependsOn(deleteCmakeCache)
179
202
}
203
+ if (task. name. startsWith(' externalNativeBuild' )) {
204
+ task. dependsOn(extractFilament)
205
+ }
180
206
}
You can’t perform that action at this time.
0 commit comments