| 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 # Do not add any imports to non-//build directories here. | 5 # Do not add any imports to non-//build directories here. |
| 6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. | 6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. |
| 7 import("//build/config/android/config.gni") | 7 import("//build/config/android/config.gni") |
| 8 import("//build/config/android/internal_rules.gni") | 8 import("//build/config/android/internal_rules.gni") |
| 9 import("//build/config/compiler/compiler.gni") | 9 import("//build/config/compiler/compiler.gni") |
| 10 import("//build/config/dcheck_always_on.gni") | 10 import("//build/config/dcheck_always_on.gni") |
| (...skipping 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1718 resources_zip = resources_zip_path | 1718 resources_zip = resources_zip_path |
| 1719 build_config = _build_config | 1719 build_config = _build_config |
| 1720 android_manifest = _android_manifest | 1720 android_manifest = _android_manifest |
| 1721 | 1721 |
| 1722 if (defined(_java_sources_file)) { | 1722 if (defined(_java_sources_file)) { |
| 1723 java_sources_file = _java_sources_file | 1723 java_sources_file = _java_sources_file |
| 1724 } | 1724 } |
| 1725 | 1725 |
| 1726 deps = _android_manifest_deps | 1726 deps = _android_manifest_deps |
| 1727 | 1727 |
| 1728 possible_config_deps = [] |
| 1728 if (defined(invoker.deps)) { | 1729 if (defined(invoker.deps)) { |
| 1729 possible_config_deps = invoker.deps | 1730 possible_config_deps += invoker.deps |
| 1730 } | 1731 } |
| 1731 | 1732 |
| 1732 # Added emma to the target's classpath via its .build_config. | 1733 # Added emma to the target's classpath via its .build_config. |
| 1733 if (emma_coverage && !_emma_never_instrument) { | 1734 if (emma_coverage && !_emma_never_instrument) { |
| 1734 possible_config_deps += | 1735 possible_config_deps += |
| 1735 [ "//third_party/android_tools:emma_device_java" ] | 1736 [ "//third_party/android_tools:emma_device_java" ] |
| 1736 } | 1737 } |
| 1737 | 1738 |
| 1738 proguard_enabled = _proguard_enabled | 1739 proguard_enabled = _proguard_enabled |
| 1739 if (_proguard_enabled) { | 1740 if (_proguard_enabled) { |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1855 java_cpp_template("${_template_name}__build_config_java") { | 1856 java_cpp_template("${_template_name}__build_config_java") { |
| 1856 package_path = "org/chromium/base" | 1857 package_path = "org/chromium/base" |
| 1857 sources = [ | 1858 sources = [ |
| 1858 "//base/android/java/templates/BuildConfig.template", | 1859 "//base/android/java/templates/BuildConfig.template", |
| 1859 ] | 1860 ] |
| 1860 deps = [ | 1861 deps = [ |
| 1861 ":$build_config_target", | 1862 ":$build_config_target", |
| 1862 ] | 1863 ] |
| 1863 | 1864 |
| 1864 defines = [] | 1865 defines = [] |
| 1865 if (enable_multidex) { | |
| 1866 defines += [ "ENABLE_MULTIDEX" ] | |
| 1867 } | |
| 1868 if (is_java_debug || dcheck_always_on) { | 1866 if (is_java_debug || dcheck_always_on) { |
| 1869 defines += [ "_DCHECK_IS_ON" ] | 1867 defines += [ "_DCHECK_IS_ON" ] |
| 1870 } | 1868 } |
| 1871 defines += [ | 1869 defines += [ |
| 1872 "COMPRESSED_LOCALE_LIST=" + | 1870 "COMPRESSED_LOCALE_LIST=" + |
| 1873 "@FileArg($_rebased_build_config:compressed_locales_java_list)", | 1871 "@FileArg($_rebased_build_config:compressed_locales_java_list)", |
| 1874 "UNCOMPRESSED_LOCALE_LIST=" + | 1872 "UNCOMPRESSED_LOCALE_LIST=" + |
| 1875 "@FileArg($_rebased_build_config:uncompressed_locales_java_list)", | 1873 "@FileArg($_rebased_build_config:uncompressed_locales_java_list)", |
| 1876 ] | 1874 ] |
| 1877 } | 1875 } |
| 1878 _srcjar_deps += [ ":${_template_name}__build_config_java" ] | 1876 _srcjar_deps += [ ":${_template_name}__build_config_java" ] |
| 1879 } | 1877 } |
| 1880 | 1878 |
| 1879 java_cpp_template("${_template_name}__package_config_java") { |
| 1880 package_path = "dynamic" |
| 1881 sources = [ |
| 1882 "//base/android/java/templates/PackageConfig.template", |
| 1883 ] |
| 1884 deps = [ |
| 1885 ":$build_config_target", |
| 1886 ] |
| 1887 defines = |
| 1888 [ "PACKAGE=@FileArg($_rebased_build_config:deps_info:package_name)" ] |
| 1889 if (enable_multidex) { |
| 1890 defines += [ "ENABLE_MULTIDEX" ] |
| 1891 } |
| 1892 } |
| 1893 _srcjar_deps += [ ":${_template_name}__package_config_java" ] |
| 1894 |
| 1881 java_target = "${_template_name}__java" | 1895 java_target = "${_template_name}__java" |
| 1882 java_library_impl(java_target) { | 1896 java_library_impl(java_target) { |
| 1883 forward_variables_from(invoker, | 1897 forward_variables_from(invoker, |
| 1884 [ | 1898 [ |
| 1885 "chromium_code", | 1899 "chromium_code", |
| 1886 "java_files", | 1900 "java_files", |
| 1887 "run_findbugs_override", | 1901 "run_findbugs_override", |
| 1888 ]) | 1902 ]) |
| 1889 supports_android = true | 1903 supports_android = true |
| 1890 requires_android = true | 1904 requires_android = true |
| (...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2902 # because in practice they seem to contain classes required to be in the | 2916 # because in practice they seem to contain classes required to be in the |
| 2903 # classpath. | 2917 # classpath. |
| 2904 deps += _subjar_targets | 2918 deps += _subjar_targets |
| 2905 } | 2919 } |
| 2906 if (defined(_res_target_name)) { | 2920 if (defined(_res_target_name)) { |
| 2907 deps += [ ":$_res_target_name" ] | 2921 deps += [ ":$_res_target_name" ] |
| 2908 } | 2922 } |
| 2909 } | 2923 } |
| 2910 } | 2924 } |
| 2911 } | 2925 } |
| OLD | NEW |