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("//base/android/linker/config.gni") | 5 import("//base/android/linker/config.gni") |
6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
7 import("//build/config/android/internal_rules.gni") | 7 import("//build/config/android/internal_rules.gni") |
8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
9 import("//build/toolchain/toolchain.gni") | 9 import("//build/toolchain/toolchain.gni") |
10 import("//third_party/android_platform/config.gni") | 10 import("//third_party/android_platform/config.gni") |
(...skipping 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1916 } | 1916 } |
1917 if (_create_language_splits) { | 1917 if (_create_language_splits) { |
1918 args += [ "--split=${_rebased_apk_path_no_ext}-language-*.apk" ] | 1918 args += [ "--split=${_rebased_apk_path_no_ext}-language-*.apk" ] |
1919 } | 1919 } |
1920 if (_load_library_from_apk) { | 1920 if (_load_library_from_apk) { |
1921 args += [ "--dont-even-try=Incremental builds do not work with load_librar
y_from_apk. Try setting is_component_build=true in your GN args." ] | 1921 args += [ "--dont-even-try=Incremental builds do not work with load_librar
y_from_apk. Try setting is_component_build=true in your GN args." ] |
1922 } | 1922 } |
1923 } | 1923 } |
1924 | 1924 |
1925 group(target_name) { | 1925 group(target_name) { |
1926 forward_variables_from(invoker, [ "data_deps" ]) | 1926 forward_variables_from(invoker, |
| 1927 [ |
| 1928 "data", |
| 1929 "data_deps", |
| 1930 ]) |
1927 public_deps = _final_deps | 1931 public_deps = _final_deps |
1928 } | 1932 } |
1929 group("${target_name}_incremental") { | 1933 group("${target_name}_incremental") { |
1930 data_deps = [] | 1934 data_deps = [] |
1931 forward_variables_from(invoker, [ "data_deps" ]) | 1935 forward_variables_from(invoker, |
| 1936 [ |
| 1937 "data", |
| 1938 "data_deps", |
| 1939 ]) |
1932 | 1940 |
1933 # device/commands is used by the installer script to push files via .zip. | 1941 # device/commands is used by the installer script to push files via .zip. |
1934 data_deps += [ "//build/android/pylib/device/commands" ] + | 1942 data_deps += [ "//build/android/pylib/device/commands" ] + |
1935 _native_libs_deps + _extra_native_libs_deps | 1943 _native_libs_deps + _extra_native_libs_deps |
1936 | 1944 |
1937 # Since the _incremental.apk does not include use .so nor .dex from the | 1945 # Since the _incremental.apk does not include use .so nor .dex from the |
1938 # actual target, but instead loads them at runtime, we need to explicitly | 1946 # actual target, but instead loads them at runtime, we need to explicitly |
1939 # depend on them here. | 1947 # depend on them here. |
1940 public_deps = [ | 1948 public_deps = [ |
1941 ":${_create_incremental_script_rule_name}", | 1949 ":${_create_incremental_script_rule_name}", |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2409 "--target", | 2417 "--target", |
2410 rebase_path(invoker.target, root_build_dir), | 2418 rebase_path(invoker.target, root_build_dir), |
2411 "--output-directory", | 2419 "--output-directory", |
2412 rebase_path(root_out_dir, root_build_dir), | 2420 rebase_path(root_out_dir, root_build_dir), |
2413 ] | 2421 ] |
2414 if (defined(invoker.flag_name)) { | 2422 if (defined(invoker.flag_name)) { |
2415 args += [ "--flag-name=${invoker.flag_name}" ] | 2423 args += [ "--flag-name=${invoker.flag_name}" ] |
2416 } | 2424 } |
2417 } | 2425 } |
2418 } | 2426 } |
OLD | NEW |