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

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

Issue 910763002: Expose ability to download network service impl in SDK. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 10 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
« no previous file with comments | « mojo/public/mojo_application.gni ('k') | mojo/public/tools/NETWORK_SERVICE_VERSION » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("../mojo.gni") 6 import("../mojo.gni")
6 7
7 if (use_prebuilt_mojo_shell) { 8 if (use_prebuilt_mojo_shell) {
8 copy("copy_mojo_shell") { 9 copy("copy_mojo_shell") {
9 filename = "mojo_shell" 10 filename = "mojo_shell"
10 if (is_win) {
11 filename += ".exe"
12 }
13 if (is_android) { 11 if (is_android) {
14 filename = "MojoShell.apk" 12 filename = "MojoShell.apk"
15 } 13 sources = [
16 sources = [ 14 "prebuilt/shell/android-arm/$filename",
17 "prebuilt/$filename", 15 ]
18 ]
19 if (is_android) {
20 outputs = [ 16 outputs = [
21 "$root_out_dir/apks/$filename", 17 "$root_out_dir/apks/$filename",
22 ] 18 ]
23 } else { 19 } else {
20 assert(is_linux)
21 sources = [
22 "prebuilt/shell/linux-x64/$filename",
23 ]
24 outputs = [ 24 outputs = [
25 "$root_out_dir/$filename", 25 "$root_out_dir/$filename",
26 ] 26 ]
27 } 27 }
28 } 28 }
29 } 29 }
30
31 if (use_prebuilt_network_service) {
32 copy("copy_network_service") {
33 filename = "network_service.mojo"
34 if (is_android) {
35 sources = [
36 "prebuilt/network_service/android-arm/$filename",
37 ]
38 } else {
39 assert(is_linux)
40 sources = [
41 "prebuilt/network_service/linux-x64/$filename",
42 ]
43 }
44 outputs = [
45 "$root_out_dir/$filename",
46 ]
47 }
48
49 copy("copy_network_service_apptests") {
50 filename = "network_service_apptests.mojo"
51 if (is_android) {
52 sources = [
53 "prebuilt/network_service_apptests/android-arm/$filename",
54 ]
55 } else {
56 assert(is_linux)
57 sources = [
58 "prebuilt/network_service_apptests/linux-x64/$filename",
59 ]
60 }
61 outputs = [
62 "$root_out_dir/$filename",
63 ]
64 }
65 }
OLDNEW
« no previous file with comments | « mojo/public/mojo_application.gni ('k') | mojo/public/tools/NETWORK_SERVICE_VERSION » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698