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 import("../mojo.gni") | 6 import("../mojo.gni") |
7 | 7 |
8 if (use_prebuilt_mojo_shell) { | 8 if (use_prebuilt_mojo_shell) { |
9 copy("copy_mojo_shell") { | 9 copy("copy_mojo_shell") { |
10 filename = "mojo_shell" | 10 filename = "mojo_shell" |
(...skipping 13 matching lines...) Expand all Loading... |
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 (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 (is_android) { | 34 if (defined(prebuilt_network_service_location) && |
| 35 prebuilt_network_service_location != "") { |
35 sources = [ | 36 sources = [ |
36 "prebuilt/network_service/android-arm/$filename", | 37 "$prebuilt_network_service_location", |
37 ] | 38 ] |
38 } else { | 39 } else { |
39 assert(is_linux) | 40 if (is_android) { |
40 sources = [ | 41 assert(cpu_arch == "arm", |
41 "prebuilt/network_service/linux-x64/$filename", | 42 "Only arm version prebuilt netowrk_service.mojo is available.") |
42 ] | 43 sources = [ |
| 44 "prebuilt/network_service/android-arm/$filename", |
| 45 ] |
| 46 } else { |
| 47 assert(is_linux) |
| 48 sources = [ |
| 49 "prebuilt/network_service/linux-x64/$filename", |
| 50 ] |
| 51 } |
43 } | 52 } |
| 53 |
44 outputs = [ | 54 outputs = [ |
45 "$root_out_dir/$filename", | 55 "$root_out_dir/$filename", |
46 ] | 56 ] |
47 } | 57 } |
48 | 58 |
49 copy("copy_network_service_apptests") { | 59 copy("copy_network_service_apptests") { |
50 filename = "network_service_apptests.mojo" | 60 filename = "network_service_apptests.mojo" |
51 if (is_android) { | 61 if (is_android) { |
52 sources = [ | 62 sources = [ |
53 "prebuilt/network_service_apptests/android-arm/$filename", | 63 "prebuilt/network_service_apptests/android-arm/$filename", |
(...skipping 15 matching lines...) Expand all Loading... |
69 # "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, |
70 # accessing the 'label' and 'target_out_dir' variables. | 80 # accessing the 'label' and 'target_out_dir' variables. |
71 copy("dart_apptest_framework") { | 81 copy("dart_apptest_framework") { |
72 sources = [ | 82 sources = [ |
73 "prebuilt/frameworks/apptest.dartzip", | 83 "prebuilt/frameworks/apptest.dartzip", |
74 ] | 84 ] |
75 outputs = [ | 85 outputs = [ |
76 "$target_out_dir/dart_apptest_framework.dartzip", | 86 "$target_out_dir/dart_apptest_framework.dartzip", |
77 ] | 87 ] |
78 } | 88 } |
OLD | NEW |