| 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 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 |
| 31 if (mojo_use_prebuilt_network_service) { | 49 if (mojo_use_prebuilt_network_service) { |
| 32 copy("copy_network_service") { | 50 copy("copy_network_service") { |
| 33 filename = "network_service.mojo" | 51 filename = "network_service.mojo" |
| 34 if (defined(mojo_prebuilt_network_service_location) && | 52 if (defined(mojo_prebuilt_network_service_location) && |
| 35 mojo_prebuilt_network_service_location != "") { | 53 mojo_prebuilt_network_service_location != "") { |
| 36 sources = [ | 54 sources = [ |
| 37 "$mojo_prebuilt_network_service_location", | 55 "$mojo_prebuilt_network_service_location", |
| 38 ] | 56 ] |
| 39 } else { | 57 } else { |
| 40 if (is_android) { | 58 if (is_android) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 if (mojo_use_dart_apptest_framework) { | 109 if (mojo_use_dart_apptest_framework) { |
| 92 copy("dart_apptest_framework") { | 110 copy("dart_apptest_framework") { |
| 93 sources = [ | 111 sources = [ |
| 94 "prebuilt/frameworks/apptest.dartzip", | 112 "prebuilt/frameworks/apptest.dartzip", |
| 95 ] | 113 ] |
| 96 outputs = [ | 114 outputs = [ |
| 97 "$target_out_dir/dart_apptest_framework.dartzip", | 115 "$target_out_dir/dart_apptest_framework.dartzip", |
| 98 ] | 116 ] |
| 99 } | 117 } |
| 100 } | 118 } |
| OLD | NEW |