| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 } | 196 } |
| 197 | 197 |
| 198 if (is_android) { | 198 if (is_android) { |
| 199 sources += [ | 199 sources += [ |
| 200 "android/android_handler.cc", | 200 "android/android_handler.cc", |
| 201 "android/android_handler.h", | 201 "android/android_handler.h", |
| 202 "android/android_handler_loader.cc", | 202 "android/android_handler_loader.cc", |
| 203 "android/android_handler_loader.h", | 203 "android/android_handler_loader.h", |
| 204 "android/background_application_loader.cc", | 204 "android/background_application_loader.cc", |
| 205 "android/background_application_loader.h", | 205 "android/background_application_loader.h", |
| 206 "android/keyboard_impl.cc", |
| 207 "android/keyboard_impl.h", |
| 206 "android/native_viewport_application_loader.cc", | 208 "android/native_viewport_application_loader.cc", |
| 207 "android/native_viewport_application_loader.h", | 209 "android/native_viewport_application_loader.h", |
| 208 "android/ui_application_loader_android.cc", | 210 "android/ui_application_loader_android.cc", |
| 209 "android/ui_application_loader_android.h", | 211 "android/ui_application_loader_android.h", |
| 210 ] | 212 ] |
| 211 | 213 |
| 212 deps += [ | 214 deps += [ |
| 213 ":jni_headers", | 215 ":jni_headers", |
| 214 ":run_android_application_function", | 216 ":run_android_application_function", |
| 215 "//mojo/application:content_handler", | 217 "//mojo/application:content_handler", |
| 218 "//mojo/services/keyboard/public/interfaces", |
| 216 "//services/gles2", | 219 "//services/gles2", |
| 217 "//services/native_viewport:lib", | 220 "//services/native_viewport:lib", |
| 218 ] | 221 ] |
| 219 } | 222 } |
| 220 | 223 |
| 221 # This target includes some files behind #ifdef OS... guards. Since gn is not | 224 # This target includes some files behind #ifdef OS... guards. Since gn is not |
| 222 # smart enough to understand preprocess includes, it does complains about | 225 # smart enough to understand preprocess includes, it does complains about |
| 223 # these includes when not using the build files for that OS. Suppress checking | 226 # these includes when not using the build files for that OS. Suppress checking |
| 224 # so we can enable checking for the rest of the targets in this file. | 227 # so we can enable checking for the rest of the targets in this file. |
| 225 # TODO: Might be better to split the files with OS-specific includes out to a | 228 # TODO: Might be better to split the files with OS-specific includes out to a |
| 226 # separate source_set so we can leave checking on for the rest of the target. | 229 # separate source_set so we can leave checking on for the rest of the target. |
| 227 check_includes = false | 230 check_includes = false |
| 228 } | 231 } |
| 229 | 232 |
| 230 if (is_android) { | 233 if (is_android) { |
| 231 generate_jni("jni_headers") { | 234 generate_jni("jni_headers") { |
| 232 sources = [ | 235 sources = [ |
| 233 "android/apk/src/org/chromium/mojo/shell/AndroidHandler.java", | 236 "android/apk/src/org/chromium/mojo/shell/AndroidHandler.java", |
| 234 "android/apk/src/org/chromium/mojo/shell/Bootstrap.java", | 237 "android/apk/src/org/chromium/mojo/shell/Bootstrap.java", |
| 238 "android/apk/src/org/chromium/mojo/shell/Keyboard.java", |
| 235 "android/apk/src/org/chromium/mojo/shell/MojoMain.java", | 239 "android/apk/src/org/chromium/mojo/shell/MojoMain.java", |
| 236 "android/tests/src/org/chromium/mojo/shell/ShellTestBase.java", | 240 "android/tests/src/org/chromium/mojo/shell/ShellTestBase.java", |
| 237 ] | 241 ] |
| 238 jni_package = "mojo/shell" | 242 jni_package = "mojo/shell" |
| 239 } | 243 } |
| 240 | 244 |
| 241 android_library("bootstrap_java") { | 245 android_library("bootstrap_java") { |
| 242 java_files = [ "android/apk/src/org/chromium/mojo/shell/Bootstrap.java" ] | 246 java_files = [ "android/apk/src/org/chromium/mojo/shell/Bootstrap.java" ] |
| 243 | 247 |
| 244 deps = [ | 248 deps = [ |
| (...skipping 23 matching lines...) Expand all Loading... |
| 268 | 272 |
| 269 deps = [ | 273 deps = [ |
| 270 "//base", | 274 "//base", |
| 271 ] | 275 ] |
| 272 } | 276 } |
| 273 | 277 |
| 274 android_library("java") { | 278 android_library("java") { |
| 275 java_files = [ | 279 java_files = [ |
| 276 "android/apk/src/org/chromium/mojo/shell/AndroidHandler.java", | 280 "android/apk/src/org/chromium/mojo/shell/AndroidHandler.java", |
| 277 "android/apk/src/org/chromium/mojo/shell/FileHelper.java", | 281 "android/apk/src/org/chromium/mojo/shell/FileHelper.java", |
| 282 "android/apk/src/org/chromium/mojo/shell/Keyboard.java", |
| 278 "android/apk/src/org/chromium/mojo/shell/MojoMain.java", | 283 "android/apk/src/org/chromium/mojo/shell/MojoMain.java", |
| 279 "android/apk/src/org/chromium/mojo/shell/MojoShellActivity.java", | 284 "android/apk/src/org/chromium/mojo/shell/MojoShellActivity.java", |
| 280 "android/apk/src/org/chromium/mojo/shell/MojoShellApplication.java", | 285 "android/apk/src/org/chromium/mojo/shell/MojoShellApplication.java", |
| 281 ] | 286 ] |
| 282 | 287 |
| 283 deps = [ | 288 deps = [ |
| 284 "//base:base_java", | 289 "//base:base_java", |
| 285 ] | 290 ] |
| 286 } | 291 } |
| 287 | 292 |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 | 501 |
| 497 deps -= [ | 502 deps -= [ |
| 498 ":lib", | 503 ":lib", |
| 499 ":external_application_registrar_connection", | 504 ":external_application_registrar_connection", |
| 500 ":external_application_registrar_bindings", | 505 ":external_application_registrar_bindings", |
| 501 "//shell/domain_socket", | 506 "//shell/domain_socket", |
| 502 "//shell/domain_socket:tests", | 507 "//shell/domain_socket:tests", |
| 503 ] | 508 ] |
| 504 } | 509 } |
| 505 } | 510 } |
| OLD | NEW |