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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 script = "//base/android/jni_generator/jni_registration_generator.py" | 369 script = "//base/android/jni_generator/jni_registration_generator.py" |
370 deps = [ | 370 deps = [ |
371 "${invoker.target}__build_config", | 371 "${invoker.target}__build_config", |
372 ] | 372 ] |
373 inputs = [ | 373 inputs = [ |
374 _build_config, | 374 _build_config, |
375 ] | 375 ] |
376 outputs = [ | 376 outputs = [ |
377 invoker.output, | 377 invoker.output, |
378 ] | 378 ] |
| 379 depfile = "$target_gen_dir/$target_name.d" |
379 | 380 |
380 args = [ | 381 args = [ |
381 # This is a list of .sources files. | 382 # This is a list of .sources files. |
382 "--sources_files=@FileArg($_rebased_build_config:jni:all_source)", | 383 "--sources_files=@FileArg($_rebased_build_config:jni:all_source)", |
383 "--output", | 384 "--output", |
384 rebase_path(invoker.output, root_build_dir), | 385 rebase_path(invoker.output, root_build_dir), |
385 "--no_register_java=$_rebase_exception_java_files", | 386 "--no_register_java=$_rebase_exception_java_files", |
| 387 "--depfile", |
| 388 rebase_path(depfile, root_build_dir), |
386 ] | 389 ] |
387 } | 390 } |
388 } | 391 } |
389 | 392 |
390 # Declare a target for c-preprocessor-generated java files | 393 # Declare a target for c-preprocessor-generated java files |
391 # | 394 # |
392 # NOTE: For generating Java conterparts to enums prefer using the java_cpp_enu
m | 395 # NOTE: For generating Java conterparts to enums prefer using the java_cpp_enu
m |
393 # rule instead. | 396 # rule instead. |
394 # | 397 # |
395 # This target generates java files using the host C pre-processor. Each file i
n | 398 # This target generates java files using the host C pre-processor. Each file i
n |
(...skipping 2626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3022 # because in practice they seem to contain classes required to be in the | 3025 # because in practice they seem to contain classes required to be in the |
3023 # classpath. | 3026 # classpath. |
3024 deps += _subjar_targets | 3027 deps += _subjar_targets |
3025 } | 3028 } |
3026 if (defined(_res_target_name)) { | 3029 if (defined(_res_target_name)) { |
3027 deps += [ ":$_res_target_name" ] | 3030 deps += [ ":$_res_target_name" ] |
3028 } | 3031 } |
3029 } | 3032 } |
3030 } | 3033 } |
3031 } | 3034 } |
OLD | NEW |