Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: shell/BUILD.gn

Issue 805113002: Moves android specific code into android directory (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: merge 2 trunk Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 "mojo_url_resolver.cc", 153 "mojo_url_resolver.cc",
154 "mojo_url_resolver.h", 154 "mojo_url_resolver.h",
155 "out_of_process_dynamic_service_runner.cc", 155 "out_of_process_dynamic_service_runner.cc",
156 "out_of_process_dynamic_service_runner.h", 156 "out_of_process_dynamic_service_runner.h",
157 "switches.cc", 157 "switches.cc",
158 "switches.h", 158 "switches.h",
159 "task_runners.cc", 159 "task_runners.cc",
160 "task_runners.h", 160 "task_runners.h",
161 "test_child_process.cc", 161 "test_child_process.cc",
162 "test_child_process.h", 162 "test_child_process.h",
163 "ui_application_loader_android.cc",
164 "ui_application_loader_android.h",
165 ] 163 ]
166 164
167 deps = [ 165 deps = [
168 ":app_child_process_bindings", 166 ":app_child_process_bindings",
169 ":external_application_registrar_bindings", 167 ":external_application_registrar_bindings",
170 ":init", 168 ":init",
171 ":in_process_dynamic_service_runner", 169 ":in_process_dynamic_service_runner",
172 "//base", 170 "//base",
173 "//base/third_party/dynamic_annotations", 171 "//base/third_party/dynamic_annotations",
174 "//base:base_static", 172 "//base:base_static",
(...skipping 10 matching lines...) Expand all
185 "//services/tracing:bindings", 183 "//services/tracing:bindings",
186 "//url", 184 "//url",
187 ] 185 ]
188 186
189 if (is_win) { 187 if (is_win) {
190 deps -= [ "//shell/domain_socket" ] 188 deps -= [ "//shell/domain_socket" ]
191 } 189 }
192 190
193 if (is_android) { 191 if (is_android) {
194 sources += [ 192 sources += [
193 "android/android_handler.cc",
195 "android/android_handler.h", 194 "android/android_handler.h",
196 "android/android_handler.cc", 195 "android/android_handler_loader.cc",
197 "android/android_handler_loader.h", 196 "android/android_handler_loader.h",
198 "android/android_handler_loader.cc", 197 "android/ui_application_loader_android.cc",
198 "android/ui_application_loader_android.h",
199 ] 199 ]
200 200
201 deps += [ 201 deps += [
202 ":jni_headers", 202 ":jni_headers",
203 ":run_android_application_function", 203 ":run_android_application_function",
204 "//mojo/application:content_handler", 204 "//mojo/application:content_handler",
205 "//services/gles2", 205 "//services/gles2",
206 "//services/native_viewport:lib", 206 "//services/native_viewport:lib",
207 ] 207 ]
208 } 208 }
209 209
210 # This target includes some files behind #ifdef OS... guards. Since gn is not 210 # This target includes some files behind #ifdef OS... guards. Since gn is not
211 # smart enough to understand preprocess includes, it does complains about 211 # smart enough to understand preprocess includes, it does complains about
212 # these includes when not using the build files for that OS. Suppress checking 212 # these includes when not using the build files for that OS. Suppress checking
213 # so we can enable checking for the rest of the targets in this file. 213 # so we can enable checking for the rest of the targets in this file.
214 # TODO: Might be better to split the files with OS-specific includes out to a 214 # TODO: Might be better to split the files with OS-specific includes out to a
215 # separate source_set so we can leave checking on for the rest of the target. 215 # separate source_set so we can leave checking on for the rest of the target.
216 check_includes = false 216 check_includes = false
217 } 217 }
218 218
219 if (is_android) { 219 if (is_android) {
220 generate_jni("jni_headers") { 220 generate_jni("jni_headers") {
221 sources = [ 221 sources = [
222 "android/apk/src/org/chromium/mojo_shell_apk/AndroidHandler.java", 222 "android/apk/src/org/chromium/mojo_shell_apk/AndroidHandler.java",
223 "android/apk/src/org/chromium/mojo_shell_apk/Bootstrap.java", 223 "android/apk/src/org/chromium/mojo_shell_apk/Bootstrap.java",
224 "android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java", 224 "android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java",
225 ] 225 ]
226 jni_package = "mojo" 226 jni_package = "mojo/shell"
227 } 227 }
228 228
229 android_library("bootstrap_java") { 229 android_library("bootstrap_java") {
230 java_files = 230 java_files =
231 [ "android/apk/src/org/chromium/mojo_shell_apk/Bootstrap.java" ] 231 [ "android/apk/src/org/chromium/mojo_shell_apk/Bootstrap.java" ]
232 232
233 deps = [ 233 deps = [
234 "//base:base_java", 234 "//base:base_java",
235 ] 235 ]
236 236
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 445
446 deps -= [ 446 deps -= [
447 ":lib", 447 ":lib",
448 ":external_application_registrar_connection", 448 ":external_application_registrar_connection",
449 ":external_application_registrar_bindings", 449 ":external_application_registrar_bindings",
450 "//shell/domain_socket", 450 "//shell/domain_socket",
451 "//shell/domain_socket:tests", 451 "//shell/domain_socket:tests",
452 ] 452 ]
453 } 453 }
454 } 454 }
OLDNEW
« no previous file with comments | « no previous file | shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698