| 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("//mojo/public/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
| 6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 if (is_android) { | 9 if (is_android) { |
| 10 import("//build/config/android/config.gni") | 10 import("//build/config/android/config.gni") |
| 11 import("//build/config/android/rules.gni") | 11 import("//build/config/android/rules.gni") |
| 12 } | 12 } |
| 13 | 13 |
| 14 source_set("register_local_aliases_fwd") { | |
| 15 sources = [ | |
| 16 "register_local_aliases.h", | |
| 17 ] | |
| 18 } | |
| 19 | |
| 20 # main() entrypoint definition is structured into a static lib for Android's | 14 # main() entrypoint definition is structured into a static lib for Android's |
| 21 # benefit, as it is shared between the standalone executable and other | 15 # benefit, as it is shared between the standalone executable and other |
| 22 # executables (e.g. Mandoline). | 16 # executables (e.g. Mandoline). |
| 23 source_set("main_lib") { | 17 source_set("main_lib") { |
| 24 sources = [] | 18 sources = [] |
| 25 | 19 |
| 26 deps = [ | 20 deps = [ |
| 27 ":lib", | 21 ":lib", |
| 28 "//base", | 22 "//base", |
| 29 "//build/config/sanitizers:deps", | 23 "//build/config/sanitizers:deps", |
| 30 "//mojo/common", | 24 "//mojo/common", |
| 31 "//mojo/environment:chromium", | 25 "//mojo/environment:chromium", |
| 32 "//mojo/message_pump", | 26 "//mojo/message_pump", |
| 33 "//mojo/shell/runner/common", | 27 "//mojo/shell/runner/common", |
| 34 "//mojo/shell/runner/host:lib", | 28 "//mojo/shell/runner/host:lib", |
| 35 ] | 29 ] |
| 36 | 30 |
| 37 if (!is_android) { | 31 if (!is_android) { |
| 38 sources += [ | 32 sources += [ "desktop/main.cc" ] |
| 39 "desktop/main.cc", | |
| 40 "register_local_aliases.cc", | |
| 41 "register_local_aliases.h", | |
| 42 ] | |
| 43 deps += [ | 33 deps += [ |
| 44 "//components/tracing:startup_tracing", | 34 "//components/tracing:startup_tracing", |
| 45 "//third_party/icu:icudata", | 35 "//third_party/icu:icudata", |
| 46 ] | 36 ] |
| 47 } else { | 37 } else { |
| 48 sources += [ | 38 sources += [ |
| 49 "android/context_init.h", | 39 "android/context_init.h", |
| 50 "android/library_loader.cc", | 40 "android/library_loader.cc", |
| 51 "android/main.cc", | 41 "android/main.cc", |
| 52 "android/main.h", | 42 "android/main.h", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 67 executable("standalone") { | 57 executable("standalone") { |
| 68 output_name = "mojo_runner" | 58 output_name = "mojo_runner" |
| 69 deps = [ | 59 deps = [ |
| 70 ":main_lib", | 60 ":main_lib", |
| 71 "//build/config/sanitizers:deps", | 61 "//build/config/sanitizers:deps", |
| 72 ] | 62 ] |
| 73 | 63 |
| 74 if (is_android) { | 64 if (is_android) { |
| 75 sources = [ | 65 sources = [ |
| 76 "android/context_init.cc", | 66 "android/context_init.cc", |
| 77 "register_local_aliases.cc", | |
| 78 ] | 67 ] |
| 79 | 68 |
| 80 deps += [ | 69 deps += [ |
| 81 ":lib", | 70 ":lib", |
| 82 ":register_local_aliases_fwd", | |
| 83 "//mojo/edk/system", | 71 "//mojo/edk/system", |
| 84 ] | 72 ] |
| 85 | 73 |
| 86 # On android, the executable is also the native library used by the apk. | 74 # On android, the executable is also the native library used by the apk. |
| 87 # It means dynamic symbols must be preserved and exported. | 75 # It means dynamic symbols must be preserved and exported. |
| 88 ldflags = [ "-Wl,--export-dynamic" ] | 76 ldflags = [ "-Wl,--export-dynamic" ] |
| 89 } | 77 } |
| 90 } | 78 } |
| 91 | 79 |
| 92 source_set("lib") { | 80 source_set("lib") { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 105 "//base", | 93 "//base", |
| 106 "//base:base_static", | 94 "//base:base_static", |
| 107 "//base/third_party/dynamic_annotations", | 95 "//base/third_party/dynamic_annotations", |
| 108 "//components/tracing:startup_tracing", | 96 "//components/tracing:startup_tracing", |
| 109 "//mojo/edk/system", | 97 "//mojo/edk/system", |
| 110 "//mojo/message_pump", | 98 "//mojo/message_pump", |
| 111 "//mojo/services/network/public/interfaces", | 99 "//mojo/services/network/public/interfaces", |
| 112 "//mojo/services/tracing/public/cpp", | 100 "//mojo/services/tracing/public/cpp", |
| 113 "//mojo/services/tracing/public/interfaces", | 101 "//mojo/services/tracing/public/interfaces", |
| 114 "//mojo/shell", | 102 "//mojo/shell", |
| 115 "//mojo/shell/package_manager", | |
| 116 "//mojo/shell/public/cpp", | 103 "//mojo/shell/public/cpp", |
| 117 "//mojo/shell/runner:init", | 104 "//mojo/shell/runner:init", |
| 118 "//mojo/shell/runner/child:interfaces", | 105 "//mojo/shell/runner/child:interfaces", |
| 119 "//mojo/shell/runner/host:lib", | 106 "//mojo/shell/runner/host:lib", |
| 120 "//mojo/util:filename_util", | 107 "//mojo/util:filename_util", |
| 121 "//ui/gl", | 108 "//ui/gl", |
| 122 "//url", | 109 "//url", |
| 123 ] | 110 ] |
| 124 | 111 |
| 125 public_deps = [ | 112 public_deps = [ |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 deps = [ | 184 deps = [ |
| 198 "//base:base_java", | 185 "//base:base_java", |
| 199 ] | 186 ] |
| 200 | 187 |
| 201 dex_path = "$target_out_dir/bootstrap_java.dex.jar" | 188 dex_path = "$target_out_dir/bootstrap_java.dex.jar" |
| 202 } | 189 } |
| 203 | 190 |
| 204 shared_library("bootstrap") { | 191 shared_library("bootstrap") { |
| 205 sources = [ | 192 sources = [ |
| 206 "android/bootstrap.cc", | 193 "android/bootstrap.cc", |
| 207 "register_local_aliases.cc", | |
| 208 "register_local_aliases.h", | |
| 209 ] | 194 ] |
| 210 deps = [ | 195 deps = [ |
| 211 ":jni_headers", | 196 ":jni_headers", |
| 212 ":lib", | 197 ":lib", |
| 213 ":run_android_application_function", | 198 ":run_android_application_function", |
| 214 "//base", | 199 "//base", |
| 215 "//build/config/sanitizers:deps", | 200 "//build/config/sanitizers:deps", |
| 216 ] | 201 ] |
| 217 } | 202 } |
| 218 | 203 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 ":copy_mojo_shell_standalone", | 279 ":copy_mojo_shell_standalone", |
| 295 ":java", | 280 ":java", |
| 296 ":mojo_shell_standalone_apptests_assets", | 281 ":mojo_shell_standalone_apptests_assets", |
| 297 ":resources", | 282 ":resources", |
| 298 "//base:base_java", | 283 "//base:base_java", |
| 299 "//ui/platform_window/android:platform_window_java", | 284 "//ui/platform_window/android:platform_window_java", |
| 300 google_play_services_resources, | 285 google_play_services_resources, |
| 301 ] | 286 ] |
| 302 } | 287 } |
| 303 } | 288 } |
| OLD | NEW |