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 [ rebase_path("//chrome/chrome_android_paks.gypi") ], | |
cjhopman
2015/06/09 22:35:13
Can this just add an arg like:
"--replace=<(PRODU
agrieve
2015/06/11 15:34:38
Much nicer!
| |
30 "scope", | |
31 [ "//chrome/chrome_android_paks.gypi" ]) | |
32 | |
33 locale_pak_resources("chrome_locale_paks") { | |
34 _gypi_sources = chrome_android_paks_gypi.chrome_android_pak_locale_resources | |
35 _cleaned_sources = rebase_path(_gypi_sources, "<(PRODUCT_DIR)") | |
36 sources = rebase_path(_cleaned_sources, ".", root_out_dir) | |
37 } | |
38 | |
27 # GYP: //chrome/chrome.gyp:chrome_java (resources part) | 39 # GYP: //chrome/chrome.gyp:chrome_java (resources part) |
28 android_resources("chrome_java_resources") { | 40 android_resources("chrome_java_resources") { |
29 resource_dirs = [ "java/res" ] | 41 resource_dirs = [ "java/res" ] |
30 deps = [ | 42 deps = [ |
43 ":chrome_locale_paks", | |
31 ":chrome_strings_grd", | 44 ":chrome_strings_grd", |
32 "//content/public/android:content_java_resources", | 45 "//content/public/android:content_java_resources", |
33 "//chrome/app:java_strings_grd", | 46 "//chrome/app:java_strings_grd", |
34 "//third_party/android_data_chart:android_data_chart_java_resources", | 47 "//third_party/android_data_chart:android_data_chart_java_resources", |
35 "//third_party/android_media:android_media_resources", | 48 "//third_party/android_media:android_media_resources", |
36 "//third_party/android_tools:android_support_v7_appcompat_resources", | 49 "//third_party/android_tools:android_support_v7_appcompat_resources", |
37 ] | 50 ] |
38 custom_package = "org.chromium.chrome" | 51 custom_package = "org.chromium.chrome" |
39 } | 52 } |
40 | 53 |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
707 libs = [ | 720 libs = [ |
708 "android", | 721 "android", |
709 "jnigraphics", | 722 "jnigraphics", |
710 ] | 723 ] |
711 | 724 |
712 defines = [] | 725 defines = [] |
713 } | 726 } |
714 | 727 |
715 chrome_public_apk_assets_dir = "$root_build_dir/chrome_public_apk_assets" | 728 chrome_public_apk_assets_dir = "$root_build_dir/chrome_public_apk_assets" |
716 | 729 |
717 chrome_android_paks_gypi = | |
718 exec_script("//build/gypi_to_gn.py", | |
719 [ rebase_path("//chrome/chrome_android_paks.gypi") ], | |
720 "scope", | |
721 [ "//chrome/chrome_android_paks.gypi" ]) | |
722 | |
723 copy_ex("chrome_public_apk_assets") { | 730 copy_ex("chrome_public_apk_assets") { |
724 clear_dir = true | 731 clear_dir = true |
725 dest = chrome_public_apk_assets_dir | 732 dest = chrome_public_apk_assets_dir |
726 gypi_sources = chrome_android_paks_gypi.chrome_android_pak_input_resources | 733 gypi_sources = chrome_android_paks_gypi.chrome_android_pak_input_resources |
727 cleaned_sources = rebase_path(gypi_sources, "<(PRODUCT_DIR)") | 734 cleaned_sources = rebase_path(gypi_sources, "<(PRODUCT_DIR)") |
728 sources = rebase_path(cleaned_sources, ".", root_out_dir) | 735 sources = rebase_path(cleaned_sources, ".", root_out_dir) |
729 if (icu_use_data_file) { | 736 if (icu_use_data_file) { |
730 sources += [ "$root_build_dir/icudtl.dat" ] | 737 sources += [ "$root_build_dir/icudtl.dat" ] |
731 } | 738 } |
732 deps = [ | 739 deps = [ |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
825 apk_name = "ChromePublicTest" | 832 apk_name = "ChromePublicTest" |
826 apk_under_test = ":chrome_public_apk" | 833 apk_under_test = ":chrome_public_apk" |
827 android_manifest = chrome_public_test_apk_manifest | 834 android_manifest = chrome_public_test_apk_manifest |
828 deps = [ | 835 deps = [ |
829 ":chrome_public_test_apk_manifest", | 836 ":chrome_public_test_apk_manifest", |
830 "//chrome/test/android:chrome_staging_test_support_java", | 837 "//chrome/test/android:chrome_staging_test_support_java", |
831 "//chrome/android:chrome_staging_test_java", | 838 "//chrome/android:chrome_staging_test_java", |
832 ] | 839 ] |
833 isolate_file = "../chrome_public_test_apk.isolate" | 840 isolate_file = "../chrome_public_test_apk.isolate" |
834 } | 841 } |
OLD | NEW |