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
3 # found in the LICENSE file.
5 import("//build/config/android/config.gni")
6 import("//build/config/android/rules.gni")
7 import("//build/module_args/v8.gni")
8 import("//chrome/version.gni")
9 import("//testing/test.gni")
10 import("//third_party/icu/config.gni")
11 import("//third_party/protobuf/proto_library.gni")
14 manifest_package = "org.chromium.chrome"
15 if (enable_configuration_policy) {
16 configuration_policy = 1
18 configuration_policy = 0
22 "channel=$android_channel",
23 "manifest_package=$manifest_package",
24 "configuration_policy=$configuration_policy",
27 chrome_android_paks_gypi =
28 exec_script("//build/gypi_to_gn.py",
30 rebase_path("//chrome/chrome_android_paks.gypi"),
31 "--replace=<(PRODUCT_DIR)=$root_out_dir",
34 [ "//chrome/chrome_android_paks.gypi" ])
36 locale_pak_resources("chrome_locale_paks") {
37 sources = chrome_android_paks_gypi.chrome_android_pak_locale_resources
40 "//chrome:packed_resources",
44 # GYP: //chrome/chrome.gyp:chrome_java (resources part)
45 android_resources("chrome_java_resources") {
51 ":chrome_locale_paks",
52 ":chrome_strings_grd",
53 "//components/policy:app_restrictions_resources",
54 "//content/public/android:content_java_resources",
55 "//chrome/app:java_strings_grd",
56 "//third_party/android_data_chart:android_data_chart_java_resources",
57 "//third_party/android_media:android_media_resources",
59 if (!enable_configuration_policy) {
60 deps -= [ "//components/policy:app_restrictions_resources" ]
62 custom_package = "org.chromium.chrome"
65 # GYP: //chrome/chrome.gyp:chrome_strings_grd
66 java_strings_grd("chrome_strings_grd") {
67 grd_file = "java/strings/android_chrome_strings.grd"
69 "values-am/android_chrome_strings.xml",
70 "values-ar/android_chrome_strings.xml",
71 "values-bg/android_chrome_strings.xml",
72 "values-ca/android_chrome_strings.xml",
73 "values-cs/android_chrome_strings.xml",
74 "values-da/android_chrome_strings.xml",
75 "values-de/android_chrome_strings.xml",
76 "values-el/android_chrome_strings.xml",
77 "values/android_chrome_strings.xml",
78 "values-en-rGB/android_chrome_strings.xml",
79 "values-es/android_chrome_strings.xml",
80 "values-es-rUS/android_chrome_strings.xml",
81 "values-fa/android_chrome_strings.xml",
82 "values-fi/android_chrome_strings.xml",
83 "values-tl/android_chrome_strings.xml",
84 "values-fr/android_chrome_strings.xml",
85 "values-hi/android_chrome_strings.xml",
86 "values-hr/android_chrome_strings.xml",
87 "values-hu/android_chrome_strings.xml",
88 "values-in/android_chrome_strings.xml",
89 "values-it/android_chrome_strings.xml",
90 "values-iw/android_chrome_strings.xml",
91 "values-ja/android_chrome_strings.xml",
92 "values-ko/android_chrome_strings.xml",
93 "values-lt/android_chrome_strings.xml",
94 "values-lv/android_chrome_strings.xml",
95 "values-nl/android_chrome_strings.xml",
96 "values-nb/android_chrome_strings.xml",
97 "values-pl/android_chrome_strings.xml",
98 "values-pt-rBR/android_chrome_strings.xml",
99 "values-pt-rPT/android_chrome_strings.xml",
100 "values-ro/android_chrome_strings.xml",
101 "values-ru/android_chrome_strings.xml",
102 "values-sk/android_chrome_strings.xml",
103 "values-sl/android_chrome_strings.xml",
104 "values-sr/android_chrome_strings.xml",
105 "values-sv/android_chrome_strings.xml",
106 "values-sw/android_chrome_strings.xml",
107 "values-th/android_chrome_strings.xml",
108 "values-tr/android_chrome_strings.xml",
109 "values-uk/android_chrome_strings.xml",
110 "values-vi/android_chrome_strings.xml",
111 "values-zh-rCN/android_chrome_strings.xml",
112 "values-zh-rTW/android_chrome_strings.xml",
116 # GYP: //chrome/chrome.gyp:chrome_java
117 android_library("chrome_java") {
119 ":chrome_java_resources",
120 ":document_tab_model_info_proto_java",
122 "//net/android:net_java",
123 "//components/bookmarks/common/android:bookmarks_java",
124 "//components/dom_distiller/android:dom_distiller_content_java",
125 "//components/dom_distiller/android:dom_distiller_core_java",
126 "//components/gcm_driver/android:gcm_driver_java",
127 "//components/invalidation/impl:java",
128 "//components/navigation_interception/android:navigation_interception_java",
129 "//components/policy/android:policy_java",
130 "//components/precache/android:precache_java",
131 "//components/safe_json/android:safe_json_java",
132 "//components/service_tab_launcher:service_tab_launcher_java",
133 "//components/signin/core/browser/android:java",
134 "//components/variations/android:variations_java",
135 "//components/web_contents_delegate_android:web_contents_delegate_android_java",
136 "//content/public/android:content_java",
137 "//media/base/android:media_java",
138 "//printing:printing_java",
139 "//sync/android:sync_java",
140 "//third_party/android_data_chart:android_data_chart_java",
141 "//third_party/android_media:android_media_java",
142 "//third_party/android_protobuf:protobuf_nano_javalib",
143 "//third_party/android_swipe_refresh:android_swipe_refresh_java",
144 "//third_party/android_tools:android_gcm_java",
145 "//third_party/android_tools:android_support_design_java",
146 "//third_party/android_tools:android_support_v13_java",
147 "//third_party/android_tools:android_support_v7_appcompat_java",
148 "//third_party/android_tools:android_support_v7_mediarouter_java",
149 "//third_party/android_tools:android_support_v7_mediarouter_resources",
150 "//third_party/android_tools:android_support_v7_recyclerview_java",
151 "//third_party/cacheinvalidation:cacheinvalidation_javalib",
152 "//third_party/cacheinvalidation:cacheinvalidation_proto_java",
153 "//third_party/jsr-305:jsr_305_javalib",
154 "//media/base/android:media_java",
155 "//media/midi:midi_java",
156 "//ui/android:ui_java",
157 "//ui/android:ui_java_resources",
158 google_play_services_library,
161 if (android_sdk_version != "M") {
162 deps += [ "//third_party/android_tools:preview_java_sources" ]
166 ":chrome_android_java_enums_srcjar",
167 ":chrome_version_srcjar",
168 ":custom_tabs_service_aidl",
169 ":resource_id_javagen",
170 "//chrome:page_info_connection_type_javagen",
171 "//chrome:content_setting_javagen",
172 "//chrome:content_settings_type_javagen",
173 "//components/enhanced_bookmarks:enhanced_bookmarks_java_enums_srcjar",
174 "//components/offline_pages:offline_pages_enums_java",
177 DEPRECATED_java_in_dir = "java/src"
180 # GYP: //chrome/chrome_browser.gypi:activity_type_ids_java
181 # GYP: //chrome/chrome_browser.gypi:connectivity_check_result_java
182 # GYP: //chrome/chrome_browser.gypi:shortcut_source_java
183 # GYP: //chrome/chrome_browser.gypi:profile_account_management_metrics_java
184 # GYP: //chrome/chrome_browser.gypi:profile_sync_service_model_type_selection_java
185 # GYP: //chrome/chrome_browser.gypi:connection_security_security_levels_java
186 # GYP: //chrome/chrome_browser.gypi:tab_load_status_java
187 java_cpp_enum("chrome_android_java_enums_srcjar") {
189 "//chrome/browser/android/activity_type_ids.h",
190 "//chrome/browser/android/feedback/connectivity_checker.cc",
191 "//chrome/browser/android/shortcut_info.h",
192 "//chrome/browser/android/tab_android.h",
193 "//chrome/browser/profiles/profile_metrics.h",
194 "//chrome/browser/ssl/connection_security.h",
195 "//chrome/browser/sync/profile_sync_service_android.cc",
198 "org/chromium/chrome/browser/ActivityTypeIds.java",
199 "org/chromium/chrome/browser/feedback/ConnectivityCheckResult.java",
200 "org/chromium/chrome/browser/ShortcutSource.java",
201 "org/chromium/chrome/browser/TabLoadStatus.java",
202 "org/chromium/chrome/browser/profiles/ProfileAccountManagementMetrics.java",
203 "org/chromium/chrome/browser/ssl/ConnectionSecurityLevel.java",
204 "org/chromium/chrome/browser/sync/ModelTypeSelection.java",
208 # GYP: //chrome/chrome_browser.gypi:document_tab_model_info_proto_java
209 proto_java_library("document_tab_model_info_proto_java") {
210 proto_path = "java/src/org/chromium/chrome/browser/tabmodel/document"
212 "$proto_path/document_tab_model_info.proto",
216 # GYP: //chrome/chrome_browser.gypi:resource_id_java
217 java_cpp_template("resource_id_javagen") {
219 "java/ResourceId.template",
221 package_name = "org/chromium/chrome/browser"
223 "../browser/android/resource_id.h",
227 # GYP: //chrome/chrome_shell.gypi:libchromeshell_base
228 group("chrome_shell_base") {
230 "//chrome/browser/ui",
231 "//chrome:chrome_android_core",
234 "//content/public/app:both",
238 #[ 'order_profiling!=0', {
239 #'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
243 # GYP: //chrome/chrome_shell.gypi:libchromeshell
244 shared_library("chrome_shell") {
247 "shell/chrome_main_delegate_chrome_shell_android.cc",
248 "shell/chrome_main_delegate_chrome_shell_android.h",
249 "shell/chrome_shell_entry_point.cc",
252 ":chrome_shell_base",
256 # GYP: //chrome/chrome_shell.gypi:libchromesyncshell
257 shared_library("chrome_sync_shell") {
260 #"shell/chrome_shell_entry_point.cc",
261 #"sync_shell/chrome_main_delegate_chrome_sync_shell_android.cc",
262 #"sync_shell/chrome_main_delegate_chrome_sync_shell_android.h",
265 "//sync:test_support_sync_fake_server_android",
267 data_deps = [ ":chrome_shell_base" ]
271 android_resources("chrome_shell_resources") {
273 ":chrome_java_resources",
276 resource_dirs = [ "shell/res" ]
277 custom_package = "org.chromium.chrome.shell"
281 android_library("chrome_shell_java") {
285 ":chrome_java_resources",
286 ":chrome_shell_resources",
288 "//content/public/android:content_java",
289 "//components/dom_distiller/android:dom_distiller_content_java",
290 "//components/dom_distiller/android:dom_distiller_core_java",
291 "//components/service_tab_launcher:service_tab_launcher_java",
292 "//components/web_contents_delegate_android:web_contents_delegate_android_java",
293 "//printing:printing_java",
294 "//net/android:net_java",
295 "//sync/android:sync_java",
296 "//third_party/android_tools:android_support_v13_java",
297 "//third_party/android_tools:android_support_v7_appcompat_java",
298 "//ui/android:ui_java",
300 DEPRECATED_java_in_dir = "shell/java/src"
303 chrome_shell_assets_dir = "$root_build_dir/chrome_shell/assets"
306 copy_ex("chrome_shell_assets") {
308 dest = chrome_shell_assets_dir
310 "$root_build_dir/chrome_100_percent.pak",
311 "$root_build_dir/locales/am.pak",
312 "$root_build_dir/locales/ar.pak",
313 "$root_build_dir/locales/bg.pak",
314 "$root_build_dir/locales/ca.pak",
315 "$root_build_dir/locales/cs.pak",
316 "$root_build_dir/locales/da.pak",
317 "$root_build_dir/locales/de.pak",
318 "$root_build_dir/locales/el.pak",
319 "$root_build_dir/locales/en-GB.pak",
320 "$root_build_dir/locales/en-US.pak",
321 "$root_build_dir/locales/es-419.pak",
322 "$root_build_dir/locales/es.pak",
323 "$root_build_dir/locales/fa.pak",
324 "$root_build_dir/locales/fi.pak",
325 "$root_build_dir/locales/fil.pak",
326 "$root_build_dir/locales/fr.pak",
327 "$root_build_dir/locales/he.pak",
328 "$root_build_dir/locales/hi.pak",
329 "$root_build_dir/locales/hr.pak",
330 "$root_build_dir/locales/hu.pak",
331 "$root_build_dir/locales/id.pak",
332 "$root_build_dir/locales/it.pak",
333 "$root_build_dir/locales/ja.pak",
334 "$root_build_dir/locales/ko.pak",
335 "$root_build_dir/locales/lt.pak",
336 "$root_build_dir/locales/lv.pak",
337 "$root_build_dir/locales/nb.pak",
338 "$root_build_dir/locales/nl.pak",
339 "$root_build_dir/locales/pl.pak",
340 "$root_build_dir/locales/pt-BR.pak",
341 "$root_build_dir/locales/pt-PT.pak",
342 "$root_build_dir/locales/ro.pak",
343 "$root_build_dir/locales/ru.pak",
344 "$root_build_dir/locales/sk.pak",
345 "$root_build_dir/locales/sl.pak",
346 "$root_build_dir/locales/sr.pak",
347 "$root_build_dir/locales/sv.pak",
348 "$root_build_dir/locales/sw.pak",
349 "$root_build_dir/locales/th.pak",
350 "$root_build_dir/locales/tr.pak",
351 "$root_build_dir/locales/uk.pak",
352 "$root_build_dir/locales/vi.pak",
353 "$root_build_dir/locales/zh-CN.pak",
354 "$root_build_dir/locales/zh-TW.pak",
355 "$root_build_dir/resources.pak",
358 "//chrome:packed_resources",
359 "//chrome:packed_extra_resources",
362 if (icu_use_data_file) {
363 sources += [ "$root_build_dir/icudtl.dat" ]
364 deps += [ "//third_party/icu:icudata" ]
366 if (v8_use_external_startup_data) {
368 "$root_build_dir/natives_blob.bin",
369 "$root_build_dir/snapshot_blob.bin",
375 chrome_shell_manifest =
376 "$target_gen_dir/chrome_shell_manifest/AndroidManifest.xml"
378 # GYP: //chrome/chrome_shell.gypi:chrome_shell_manifest
379 jinja_template("chrome_shell_manifest") {
381 input = "shell/java/AndroidManifest.xml.jinja2"
382 output = chrome_shell_manifest
385 # GYP: //chrome/chrome_shell.gypi:chrome_shell_apk
386 android_apk("chrome_shell_apk") {
390 ":chrome_shell_assets",
391 ":chrome_shell_java",
392 ":chrome_shell_manifest",
393 ":chrome_shell_resources",
396 apk_name = "ChromeShell"
397 android_manifest = chrome_shell_manifest
398 native_libs = [ "libchrome_shell.so" ]
399 native_lib_version_rule = "//build/util:chrome_version_json"
401 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_out_dir)
402 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)"
403 asset_location = chrome_shell_assets_dir
408 #['component != "shared_library" and target_arch != "arm64" and target_arch != "x64" and profiling_full_stack_frames != 1', {
409 ## Only enable the chromium linker on regular builds, since the
410 ## component build crashes on Android 4.4. See b/11379966
411 #'use_chromium_linker': '1',
417 chrome_sync_shell_manifest =
418 "$target_gen_dir/chrome_sync_shell_manifest/AndroidManifest.xml"
420 # GYP: //chrome/chrome_shell.gypi:chrome_sync_shell_manifest
421 jinja_template("chrome_sync_shell_manifest") {
423 input = "sync_shell/java/AndroidManifest.xml.jinja2"
424 output = chrome_sync_shell_manifest
427 # GYP: //chrome/chrome_shell.gypi:chrome_sync_shell_apk
428 android_apk("chrome_sync_shell_apk") {
431 ":chrome_shell_resources",
432 ":chrome_shell_java",
433 ":chrome_shell_assets",
434 ":chrome_sync_shell",
435 ":chrome_sync_shell_manifest",
438 apk_name = "ChromeSyncShell"
439 android_manifest = chrome_sync_shell_manifest
440 native_libs = [ "libchrome_sync_shell.so" ]
441 asset_location = chrome_shell_assets_dir
444 # GYP: part of //chrome/chrome_tests.gypi:chrome_shell_test_apk
445 android_library("chrome_javatests") {
447 DEPRECATED_java_in_dir = "javatests_shell/src"
450 ":chrome_java_resources",
451 ":chrome_shell_java",
452 ":chrome_shell_resources",
453 ":chrome_shell_test_java",
455 "//base:base_java_test_support",
456 "//chrome/test/android:chrome_java_test_support",
457 "//components/bookmarks/common/android:bookmarks_java",
458 "//components/dom_distiller/android:dom_distiller_core_java",
459 "//components/invalidation/impl:java",
460 "//components/navigation_interception/android:navigation_interception_java",
461 "//content/public/android:content_java",
462 "//content/public/test/android:content_java_test_support",
463 "//net/android:net_java_test_support",
464 "//sync/android:sync_java",
465 "//sync:sync_java_test_support",
466 "//third_party/android_protobuf:protobuf_nano_javalib",
467 "//third_party/android_tools:android_support_v13_java",
468 "//third_party/android_tools:android_support_v7_appcompat_java",
469 "//third_party/cacheinvalidation:cacheinvalidation_javalib",
470 "//third_party/cacheinvalidation:cacheinvalidation_proto_java",
471 "//third_party/jsr-305:jsr_305_javalib",
472 "//ui/android:ui_java",
476 android_library("chrome_shell_test_java") {
480 ":chrome_shell_java",
482 "//base:base_java_test_support",
483 "//chrome/test/android:chrome_java_test_support",
484 "//content/public/android:content_java",
485 "//content/public/test/android:content_java_test_support",
486 "//third_party/android_tools:android_support_v13_java",
487 "//third_party/android_tools:android_support_v7_appcompat_java",
488 "//ui/android:ui_java",
490 DEPRECATED_java_in_dir = "shell/javatests/src"
493 # GYP: //chrome/chrome_tests.gypi:chrome_shell_test_apk
494 instrumentation_test_apk("chrome_shell_test_apk") {
495 apk_under_test = ":chrome_shell_apk"
498 ":chrome_shell_test_java",
500 apk_name = "ChromeShellTest"
501 android_manifest = "shell/javatests/AndroidManifest.xml"
502 isolate_file = "../chrome_shell_test_apk.isolate"
505 # GYP: //chrome/chrome_tests.gypi:chrome_junit_tests
506 junit_binary("chrome_junit_tests") {
508 "junit/src/org/chromium/chrome/browser/childaccounts/ChildAccountServiceTest.java",
509 "junit/src/org/chromium/chrome/browser/externalauth/ExternalAuthUtilsTest.java",
510 "junit/src/org/chromium/chrome/browser/omaha/ResponseParserTest.java",
511 "junit/src/org/chromium/chrome/browser/media/remote/AbstractMediaRouteControllerTest.java",
512 "junit/src/org/chromium/chrome/browser/media/remote/MediaUrlResolverTest.java",
513 "junit/src/org/chromium/chrome/browser/media/remote/RemoteVideoInfoTest.java",
514 "junit/src/org/chromium/chrome/browser/media/remote/TransportControlTest.java",
519 "//base:base_java_test_support",
520 "//sync:sync_java_test_support",
521 "//sync/android:sync_java",
522 "//third_party/junit:hamcrest",
523 "//third_party/android_tools:android_support_v7_mediarouter_java",
527 # GYP: //chrome/chrome_tests.gypi:chrome_sync_shell_test_apk
529 # TODO(GYP): We need sync/sync_tests.gypi:test_support_sync_proto_java to be ported.
531 instrumentation_test_apk("chrome_sync_shell_test_apk") {
532 apk_under_test = ":chrome_sync_shell_apk"
535 ":chrome_shell_java",
536 ":chrome_shell_test_java",
538 "//base:base_java_test_support",
539 "//chrome/test/android:chrome_java_test_support",
540 "//components/invalidation/impl:java",
541 "//content/public/android:content_java",
542 "//content/public/test/android:content_java_test_support",
543 "//sync/android:sync_java",
544 "//sync:sync_java_test_support",
545 "//third_party/android_tools:android_support_v13_java",
546 "//third_party/android_tools:android_support_v7_appcompat_java",
547 "//ui/android:ui_java",
549 apk_name = "ChromeSyncShellTest"
550 DEPRECATED_java_in_dir = "sync_shell/javatests/src"
551 android_manifest = "sync_shell/javatests/AndroidManifest.xml"
555 # GYP: //chrome/chrome_tests.gypi:chrome_shell_uiautomator_tests_java
556 android_library("uiautomator_tests_java") {
558 DEPRECATED_java_in_dir = "uiautomator_tests/src"
560 "//base:base_java_test_support",
561 "//third_party/android_tools:uiautomator_java",
565 # GYP: //chrome/chrome_tests.gypi:chrome_shell_uiautomator_tests
566 uiautomator_test("uiautomator_tests") {
569 ":uiautomator_tests_java",
573 # GYP: //chrome/chrome_android.gypi:chrome_version_java
574 chrome_version_java_dir = "$root_gen_dir/templates/chrome_version_java"
575 chrome_version_java_file = "$chrome_version_java_dir/org/chromium/chrome/browser/ChromeVersionConstants.java"
576 process_version("chrome_version_java") {
577 template_file = "java/ChromeVersionConstants.java.version"
578 output = chrome_version_java_file
581 "CHANNEL=str.upper('$android_channel')",
585 zip("chrome_version_srcjar") {
587 chrome_version_java_file,
589 output = "$target_gen_dir/$target_name.srcjar"
590 base_dir = chrome_version_java_dir
592 ":chrome_version_java",
596 #GYP: //chrome/android/chrome_apk.gyp:custom_tabs_service_aidl
597 android_aidl("custom_tabs_service_aidl") {
598 import_include = "java/src/android/support/customtabs"
599 interface_file = "java/src/android/support/customtabs/common.aidl"
601 "java/src/android/support/customtabs/ICustomTabsCallback.aidl",
602 "java/src/android/support/customtabs/ICustomTabsService.aidl",
606 # GYP: //chrome/android/chrome_apk.gyp:chrome_shared_test_java
607 android_library("chrome_shared_test_java") {
609 DEPRECATED_java_in_dir = "javatests/src"
613 "//base:base_java_test_support",
614 "//chrome/android:chrome_java",
615 "//chrome/android:chrome_java_resources",
616 "//chrome/test/android:chrome_java_test_support",
617 "//components/bookmarks/common/android:bookmarks_java",
618 "//components/dom_distiller/android:dom_distiller_core_java",
619 "//components/invalidation/impl:java",
620 "//components/invalidation/impl:javatests",
621 "//components/navigation_interception/android:navigation_interception_java",
622 "//components/policy/android:policy_java",
623 "//components/precache/android:precache_java",
624 "//components/precache/android:precache_javatests",
625 "//components/web_contents_delegate_android:web_contents_delegate_android_java",
626 "//content/public/android:content_java",
627 "//content/public/test/android:content_java_test_support",
628 "//net/android:net_java",
629 "//net/android:net_java_test_support",
630 "//printing:printing_java",
631 "//sync/android:sync_java",
632 "//sync/android:sync_javatests",
633 "//sync:sync_java_test_support",
634 "//third_party/android_tools:android_support_v7_appcompat_java",
635 "//third_party/android_tools:android_support_v7_recyclerview_java",
636 "//third_party/android_tools:android_support_v13_java",
637 "//third_party/cacheinvalidation:cacheinvalidation_javalib",
638 "//third_party/jsr-305:jsr_305_javalib",
639 "//ui/android:ui_java",
640 "//ui/android:ui_javatests",
644 chrome_public_apk_assets_dir = "$root_build_dir/chrome_public_apk_assets"
646 copy_ex("chrome_public_apk_assets") {
648 dest = chrome_public_apk_assets_dir
649 sources = chrome_android_paks_gypi.chrome_android_pak_input_resources
650 if (icu_use_data_file) {
651 sources += [ "$root_build_dir/icudtl.dat" ]
654 "//chrome:packed_extra_resources",
655 "//chrome:packed_resources",
656 "//third_party/icu:icudata",
659 if (v8_use_external_startup_data) {
661 "$root_build_dir/natives_blob.bin",
662 "$root_build_dir/snapshot_blob.bin",
667 sources += [ "$root_build_dir/resources.pak" ]
670 # GYP: //chrome/android/chrome_apk.gyp:chrome_apk_manifest
671 jinja_template("chrome_public_apk_manifest") {
672 input = "java/AndroidManifest.xml"
673 output = "$root_gen_dir/chrome_public_apk_manifest/AndroidManifest.xml"
674 variables = jinja_variables
676 "min_sdk_version=16",
677 "target_sdk_version=22",
681 # GYP: //chrome/android/chrome_apk.gyp:chrome_public_template_resources
682 jinja_template_resources("chrome_public_template_resources") {
684 "java/res_template/xml/searchable.xml",
685 "java/res_template/xml/syncadapter.xml",
687 res_dir = "java/res_template"
688 variables = jinja_variables
691 # GYP: //chrome/android/chrome_apk.gyp:libchrome_public
692 shared_library("chrome_public") {
694 "//chrome:chrome_android_core",
696 gypi_values = exec_script(
697 "//build/gypi_to_gn.py",
699 rebase_path("chrome_apk.gyp"),
700 "--replace=<(chrome_native_sources_dir)=../browser/android/",
703 [ "chrome_apk.gyp" ])
704 sources = gypi_values.chrome_public_app_native_sources
707 #'target_conditions': [
708 #['component != "shared_library"', {
709 #'product_extension': '<(version_libchrome_short).so',
714 android_apk("chrome_public_apk") {
715 version_name = "Developer Build"
717 android_manifest = get_target_outputs(":chrome_public_apk_manifest")
718 android_manifest = android_manifest[1]
719 apk_name = "ChromePublic"
720 native_libs = [ "$root_build_dir/lib.stripped/libchrome_public.so" ]
721 native_lib_version_rule = "//build/util:chrome_version_json"
723 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_out_dir)
724 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)"
725 asset_location = chrome_public_apk_assets_dir
729 ":chrome_java_resources",
731 ":chrome_public_apk_assets",
732 ":chrome_public_apk_manifest",
733 ":chrome_public_template_resources",
735 "//third_party/android_tools:google_play_services_default_resources",
739 chrome_public_test_apk_manifest =
740 "$root_gen_dir/chrome_public_test_apk_manifest/AndroidManifest.xml"
742 # GYP: //chrome/android/chrome_apk.gyp:chrome_public_test_apk_manifest
743 jinja_template("chrome_public_test_apk_manifest") {
744 input = "javatests/AndroidManifest.xml"
745 output = chrome_public_test_apk_manifest
746 variables = jinja_variables
749 # GYP: //chrome/android/chrome_apk.gyp:chrome_public_test_apk
750 instrumentation_test_apk("chrome_public_test_apk") {
751 # TODO(GYP,cjhopman): Does this need version code/name?
752 apk_name = "ChromePublicTest"
753 apk_under_test = ":chrome_public_apk"
754 android_manifest = chrome_public_test_apk_manifest
756 ":chrome_public_test_apk_manifest",
757 "//chrome/android:chrome_shared_test_java",
759 isolate_file = "../chrome_public_test_apk.isolate"