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