Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(544)

Side by Side Diff: mojo/public/tools/BUILD.gn

Issue 1034603002: Prefix build variables used in separate repos with mojo_ (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: more mojo_ Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 import("../mojo.gni") 6 import("../mojo.gni")
7 7
8 if (use_prebuilt_mojo_shell) { 8 if (mojo_use_prebuilt_mojo_shell) {
9 copy("copy_mojo_shell") { 9 copy("copy_mojo_shell") {
10 filename = "mojo_shell" 10 filename = "mojo_shell"
11 if (is_android) { 11 if (is_android) {
12 filename = "MojoShell.apk" 12 filename = "MojoShell.apk"
13 sources = [ 13 sources = [
14 "prebuilt/shell/android-arm/$filename", 14 "prebuilt/shell/android-arm/$filename",
15 ] 15 ]
16 outputs = [ 16 outputs = [
17 "$root_out_dir/apks/$filename", 17 "$root_out_dir/apks/$filename",
18 ] 18 ]
19 } else { 19 } else {
20 assert(is_linux) 20 assert(is_linux)
21 sources = [ 21 sources = [
22 "prebuilt/shell/linux-x64/$filename", 22 "prebuilt/shell/linux-x64/$filename",
23 ] 23 ]
24 outputs = [ 24 outputs = [
25 "$root_out_dir/$filename", 25 "$root_out_dir/$filename",
26 ] 26 ]
27 } 27 }
28 } 28 }
29 } 29 }
30 30
31 if (use_prebuilt_network_service) { 31 if (mojo_use_prebuilt_network_service) {
32 copy("copy_network_service") { 32 copy("copy_network_service") {
33 filename = "network_service.mojo" 33 filename = "network_service.mojo"
34 if (defined(prebuilt_network_service_location) && 34 if (defined(mojo_prebuilt_network_service_location) &&
35 prebuilt_network_service_location != "") { 35 mojo_prebuilt_network_service_location != "") {
36 sources = [ 36 sources = [
37 "$prebuilt_network_service_location", 37 "$mojo_prebuilt_network_service_location",
38 ] 38 ]
39 } else { 39 } else {
40 if (is_android) { 40 if (is_android) {
41 assert(cpu_arch == "arm", 41 assert(cpu_arch == "arm",
42 "Only arm version prebuilt netowrk_service.mojo is available.") 42 "Only arm version prebuilt netowrk_service.mojo is available.")
43 sources = [ 43 sources = [
44 "prebuilt/network_service/android-arm/$filename", 44 "prebuilt/network_service/android-arm/$filename",
45 ] 45 ]
46 } else { 46 } else {
47 assert(is_linux) 47 assert(is_linux)
(...skipping 23 matching lines...) Expand all
71 outputs = [ 71 outputs = [
72 "$root_out_dir/$filename", 72 "$root_out_dir/$filename",
73 ] 73 ]
74 } 74 }
75 } 75 }
76 76
77 # This rule can be seen as a sort of adapter. This takes a dart framework 77 # This rule can be seen as a sort of adapter. This takes a dart framework
78 # loaded from Google Storage and then puts it in a rule which the 78 # loaded from Google Storage and then puts it in a rule which the
79 # "dart_package" template in mojo/public/dart/rules.gni can introspect on, 79 # "dart_package" template in mojo/public/dart/rules.gni can introspect on,
80 # accessing the 'label' and 'target_out_dir' variables. 80 # accessing the 'label' and 'target_out_dir' variables.
81 if (use_dart_apptest_framework) { 81 if (mojo_use_dart_apptest_framework) {
82 copy("dart_apptest_framework") { 82 copy("dart_apptest_framework") {
83 sources = [ 83 sources = [
84 "prebuilt/frameworks/apptest.dartzip", 84 "prebuilt/frameworks/apptest.dartzip",
85 ] 85 ]
86 outputs = [ 86 outputs = [
87 "$target_out_dir/dart_apptest_framework.dartzip", 87 "$target_out_dir/dart_apptest_framework.dartzip",
88 ] 88 ]
89 } 89 }
90 } 90 }
OLDNEW
« no previous file with comments | « mojo/public/mojo_application.gni ('k') | mojo/services/content_handler/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698