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

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

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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
(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/mojo.gni")
6 import("../mojo.gni")
7
8 if (mojo_use_prebuilt_mojo_shell) {
9 copy("copy_mojo_shell") {
10 filename = "mojo_shell"
11 if (is_android) {
12 filename = "MojoShell.apk"
13 sources = [
14 "prebuilt/shell/android-arm/$filename",
15 ]
16 outputs = [
17 "$root_out_dir/apks/$filename",
18 ]
19 } else {
20 assert(is_linux)
21 sources = [
22 "prebuilt/shell/linux-x64/$filename",
23 ]
24 outputs = [
25 "$root_out_dir/$filename",
26 ]
27 }
28 }
29 }
30
31 if (mojo_use_prebuilt_dart_snapshotter) {
32 copy("copy_dart_snapshotter") {
33 if (host_os == "linux") {
34 platform = "linux-x64"
35 } else if (host_os == "mac") {
36 platform = "mac-x64"
37 } else {
38 assert(false, "$host_os not supported")
39 }
40 sources = [
41 "prebuilt/dart_snapshotter/$platform/dart_snapshotter",
42 ]
43 outputs = [
44 "$root_out_dir/dart_snapshotter",
45 ]
46 }
47 }
48
49 if (mojo_use_prebuilt_network_service) {
50 copy("copy_network_service") {
51 filename = "network_service.mojo"
52 if (defined(mojo_prebuilt_network_service_location) &&
53 mojo_prebuilt_network_service_location != "") {
54 sources = [
55 "$mojo_prebuilt_network_service_location",
56 ]
57 } else {
58 if (is_android) {
59 assert(current_cpu == "arm",
60 "Only arm version prebuilt netowrk_service.mojo is available.")
61 sources = [
62 "prebuilt/network_service/android-arm/$filename",
63 ]
64 } else {
65 assert(is_linux)
66 sources = [
67 "prebuilt/network_service/linux-x64/$filename",
68 ]
69 }
70 }
71
72 outputs = [
73 "$root_out_dir/$filename",
74 ]
75 }
76
77 copy("copy_network_service_apptests") {
78 filename = "network_service_apptests.mojo"
79 if (defined(mojo_prebuilt_network_service_apptests_location) &&
80 mojo_prebuilt_network_service_apptests_location != "") {
81 sources = [
82 "$mojo_prebuilt_network_service_apptests_location",
83 ]
84 } else {
85 if (is_android) {
86 assert(
87 target_cpu == "arm",
88 "Only arm version prebuilt netowrk_service_apptests.mojo is availabl e.")
89 sources = [
90 "prebuilt/network_service_apptests/android-arm/$filename",
91 ]
92 } else {
93 assert(is_linux)
94 sources = [
95 "prebuilt/network_service_apptests/linux-x64/$filename",
96 ]
97 }
98 }
99 outputs = [
100 "$root_out_dir/$filename",
101 ]
102 }
103 }
OLDNEW
« no previous file with comments | « mojo/public/third_party/markupsafe/get_markupsafe.sh ('k') | mojo/public/tools/NETWORK_SERVICE_VERSION » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698