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") |
11 import("//third_party/protobuf/proto_library.gni") | 11 import("//third_party/protobuf/proto_library.gni") |
12 import("channel.gni") | 12 import("channel.gni") |
13 | 13 |
14 manifest_package = "org.chromium.chrome" | 14 manifest_package = "org.chromium.chrome" |
15 if (enable_configuration_policy) { | 15 if (enable_configuration_policy) { |
16 configuration_policy = 1 | 16 configuration_policy = 1 |
17 } else { | 17 } else { |
18 configuration_policy = 0 | 18 configuration_policy = 0 |
19 } | 19 } |
20 | 20 |
21 jinja_variables = [ | 21 jinja_variables = [ |
22 "channel=$android_channel", | 22 "channel=$android_channel", |
23 "manifest_package=$manifest_package", | 23 "manifest_package=$manifest_package", |
24 "configuration_policy=$configuration_policy", | 24 "configuration_policy=$configuration_policy", |
25 ] | 25 ] |
26 | 26 |
| 27 chrome_android_paks_gypi = |
| 28 exec_script("//build/gypi_to_gn.py", |
| 29 [ |
| 30 rebase_path("//chrome/chrome_android_paks.gypi"), |
| 31 "--replace=<(PRODUCT_DIR)=$root_out_dir", |
| 32 ], |
| 33 "scope", |
| 34 [ "//chrome/chrome_android_paks.gypi" ]) |
| 35 |
| 36 locale_pak_resources("chrome_locale_paks") { |
| 37 sources = chrome_android_paks_gypi.chrome_android_pak_locale_resources |
| 38 } |
| 39 |
27 # GYP: //chrome/chrome.gyp:chrome_java (resources part) | 40 # GYP: //chrome/chrome.gyp:chrome_java (resources part) |
28 android_resources("chrome_java_resources") { | 41 android_resources("chrome_java_resources") { |
29 resource_dirs = [ "java/res" ] | 42 resource_dirs = [ "java/res" ] |
30 deps = [ | 43 deps = [ |
| 44 ":chrome_locale_paks", |
31 ":chrome_strings_grd", | 45 ":chrome_strings_grd", |
32 "//content/public/android:content_java_resources", | 46 "//content/public/android:content_java_resources", |
33 "//chrome/app:java_strings_grd", | 47 "//chrome/app:java_strings_grd", |
34 "//third_party/android_data_chart:android_data_chart_java_resources", | 48 "//third_party/android_data_chart:android_data_chart_java_resources", |
35 "//third_party/android_media:android_media_resources", | 49 "//third_party/android_media:android_media_resources", |
36 "//third_party/android_tools:android_support_v7_appcompat_resources", | 50 "//third_party/android_tools:android_support_v7_appcompat_resources", |
37 ] | 51 ] |
38 custom_package = "org.chromium.chrome" | 52 custom_package = "org.chromium.chrome" |
39 } | 53 } |
40 | 54 |
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 libs = [ | 722 libs = [ |
709 "android", | 723 "android", |
710 "jnigraphics", | 724 "jnigraphics", |
711 ] | 725 ] |
712 | 726 |
713 defines = [] | 727 defines = [] |
714 } | 728 } |
715 | 729 |
716 chrome_public_apk_assets_dir = "$root_build_dir/chrome_public_apk_assets" | 730 chrome_public_apk_assets_dir = "$root_build_dir/chrome_public_apk_assets" |
717 | 731 |
718 chrome_android_paks_gypi = | |
719 exec_script("//build/gypi_to_gn.py", | |
720 [ rebase_path("//chrome/chrome_android_paks.gypi") ], | |
721 "scope", | |
722 [ "//chrome/chrome_android_paks.gypi" ]) | |
723 | |
724 copy_ex("chrome_public_apk_assets") { | 732 copy_ex("chrome_public_apk_assets") { |
725 clear_dir = true | 733 clear_dir = true |
726 dest = chrome_public_apk_assets_dir | 734 dest = chrome_public_apk_assets_dir |
727 gypi_sources = chrome_android_paks_gypi.chrome_android_pak_input_resources | 735 sources = chrome_android_paks_gypi.chrome_android_pak_input_resources |
728 cleaned_sources = rebase_path(gypi_sources, "<(PRODUCT_DIR)") | |
729 sources = rebase_path(cleaned_sources, ".", root_out_dir) | |
730 if (icu_use_data_file) { | 736 if (icu_use_data_file) { |
731 sources += [ "$root_build_dir/icudtl.dat" ] | 737 sources += [ "$root_build_dir/icudtl.dat" ] |
732 } | 738 } |
733 deps = [ | 739 deps = [ |
734 "//chrome:packed_extra_resources", | 740 "//chrome:packed_extra_resources", |
735 "//chrome:packed_resources", | 741 "//chrome:packed_resources", |
736 "//third_party/icu:icudata", | 742 "//third_party/icu:icudata", |
737 ] | 743 ] |
738 | 744 |
739 if (v8_use_external_startup_data) { | 745 if (v8_use_external_startup_data) { |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 apk_name = "ChromePublicTest" | 836 apk_name = "ChromePublicTest" |
831 apk_under_test = ":chrome_public_apk" | 837 apk_under_test = ":chrome_public_apk" |
832 android_manifest = chrome_public_test_apk_manifest | 838 android_manifest = chrome_public_test_apk_manifest |
833 deps = [ | 839 deps = [ |
834 ":chrome_public_test_apk_manifest", | 840 ":chrome_public_test_apk_manifest", |
835 "//chrome/test/android:chrome_staging_test_support_java", | 841 "//chrome/test/android:chrome_staging_test_support_java", |
836 "//chrome/android:chrome_staging_test_java", | 842 "//chrome/android:chrome_staging_test_java", |
837 ] | 843 ] |
838 isolate_file = "../chrome_public_test_apk.isolate" | 844 isolate_file = "../chrome_public_test_apk.isolate" |
839 } | 845 } |
OLD | NEW |