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 10 matching lines...) Expand all Loading... | |
21 sources = [ | 21 sources = [ |
22 "prebuilt/shell/linux-x64/$filename", | 22 "prebuilt/shell/linux-x64/$filename", |
23 ] | 23 ] |
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 (mojo_use_prebuilt_dart_snapshotter) { | |
32 copy("copy_dart_snapshotter") { | |
33 if (host_os == "linux") { | |
34 platform = "linux-x64" | |
35 } else { | |
36 assert(host_os == "mac") | |
jamesr
2015/08/17 23:08:49
i would do this
} else if (host_os == "mac") {
zra
2015/08/18 15:49:50
Done.
| |
37 platform = "mac-x64" | |
38 } | |
39 sources = [ | |
40 "prebuilt/dart_snapshotter/$platform/dart_snapshotter", | |
41 ] | |
42 outputs = [ | |
43 "$root_out_dir/dart_snapshotter", | |
44 ] | |
45 } | |
46 } | |
47 | |
31 if (mojo_use_prebuilt_network_service) { | 48 if (mojo_use_prebuilt_network_service) { |
32 copy("copy_network_service") { | 49 copy("copy_network_service") { |
33 filename = "network_service.mojo" | 50 filename = "network_service.mojo" |
34 if (defined(mojo_prebuilt_network_service_location) && | 51 if (defined(mojo_prebuilt_network_service_location) && |
35 mojo_prebuilt_network_service_location != "") { | 52 mojo_prebuilt_network_service_location != "") { |
36 sources = [ | 53 sources = [ |
37 "$mojo_prebuilt_network_service_location", | 54 "$mojo_prebuilt_network_service_location", |
38 ] | 55 ] |
39 } else { | 56 } else { |
40 if (is_android) { | 57 if (is_android) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 if (mojo_use_dart_apptest_framework) { | 108 if (mojo_use_dart_apptest_framework) { |
92 copy("dart_apptest_framework") { | 109 copy("dart_apptest_framework") { |
93 sources = [ | 110 sources = [ |
94 "prebuilt/frameworks/apptest.dartzip", | 111 "prebuilt/frameworks/apptest.dartzip", |
95 ] | 112 ] |
96 outputs = [ | 113 outputs = [ |
97 "$target_out_dir/dart_apptest_framework.dartzip", | 114 "$target_out_dir/dart_apptest_framework.dartzip", |
98 ] | 115 ] |
99 } | 116 } |
100 } | 117 } |
OLD | NEW |