OLD | NEW |
| (Empty) |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 import("//build/module_args/dart.gni") | |
6 import("//build/module_args/mojo.gni") | |
7 | |
8 # If using the prebuilt shell, gate its usage by the platforms for which it is | |
9 # published. | |
10 mojo_use_prebuilt_mojo_shell = false | |
11 if (!defined(mojo_build_mojo_shell_from_source) || | |
12 !mojo_build_mojo_shell_from_source) { | |
13 mojo_use_prebuilt_mojo_shell = is_linux || is_android | |
14 } | |
15 | |
16 # If using the prebuilt dart_snapshotter, gate its usage by the platforms for | |
17 # which it is published. | |
18 mojo_use_prebuilt_dart_snapshotter = false | |
19 if (!defined(mojo_build_dart_snapshotter_from_source) || | |
20 !mojo_build_dart_snapshotter_from_source) { | |
21 mojo_use_prebuilt_dart_snapshotter = true | |
22 } else { | |
23 assert(defined(dart_snapshotter_bin)) | |
24 } | |
25 | |
26 # If using the prebuilt network service, gate its usage by the platforms for | |
27 # which it is published. | |
28 mojo_use_prebuilt_network_service = false | |
29 if (!defined(mojo_build_network_service_from_source) || | |
30 !mojo_build_network_service_from_source) { | |
31 mojo_use_prebuilt_network_service = is_linux || is_android | |
32 } | |
33 | |
34 # Enable Dart apptest framework by default. | |
35 mojo_use_dart_apptest_framework = true | |
36 if (defined(mojo_disable_dart_apptest_framework) && | |
37 mojo_disable_dart_apptest_framework) { | |
38 mojo_use_dart_apptest_framework = false | |
39 } | |
40 | |
41 # Embedder uses Mojo network interfaces. | |
42 mojo_use_network_in_sdk = true | |
43 if (defined(mojo_disable_network_in_sdk) && mojo_disable_network_in_sdk) { | |
44 mojo_use_network_in_sdk = false | |
45 } | |
46 | |
47 # The absolute path to the directory containing the mojo public SDK (i.e., the | |
48 # directory containing mojo/public). The build files within the Mojo public | |
49 # SDK use this variable to allow themselves to be parameterized by the location | |
50 # of the public SDK within a client repo. | |
51 mojo_root = get_path_info("../..", "abspath") | |
OLD | NEW |