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 1917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1928 ":$java_target", | 1928 ":$java_target", |
1929 ] | 1929 ] |
1930 } | 1930 } |
1931 } | 1931 } |
1932 | 1932 |
1933 if (_proguard_enabled) { | 1933 if (_proguard_enabled) { |
1934 _proguard_configs = [ _generated_proguard_config ] | 1934 _proguard_configs = [ _generated_proguard_config ] |
1935 if (defined(invoker.proguard_configs)) { | 1935 if (defined(invoker.proguard_configs)) { |
1936 _proguard_configs += invoker.proguard_configs | 1936 _proguard_configs += invoker.proguard_configs |
1937 } | 1937 } |
| 1938 if (enable_multidex) { |
| 1939 _proguard_configs += [ "//build/android/multidex.flags" ] |
| 1940 } |
1938 assert(_proguard_configs != []) # Mark as used. | 1941 assert(_proguard_configs != []) # Mark as used. |
1939 _proguard_target = "${_template_name}__proguard" | 1942 _proguard_target = "${_template_name}__proguard" |
1940 proguard(_proguard_target) { | 1943 proguard(_proguard_target) { |
1941 forward_variables_from(invoker, | 1944 forward_variables_from(invoker, |
1942 [ | 1945 [ |
1943 "alternative_android_sdk_jar", | 1946 "alternative_android_sdk_jar", |
1944 "deps", | 1947 "deps", |
1945 "proguard_jar_path", | 1948 "proguard_jar_path", |
1946 ]) | 1949 ]) |
1947 if (!defined(deps)) { | 1950 if (!defined(deps)) { |
(...skipping 954 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 | 2905 # because in practice they seem to contain classes required to be in the |
2903 # classpath. | 2906 # classpath. |
2904 deps += _subjar_targets | 2907 deps += _subjar_targets |
2905 } | 2908 } |
2906 if (defined(_res_target_name)) { | 2909 if (defined(_res_target_name)) { |
2907 deps += [ ":$_res_target_name" ] | 2910 deps += [ ":$_res_target_name" ] |
2908 } | 2911 } |
2909 } | 2912 } |
2910 } | 2913 } |
2911 } | 2914 } |
OLD | NEW |