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

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

Issue 1058033002: NOT TO COMMITTED: Update mojo sdk to rev 0018e6a91b75bcb941c867f8a7aa1753c3b53a13 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 (mojo_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"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 } 52 }
53 53
54 outputs = [ 54 outputs = [
55 "$root_out_dir/$filename", 55 "$root_out_dir/$filename",
56 ] 56 ]
57 } 57 }
58 58
59 copy("copy_network_service_apptests") { 59 copy("copy_network_service_apptests") {
60 filename = "network_service_apptests.mojo" 60 filename = "network_service_apptests.mojo"
61 if (is_android) { 61 if (defined(mojo_prebuilt_network_service_apptests_location) &&
62 mojo_prebuilt_network_service_apptests_location != "") {
62 sources = [ 63 sources = [
63 "prebuilt/network_service_apptests/android-arm/$filename", 64 "$mojo_prebuilt_network_service_apptests_location",
64 ] 65 ]
65 } else { 66 } else {
66 assert(is_linux) 67 if (is_android) {
67 sources = [ 68 assert(
68 "prebuilt/network_service_apptests/linux-x64/$filename", 69 cpu_arch == "arm",
69 ] 70 "Only arm version prebuilt netowrk_service_apptests.mojo is availabl e.")
71 sources = [
72 "prebuilt/network_service_apptests/android-arm/$filename",
73 ]
74 } else {
75 assert(is_linux)
76 sources = [
77 "prebuilt/network_service_apptests/linux-x64/$filename",
78 ]
79 }
70 } 80 }
71 outputs = [ 81 outputs = [
72 "$root_out_dir/$filename", 82 "$root_out_dir/$filename",
73 ] 83 ]
74 } 84 }
75 } 85 }
76 86
77 # This rule can be seen as a sort of adapter. This takes a dart framework 87 # 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 88 # 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, 89 # "dart_package" template in mojo/public/dart/rules.gni can introspect on,
80 # accessing the 'label' and 'target_out_dir' variables. 90 # accessing the 'label' and 'target_out_dir' variables.
81 if (mojo_use_dart_apptest_framework) { 91 if (mojo_use_dart_apptest_framework) {
82 copy("dart_apptest_framework") { 92 copy("dart_apptest_framework") {
83 sources = [ 93 sources = [
84 "prebuilt/frameworks/apptest.dartzip", 94 "prebuilt/frameworks/apptest.dartzip",
85 ] 95 ]
86 outputs = [ 96 outputs = [
87 "$target_out_dir/dart_apptest_framework.dartzip", 97 "$target_out_dir/dart_apptest_framework.dartzip",
88 ] 98 ]
89 } 99 }
90 } 100 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698