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/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
7 import("//build_overrides/v8.gni") | 7 import("//build_overrides/v8.gni") |
8 import("//chrome/android/chrome_public_apk_tmpl.gni") | 8 import("//chrome/android/chrome_public_apk_tmpl.gni") |
9 import("//chrome/common/features.gni") | 9 import("//chrome/common/features.gni") |
10 import("//chrome/version.gni") | 10 import("//chrome/version.gni") |
11 import("//testing/test.gni") | 11 import("//testing/test.gni") |
12 import("//third_party/icu/config.gni") | 12 import("//third_party/icu/config.gni") |
13 import("//third_party/protobuf/proto_library.gni") | 13 import("//third_party/protobuf/proto_library.gni") |
14 import("channel.gni") | 14 import("channel.gni") |
15 import("java_sources.gni") | |
15 | 16 |
16 manifest_package = "org.chromium.chrome" | 17 manifest_package = "org.chromium.chrome" |
17 | 18 |
18 chrome_public_jinja_variables = default_chrome_public_jinja_variables + | 19 chrome_public_jinja_variables = default_chrome_public_jinja_variables + |
19 [ "manifest_package=$manifest_package" ] | 20 [ "manifest_package=$manifest_package" ] |
20 | 21 |
21 chrome_sync_shell_jinja_variables = | 22 chrome_sync_shell_jinja_variables = |
22 default_chrome_public_jinja_variables + | 23 default_chrome_public_jinja_variables + |
23 [ "manifest_package=org.chromium.chrome.sync_shell" ] | 24 [ "manifest_package=org.chromium.chrome.sync_shell" ] |
24 | 25 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
160 "//chrome:data_use_ui_message_enum_javagen", | 161 "//chrome:data_use_ui_message_enum_javagen", |
161 "//chrome:signin_metrics_enum_javagen", | 162 "//chrome:signin_metrics_enum_javagen", |
162 ] | 163 ] |
163 | 164 |
164 # New versions of BuildConfig.java will be created when creating an apk. | 165 # New versions of BuildConfig.java will be created when creating an apk. |
165 jar_excluded_patterns = [ "*/BuildConfig.class" ] | 166 jar_excluded_patterns = [ "*/BuildConfig.class" ] |
166 | 167 |
167 # TODO(sievers): Split java code into components. Not everything | 168 # TODO(sievers): Split java code into components. Not everything |
168 # is really all that UI related here. | 169 # is really all that UI related here. |
169 if (android_java_ui) { | 170 if (android_java_ui) { |
170 DEPRECATED_java_in_dir = "java/src" | 171 # From java_sources.gni. |
172 java_files = chrome_java_sources | |
171 | 173 |
172 srcjar_deps += [ | 174 srcjar_deps += [ |
173 ":custom_tabs_service_aidl", | 175 ":custom_tabs_service_aidl", |
174 "//chrome:page_info_connection_type_javagen", | 176 "//chrome:page_info_connection_type_javagen", |
175 "//chrome:website_settings_action_javagen", | 177 "//chrome:website_settings_action_javagen", |
176 "//components/infobars/core:infobar_enums_java", | 178 "//components/infobars/core:infobar_enums_java", |
177 "//components/offline_pages:offline_page_feature_enums_java", | 179 "//components/offline_pages:offline_page_feature_enums_java", |
178 "//components/offline_pages:offline_page_model_enums_java", | 180 "//components/offline_pages:offline_page_model_enums_java", |
179 "//components/omnibox/browser:autocomplete_match_javagen", | 181 "//components/omnibox/browser:autocomplete_match_javagen", |
180 "//components/omnibox/browser:autocomplete_match_type_javagen", | 182 "//components/omnibox/browser:autocomplete_match_type_javagen", |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
335 interface_file = "java/src/android/support/customtabs/common.aidl" | 337 interface_file = "java/src/android/support/customtabs/common.aidl" |
336 sources = [ | 338 sources = [ |
337 "java/src/android/support/customtabs/ICustomTabsCallback.aidl", | 339 "java/src/android/support/customtabs/ICustomTabsCallback.aidl", |
338 "java/src/android/support/customtabs/ICustomTabsService.aidl", | 340 "java/src/android/support/customtabs/ICustomTabsService.aidl", |
339 ] | 341 ] |
340 } | 342 } |
341 | 343 |
342 # GYP: //chrome/android/chrome_apk.gyp:chrome_shared_test_java | 344 # GYP: //chrome/android/chrome_apk.gyp:chrome_shared_test_java |
343 android_library("chrome_shared_test_java") { | 345 android_library("chrome_shared_test_java") { |
344 testonly = true | 346 testonly = true |
345 DEPRECATED_java_in_dir = "javatests/src" | 347 |
348 # From java_sources.gni. | |
349 java_files = chrome_shared_test_java_sources | |
346 | 350 |
347 deps = [ | 351 deps = [ |
348 "//base:base_java", | 352 "//base:base_java", |
349 "//base:base_java_test_support", | 353 "//base:base_java_test_support", |
350 "//chrome/android:chrome_java", | 354 "//chrome/android:chrome_java", |
351 "//chrome/android:chrome_java_resources", | 355 "//chrome/android:chrome_java_resources", |
352 "//chrome/test/android:chrome_java_test_support", | 356 "//chrome/test/android:chrome_java_test_support", |
353 "//components/bookmarks/common/android:bookmarks_java", | 357 "//components/bookmarks/common/android:bookmarks_java", |
354 "//components/dom_distiller/android:dom_distiller_core_java", | 358 "//components/dom_distiller/android:dom_distiller_core_java", |
355 "//components/gcm_driver/android:gcm_driver_java", | 359 "//components/gcm_driver/android:gcm_driver_java", |
(...skipping 16 matching lines...) Expand all Loading... | |
372 "//third_party/android_tools:android_support_v13_java", | 376 "//third_party/android_tools:android_support_v13_java", |
373 "//third_party/android_tools:android_support_v7_appcompat_java", | 377 "//third_party/android_tools:android_support_v7_appcompat_java", |
374 "//third_party/android_tools:android_support_v7_recyclerview_java", | 378 "//third_party/android_tools:android_support_v7_recyclerview_java", |
375 "//third_party/android_tools:legacy_http_javalib", | 379 "//third_party/android_tools:legacy_http_javalib", |
376 "//third_party/cacheinvalidation:cacheinvalidation_javalib", | 380 "//third_party/cacheinvalidation:cacheinvalidation_javalib", |
377 "//third_party/jsr-305:jsr_305_javalib", | 381 "//third_party/jsr-305:jsr_305_javalib", |
378 "//ui/android:ui_java", | 382 "//ui/android:ui_java", |
379 "//ui/android:ui_javatests", | 383 "//ui/android:ui_javatests", |
380 google_play_services_library, | 384 google_play_services_library, |
381 ] | 385 ] |
386 | |
387 # From java_sources.gni. | |
pkotwicz
2016/03/23 18:15:23
Why is the comment here?
agrieve
2016/03/23 18:27:13
Done.
| |
382 } | 388 } |
383 | 389 |
384 # Overrides icon / name defined in chrome_java_resources. | 390 # Overrides icon / name defined in chrome_java_resources. |
385 android_resources("chrome_public_apk_resources") { | 391 android_resources("chrome_public_apk_resources") { |
386 resource_dirs = [ "java/res_chromium" ] | 392 resource_dirs = [ "java/res_chromium" ] |
387 | 393 |
388 # Dep needed to ensure override works properly. | 394 # Dep needed to ensure override works properly. |
389 deps = [ | 395 deps = [ |
390 ":chrome_java_resources", | 396 ":chrome_java_resources", |
391 ] | 397 ] |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
548 additional_apks = [ | 554 additional_apks = [ |
549 "//chrome/test/android/chrome_public_test_support:chrome_public_test_support _apk", | 555 "//chrome/test/android/chrome_public_test_support:chrome_public_test_support _apk", |
550 "//net/android:net_test_support_apk", | 556 "//net/android:net_test_support_apk", |
551 ] | 557 ] |
552 isolate_file = "../chrome_public_test_apk.isolate" | 558 isolate_file = "../chrome_public_test_apk.isolate" |
553 proguard_enabled = !is_debug | 559 proguard_enabled = !is_debug |
554 } | 560 } |
555 | 561 |
556 android_library("chrome_sync_shell_test_apk_java") { | 562 android_library("chrome_sync_shell_test_apk_java") { |
557 testonly = true | 563 testonly = true |
558 DEPRECATED_java_in_dir = "sync_shell/javatests/src" | 564 java_files = [ |
565 "sync_shell/javatests/src/org/chromium/chrome/browser/sync/AutofillTest.java ", | |
566 "sync_shell/javatests/src/org/chromium/chrome/browser/sync/BookmarksTest.jav a", | |
567 "sync_shell/javatests/src/org/chromium/chrome/browser/sync/FakeServerHelper. java", | |
568 "sync_shell/javatests/src/org/chromium/chrome/browser/sync/FirstRunTest.java ", | |
569 "sync_shell/javatests/src/org/chromium/chrome/browser/sync/GmsCoreSyncListen erTest.java", | |
570 "sync_shell/javatests/src/org/chromium/chrome/browser/sync/OpenTabsTest.java ", | |
571 "sync_shell/javatests/src/org/chromium/chrome/browser/sync/SyncCustomization FragmentTest.java", | |
572 "sync_shell/javatests/src/org/chromium/chrome/browser/sync/SyncTest.java", | |
573 "sync_shell/javatests/src/org/chromium/chrome/browser/sync/SyncTestBase.java ", | |
574 "sync_shell/javatests/src/org/chromium/chrome/browser/sync/TypedUrlsTest.jav a", | |
575 "sync_shell/javatests/src/org/chromium/chrome/browser/sync/ui/PassphraseType DialogFragmentTest.java", | |
576 ] | |
559 | 577 |
560 deps = [ | 578 deps = [ |
561 "//base:base_java", | 579 "//base:base_java", |
562 "//base:base_java_test_support", | 580 "//base:base_java_test_support", |
563 "//chrome/android:chrome_java", | 581 "//chrome/android:chrome_java", |
564 "//chrome/android:chrome_java_resources", | 582 "//chrome/android:chrome_java_resources", |
565 "//chrome/test/android:chrome_java_test_support", | 583 "//chrome/test/android:chrome_java_test_support", |
566 "//components/bookmarks/common/android:bookmarks_java", | 584 "//components/bookmarks/common/android:bookmarks_java", |
567 "//components/policy/android:policy_java", | 585 "//components/policy/android:policy_java", |
568 "//content/public/android:content_java", | 586 "//content/public/android:content_java", |
(...skipping 13 matching lines...) Expand all Loading... | |
582 apk_name = "ChromeSyncShellTest" | 600 apk_name = "ChromeSyncShellTest" |
583 apk_under_test = ":chrome_sync_shell_apk" | 601 apk_under_test = ":chrome_sync_shell_apk" |
584 android_manifest = chrome_sync_shell_test_apk_manifest | 602 android_manifest = chrome_sync_shell_test_apk_manifest |
585 deps = [ | 603 deps = [ |
586 ":chrome_sync_shell_test_apk_java", | 604 ":chrome_sync_shell_test_apk_java", |
587 ":chrome_sync_shell_test_apk_manifest", | 605 ":chrome_sync_shell_test_apk_manifest", |
588 ] | 606 ] |
589 isolate_file = "../chrome_sync_shell_test_apk.isolate" | 607 isolate_file = "../chrome_sync_shell_test_apk.isolate" |
590 proguard_enabled = !is_debug | 608 proguard_enabled = !is_debug |
591 } | 609 } |
OLD | NEW |