Index: third_party/mojo/src/mojo/public/mojo.gni |
diff --git a/third_party/mojo/src/mojo/public/mojo.gni b/third_party/mojo/src/mojo/public/mojo.gni |
index 9f1b86b7d203dab69125d1c54555de3066e831d0..bc90a236f9b52dbe39fbcb69f0c38a8b9560f9ee 100644 |
--- a/third_party/mojo/src/mojo/public/mojo.gni |
+++ b/third_party/mojo/src/mojo/public/mojo.gni |
@@ -6,10 +6,19 @@ import("//build/module_args/mojo.gni") |
# If using the prebuilt shell, gate its usage by the platforms for which it is |
# published. |
-if (!defined(use_prebuilt_mojo_shell) || use_prebuilt_mojo_shell) { |
+use_prebuilt_mojo_shell = false |
+if (!defined(build_mojo_shell_from_source) || !build_mojo_shell_from_source) { |
use_prebuilt_mojo_shell = is_linux || is_android |
} |
+# If using the prebuilt network service, gate its usage by the platforms for |
+# which it is published. |
+use_prebuilt_network_service = false |
+if (!defined(build_network_service_from_source) || |
+ !build_network_service_from_source) { |
+ use_prebuilt_network_service = is_linux || is_android |
+} |
+ |
# The absolute path to the directory containing the mojo public SDK (i.e., the |
# directory containing mojo/public). The build files within the Mojo public |
# SDK use this variable to allow themselves to be parameterized by the location |