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 (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 20 matching lines...) Expand all Loading... |
31 if (mojo_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(mojo_prebuilt_network_service_location) && | 34 if (defined(mojo_prebuilt_network_service_location) && |
35 mojo_prebuilt_network_service_location != "") { | 35 mojo_prebuilt_network_service_location != "") { |
36 sources = [ | 36 sources = [ |
37 "$mojo_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(current_cpu == "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) |
48 sources = [ | 48 sources = [ |
49 "prebuilt/network_service/linux-x64/$filename", | 49 "prebuilt/network_service/linux-x64/$filename", |
50 ] | 50 ] |
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 (defined(mojo_prebuilt_network_service_apptests_location) && | 61 if (defined(mojo_prebuilt_network_service_apptests_location) && |
62 mojo_prebuilt_network_service_apptests_location != "") { | 62 mojo_prebuilt_network_service_apptests_location != "") { |
63 sources = [ | 63 sources = [ |
64 "$mojo_prebuilt_network_service_apptests_location", | 64 "$mojo_prebuilt_network_service_apptests_location", |
65 ] | 65 ] |
66 } else { | 66 } else { |
67 if (is_android) { | 67 if (is_android) { |
68 assert( | 68 assert( |
69 cpu_arch == "arm", | 69 target_cpu == "arm", |
70 "Only arm version prebuilt netowrk_service_apptests.mojo is availabl
e.") | 70 "Only arm version prebuilt netowrk_service_apptests.mojo is availabl
e.") |
71 sources = [ | 71 sources = [ |
72 "prebuilt/network_service_apptests/android-arm/$filename", | 72 "prebuilt/network_service_apptests/android-arm/$filename", |
73 ] | 73 ] |
74 } else { | 74 } else { |
75 assert(is_linux) | 75 assert(is_linux) |
76 sources = [ | 76 sources = [ |
77 "prebuilt/network_service_apptests/linux-x64/$filename", | 77 "prebuilt/network_service_apptests/linux-x64/$filename", |
78 ] | 78 ] |
79 } | 79 } |
(...skipping 11 matching lines...) Expand all Loading... |
91 if (mojo_use_dart_apptest_framework) { | 91 if (mojo_use_dart_apptest_framework) { |
92 copy("dart_apptest_framework") { | 92 copy("dart_apptest_framework") { |
93 sources = [ | 93 sources = [ |
94 "prebuilt/frameworks/apptest.dartzip", | 94 "prebuilt/frameworks/apptest.dartzip", |
95 ] | 95 ] |
96 outputs = [ | 96 outputs = [ |
97 "$target_out_dir/dart_apptest_framework.dartzip", | 97 "$target_out_dir/dart_apptest_framework.dartzip", |
98 ] | 98 ] |
99 } | 99 } |
100 } | 100 } |
OLD | NEW |