| 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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 "//sync:sync_java_test_support", | 664 "//sync:sync_java_test_support", |
| 665 "//third_party/android_tools:android_support_v7_appcompat_java", | 665 "//third_party/android_tools:android_support_v7_appcompat_java", |
| 666 "//third_party/android_tools:android_support_v7_recyclerview_java", | 666 "//third_party/android_tools:android_support_v7_recyclerview_java", |
| 667 "//third_party/android_tools:android_support_v13_java", | 667 "//third_party/android_tools:android_support_v13_java", |
| 668 "//third_party/cacheinvalidation:cacheinvalidation_javalib", | 668 "//third_party/cacheinvalidation:cacheinvalidation_javalib", |
| 669 "//third_party/jsr-305:jsr_305_javalib", | 669 "//third_party/jsr-305:jsr_305_javalib", |
| 670 "//ui/android:ui_java", | 670 "//ui/android:ui_java", |
| 671 ] | 671 ] |
| 672 } | 672 } |
| 673 | 673 |
| 674 # GYP: //chrome/android/chrome_apk.gyp:staging_jni_headers | 674 # TODO(newt): delete this once all references are gone. |
| 675 generate_jni("staging_jni_headers") { | 675 group("chrome_staging") { |
| 676 jni_package = "staging/android" | |
| 677 gypi_values = exec_script("//build/gypi_to_gn.py", | |
| 678 [ | |
| 679 rebase_path("chrome_apk.gyp"), | |
| 680 "--replace=<(chrome_java_dir)=java_staging", | |
| 681 ], | |
| 682 "scope", | |
| 683 [ "chrome_apk.gyp" ]) | |
| 684 sources = gypi_values.chrome_staging_jni_files | |
| 685 } | |
| 686 | |
| 687 # GYP: //chrome/android/chrome_apk.gyp:libchrome_staging | |
| 688 static_library("chrome_staging") { | |
| 689 deps = [ | |
| 690 ":staging_jni_headers", | |
| 691 "//chrome/browser", | |
| 692 "//chrome:strings", | |
| 693 "//components/enhanced_bookmarks", | |
| 694 "//components/metrics/proto", | |
| 695 "//third_party/leveldatabase", | |
| 696 ] | |
| 697 | |
| 698 gypi_values = exec_script( | |
| 699 "//build/gypi_to_gn.py", | |
| 700 [ | |
| 701 rebase_path("chrome_apk.gyp"), | |
| 702 "--replace=<(chrome_native_sources_dir)=../browser/android/", | |
| 703 ], | |
| 704 "scope", | |
| 705 [ "chrome_apk.gyp" ]) | |
| 706 sources = gypi_values.chrome_staging_native_sources | |
| 707 | |
| 708 if (safe_browsing_mode != 0) { | |
| 709 sources += [ | |
| 710 "../browser/android/spdy_proxy_resource_throttle.cc", | |
| 711 "../browser/android/spdy_proxy_resource_throttle.h", | |
| 712 ] | |
| 713 } | |
| 714 | |
| 715 libs = [ | |
| 716 "android", | |
| 717 "jnigraphics", | |
| 718 ] | |
| 719 | |
| 720 defines = [] | |
| 721 } | 676 } |
| 722 | 677 |
| 723 chrome_public_apk_assets_dir = "$root_build_dir/chrome_public_apk_assets" | 678 chrome_public_apk_assets_dir = "$root_build_dir/chrome_public_apk_assets" |
| 724 | 679 |
| 725 copy_ex("chrome_public_apk_assets") { | 680 copy_ex("chrome_public_apk_assets") { |
| 726 clear_dir = true | 681 clear_dir = true |
| 727 dest = chrome_public_apk_assets_dir | 682 dest = chrome_public_apk_assets_dir |
| 728 sources = chrome_android_paks_gypi.chrome_android_pak_input_resources | 683 sources = chrome_android_paks_gypi.chrome_android_pak_input_resources |
| 729 if (icu_use_data_file) { | 684 if (icu_use_data_file) { |
| 730 sources += [ "$root_build_dir/icudtl.dat" ] | 685 sources += [ "$root_build_dir/icudtl.dat" ] |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 "java/res_template/xml/searchable.xml", | 718 "java/res_template/xml/searchable.xml", |
| 764 "java/res_template/xml/syncadapter.xml", | 719 "java/res_template/xml/syncadapter.xml", |
| 765 ] | 720 ] |
| 766 res_dir = "java/res_template" | 721 res_dir = "java/res_template" |
| 767 variables = jinja_variables | 722 variables = jinja_variables |
| 768 } | 723 } |
| 769 | 724 |
| 770 # GYP: //chrome/android/chrome_apk.gyp:libchrome_public | 725 # GYP: //chrome/android/chrome_apk.gyp:libchrome_public |
| 771 shared_library("chrome_public") { | 726 shared_library("chrome_public") { |
| 772 deps = [ | 727 deps = [ |
| 773 "//chrome/android:chrome_staging", | |
| 774 "//chrome:chrome_android_core", | 728 "//chrome:chrome_android_core", |
| 775 ] | 729 ] |
| 776 gypi_values = exec_script( | 730 gypi_values = exec_script( |
| 777 "//build/gypi_to_gn.py", | 731 "//build/gypi_to_gn.py", |
| 778 [ | 732 [ |
| 779 rebase_path("chrome_apk.gyp"), | 733 rebase_path("chrome_apk.gyp"), |
| 780 "--replace=<(chrome_native_sources_dir)=../browser/android/", | 734 "--replace=<(chrome_native_sources_dir)=../browser/android/", |
| 781 ], | 735 ], |
| 782 "scope", | 736 "scope", |
| 783 [ "chrome_apk.gyp" ]) | 737 [ "chrome_apk.gyp" ]) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 apk_name = "ChromePublicTest" | 783 apk_name = "ChromePublicTest" |
| 830 apk_under_test = ":chrome_public_apk" | 784 apk_under_test = ":chrome_public_apk" |
| 831 android_manifest = chrome_public_test_apk_manifest | 785 android_manifest = chrome_public_test_apk_manifest |
| 832 deps = [ | 786 deps = [ |
| 833 ":chrome_public_test_apk_manifest", | 787 ":chrome_public_test_apk_manifest", |
| 834 "//chrome/test/android:chrome_staging_test_support_java", | 788 "//chrome/test/android:chrome_staging_test_support_java", |
| 835 "//chrome/android:chrome_staging_test_java", | 789 "//chrome/android:chrome_staging_test_java", |
| 836 ] | 790 ] |
| 837 isolate_file = "../chrome_public_test_apk.isolate" | 791 isolate_file = "../chrome_public_test_apk.isolate" |
| 838 } | 792 } |
| OLD | NEW |