| 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/module_args/v8.gni") | 7 import("//build/module_args/v8.gni") |
| 8 import("//chrome/version.gni") | 8 import("//chrome/version.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 import("//third_party/icu/config.gni") | 10 import("//third_party/icu/config.gni") |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 locale_pak_resources("chrome_locale_paks") { | 36 locale_pak_resources("chrome_locale_paks") { |
| 37 sources = chrome_android_paks_gypi.chrome_android_pak_locale_resources | 37 sources = chrome_android_paks_gypi.chrome_android_pak_locale_resources |
| 38 | 38 |
| 39 deps = [ | 39 deps = [ |
| 40 "//chrome:packed_resources", | 40 "//chrome:packed_resources", |
| 41 ] | 41 ] |
| 42 } | 42 } |
| 43 | 43 |
| 44 # GYP: //chrome/chrome.gyp:chrome_java (resources part) | 44 # GYP: //chrome/chrome.gyp:chrome_java (resources part) |
| 45 android_resources("chrome_java_resources") { | 45 android_resources("chrome_java_resources") { |
| 46 if (!defined(android_branding_res_dirs)) { | 46 resource_dirs = [ |
| 47 android_branding_res_dirs = [ "//chrome/android/java/res_chromium" ] | 47 "java/res", |
| 48 } | 48 "//chrome/android/java/res_chromium", |
| 49 resource_dirs = [ "java/res" ] + android_branding_res_dirs | 49 ] |
| 50 deps = [ | 50 deps = [ |
| 51 ":chrome_locale_paks", | 51 ":chrome_locale_paks", |
| 52 ":chrome_strings_grd", | 52 ":chrome_strings_grd", |
| 53 "//components/policy:app_restrictions_resources", | 53 "//components/policy:app_restrictions_resources", |
| 54 "//content/public/android:content_java_resources", | 54 "//content/public/android:content_java_resources", |
| 55 "//chrome/app:java_strings_grd", | 55 "//chrome/app:java_strings_grd", |
| 56 "//third_party/android_data_chart:android_data_chart_java_resources", | 56 "//third_party/android_data_chart:android_data_chart_java_resources", |
| 57 "//third_party/android_media:android_media_resources", | 57 "//third_party/android_media:android_media_resources", |
| 58 ] | 58 ] |
| 59 if (!enable_configuration_policy) { | 59 if (!enable_configuration_policy) { |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 "//third_party/android_tools:android_support_v7_recyclerview_java", | 327 "//third_party/android_tools:android_support_v7_recyclerview_java", |
| 328 "//third_party/android_tools:android_support_v13_java", | 328 "//third_party/android_tools:android_support_v13_java", |
| 329 "//third_party/android_tools:legacy_http_javalib", | 329 "//third_party/android_tools:legacy_http_javalib", |
| 330 "//third_party/cacheinvalidation:cacheinvalidation_javalib", | 330 "//third_party/cacheinvalidation:cacheinvalidation_javalib", |
| 331 "//third_party/jsr-305:jsr_305_javalib", | 331 "//third_party/jsr-305:jsr_305_javalib", |
| 332 "//ui/android:ui_java", | 332 "//ui/android:ui_java", |
| 333 "//ui/android:ui_javatests", | 333 "//ui/android:ui_javatests", |
| 334 ] | 334 ] |
| 335 } | 335 } |
| 336 | 336 |
| 337 # Overrides icon / name defined in chrome_java_resources. |
| 337 android_resources("chrome_public_apk_resources") { | 338 android_resources("chrome_public_apk_resources") { |
| 338 resource_dirs = [ "java/res_chromium" ] | 339 resource_dirs = [ "java/res_chromium" ] |
| 339 custom_package = "org.chromium.chrome" | 340 |
| 341 # Dep needed to ensure override works properly. |
| 342 deps = [ |
| 343 ":chrome_java_resources", |
| 344 ] |
| 340 } | 345 } |
| 341 | 346 |
| 342 chrome_public_apk_assets_dir = "$root_build_dir/chrome_public_apk_assets" | 347 chrome_public_apk_assets_dir = "$root_build_dir/chrome_public_apk_assets" |
| 343 | 348 |
| 344 copy_ex("chrome_public_apk_assets") { | 349 copy_ex("chrome_public_apk_assets") { |
| 345 clear_dir = true | 350 clear_dir = true |
| 346 dest = chrome_public_apk_assets_dir | 351 dest = chrome_public_apk_assets_dir |
| 347 sources = chrome_android_paks_gypi.chrome_android_pak_input_resources | 352 sources = chrome_android_paks_gypi.chrome_android_pak_input_resources |
| 348 if (icu_use_data_file) { | 353 if (icu_use_data_file) { |
| 349 sources += [ "$root_build_dir/icudtl.dat" ] | 354 sources += [ "$root_build_dir/icudtl.dat" ] |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 apk_name = "ChromePublic" | 423 apk_name = "ChromePublic" |
| 419 native_libs = [ "$root_build_dir/lib.stripped/libchrome_public.so" ] | 424 native_libs = [ "$root_build_dir/lib.stripped/libchrome_public.so" ] |
| 420 native_lib_version_rule = "//build/util:chrome_version_json" | 425 native_lib_version_rule = "//build/util:chrome_version_json" |
| 421 _native_lib_file = | 426 _native_lib_file = |
| 422 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_out_dir) | 427 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_out_dir) |
| 423 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)" | 428 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)" |
| 424 asset_location = chrome_public_apk_assets_dir | 429 asset_location = chrome_public_apk_assets_dir |
| 425 | 430 |
| 426 deps = [ | 431 deps = [ |
| 427 ":chrome_java", | 432 ":chrome_java", |
| 428 ":chrome_java_resources", | |
| 429 ":chrome_public", | 433 ":chrome_public", |
| 430 ":chrome_public_apk_assets", | 434 ":chrome_public_apk_assets", |
| 431 ":chrome_public_apk_manifest", | 435 ":chrome_public_apk_manifest", |
| 432 ":chrome_public_apk_resources", | 436 ":chrome_public_apk_resources", |
| 433 ":chrome_public_template_resources", | 437 ":chrome_public_template_resources", |
| 434 "//base:base_java", | 438 "//base:base_java", |
| 435 google_play_services_resources, | 439 google_play_services_resources, |
| 436 ] | 440 ] |
| 437 } | 441 } |
| 438 | 442 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 451 # TODO(GYP,cjhopman): Does this need version code/name? | 455 # TODO(GYP,cjhopman): Does this need version code/name? |
| 452 apk_name = "ChromePublicTest" | 456 apk_name = "ChromePublicTest" |
| 453 apk_under_test = ":chrome_public_apk" | 457 apk_under_test = ":chrome_public_apk" |
| 454 android_manifest = chrome_public_test_apk_manifest | 458 android_manifest = chrome_public_test_apk_manifest |
| 455 deps = [ | 459 deps = [ |
| 456 ":chrome_public_test_apk_manifest", | 460 ":chrome_public_test_apk_manifest", |
| 457 "//chrome/android:chrome_shared_test_java", | 461 "//chrome/android:chrome_shared_test_java", |
| 458 ] | 462 ] |
| 459 isolate_file = "../chrome_public_test_apk.isolate" | 463 isolate_file = "../chrome_public_test_apk.isolate" |
| 460 } | 464 } |
| OLD | NEW |