mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Desktop embedding dependencies can trigger gn-generation-time requiremenets; e.g., the Linux embeddings have pkg-config dependencies. This can be problematic in some build environments, such as building flutter_engine.so with a custom sysroot where those higher-level dependencies aren't available. This flag allows generating build files that don't have those dependencies.
35 lines
734 B
Plaintext
35 lines
734 B
Plaintext
# Copyright 2013 The Flutter Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import("//build/fuchsia/sdk.gni")
|
|
import("//flutter/shell/platform/config.gni")
|
|
|
|
group("platform") {
|
|
if (is_mac || is_ios) {
|
|
deps = [
|
|
"darwin",
|
|
]
|
|
} else if (is_android) {
|
|
deps = [
|
|
"android",
|
|
]
|
|
} else if (is_linux) {
|
|
deps = []
|
|
if (enable_desktop_embeddings) {
|
|
deps += [ "linux" ]
|
|
}
|
|
} else if (is_win) {
|
|
deps = []
|
|
if (enable_desktop_embeddings) {
|
|
deps += [ "windows" ]
|
|
}
|
|
} else if (is_fuchsia) {
|
|
deps = [
|
|
"fuchsia",
|
|
]
|
|
} else {
|
|
assert(false, "Unknown/Unsupported platform.")
|
|
}
|
|
}
|