mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
The build failed without Firebase
Firebase shouldn't be needed to build Flutter.
This commit is contained in:
parent
ad8b3de91f
commit
dfaa5d434e
@ -7,12 +7,16 @@
|
||||
|
||||
import("//mojo/public/tools/bindings/mojom.gni")
|
||||
|
||||
declare_args() {
|
||||
enable_firebase = false
|
||||
}
|
||||
|
||||
group("firebase") {
|
||||
deps = [
|
||||
":interfaces",
|
||||
]
|
||||
|
||||
if (is_ios || is_android) {
|
||||
if (enable_firebase && (is_ios || is_android)) {
|
||||
deps += [ ":firebase_lib" ]
|
||||
}
|
||||
}
|
||||
@ -23,6 +27,8 @@ mojom("interfaces") {
|
||||
]
|
||||
}
|
||||
|
||||
if (enable_firebase) {
|
||||
|
||||
if (is_android) {
|
||||
import("//build/config/android/config.gni")
|
||||
import("//build/config/android/rules.gni")
|
||||
@ -81,3 +87,5 @@ if (is_ios) {
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user