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