| 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/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//mojo/public/mojo.gni") | 6 import("//mojo/public/mojo.gni") |
| 7 import("//mojo/public/tools/bindings/mojom.gni") | 7 import("//mojo/public/tools/bindings/mojom.gni") |
| 8 | 8 |
| 9 # We don't support building in the component build since mojo apps are | 9 # We don't support building in the component build since mojo apps are |
| 10 # inherently components. | 10 # inherently components. |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 "android/android_handler.h", | 157 "android/android_handler.h", |
| 158 "android/android_handler.cc", | 158 "android/android_handler.cc", |
| 159 "android/android_handler_loader.h", | 159 "android/android_handler_loader.h", |
| 160 "android/android_handler_loader.cc", | 160 "android/android_handler_loader.cc", |
| 161 "network_application_loader.cc", | 161 "network_application_loader.cc", |
| 162 "network_application_loader.h", | 162 "network_application_loader.h", |
| 163 ] | 163 ] |
| 164 | 164 |
| 165 deps += [ | 165 deps += [ |
| 166 ":jni_headers", | 166 ":jni_headers", |
| 167 ":run_android_application_function", |
| 167 "//mojo/services/gles2", | 168 "//mojo/services/gles2", |
| 168 "//mojo/services/native_viewport:lib", | 169 "//mojo/services/native_viewport:lib", |
| 169 "//mojo/services/network:lib", | 170 "//mojo/services/network:lib", |
| 170 "//mojo/application:content_handler", | 171 "//mojo/application:content_handler", |
| 171 ] | 172 ] |
| 172 } | 173 } |
| 173 | 174 |
| 174 # This target includes some files behind #ifdef OS... guards. Since gn is not | 175 # This target includes some files behind #ifdef OS... guards. Since gn is not |
| 175 # smart enough to understand preprocess includes, it does complains about | 176 # smart enough to understand preprocess includes, it does complains about |
| 176 # these includes when not using the build files for that OS. Suppress checking | 177 # these includes when not using the build files for that OS. Suppress checking |
| (...skipping 25 matching lines...) Expand all Loading... |
| 202 dex_path = "$target_out_dir/bootstrap_java.dex.jar" | 203 dex_path = "$target_out_dir/bootstrap_java.dex.jar" |
| 203 } | 204 } |
| 204 | 205 |
| 205 shared_library("bootstrap") { | 206 shared_library("bootstrap") { |
| 206 sources = [ | 207 sources = [ |
| 207 "android/bootstrap.cc", | 208 "android/bootstrap.cc", |
| 208 ] | 209 ] |
| 209 deps = [ | 210 deps = [ |
| 210 ":jni_headers", | 211 ":jni_headers", |
| 211 ":lib", | 212 ":lib", |
| 213 ":run_android_application_function", |
| 212 "//base", | 214 "//base", |
| 213 "//mojo/environment:chromium", | |
| 214 ] | 215 ] |
| 215 } | 216 } |
| 216 | 217 |
| 218 # Shared header between the bootstrap and the main shell .so. |
| 219 source_set("run_android_application_function") { |
| 220 sources = [ |
| 221 "android/run_android_application_function.h", |
| 222 ] |
| 223 } |
| 224 |
| 217 android_library("java") { | 225 android_library("java") { |
| 218 java_files = [ | 226 java_files = [ |
| 219 "android/apk/src/org/chromium/mojo_shell_apk/AndroidHandler.java", | 227 "android/apk/src/org/chromium/mojo_shell_apk/AndroidHandler.java", |
| 220 "android/apk/src/org/chromium/mojo_shell_apk/FileHelper.java", | 228 "android/apk/src/org/chromium/mojo_shell_apk/FileHelper.java", |
| 221 "android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java", | 229 "android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java", |
| 222 "android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java", | 230 "android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java", |
| 223 "android/apk/src/org/chromium/mojo_shell_apk/MojoShellApplication.java", | 231 "android/apk/src/org/chromium/mojo_shell_apk/MojoShellApplication.java", |
| 224 ] | 232 ] |
| 225 | 233 |
| 226 deps = [ | 234 deps = [ |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 | 420 |
| 413 deps -= [ | 421 deps -= [ |
| 414 ":lib", | 422 ":lib", |
| 415 ":external_application_registrar_connection", | 423 ":external_application_registrar_connection", |
| 416 ":external_application_registrar_bindings", | 424 ":external_application_registrar_bindings", |
| 417 "//mojo/shell/domain_socket", | 425 "//mojo/shell/domain_socket", |
| 418 "//mojo/shell/domain_socket:tests", | 426 "//mojo/shell/domain_socket:tests", |
| 419 ] | 427 ] |
| 420 } | 428 } |
| 421 } | 429 } |
| OLD | NEW |