| 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("//tools/grit/grit_rule.gni") | 8 import("//tools/grit/grit_rule.gni") |
| 9 import("//tools/relocation_packer/config.gni") | 9 import("//tools/relocation_packer/config.gni") |
| 10 | 10 |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 template("java_cpp_enum") { | 338 template("java_cpp_enum") { |
| 339 set_sources_assignment_filter([]) | 339 set_sources_assignment_filter([]) |
| 340 if (defined(invoker.testonly)) { | 340 if (defined(invoker.testonly)) { |
| 341 testonly = invoker.testonly | 341 testonly = invoker.testonly |
| 342 } | 342 } |
| 343 | 343 |
| 344 assert(defined(invoker.sources)) | 344 assert(defined(invoker.sources)) |
| 345 assert(defined(invoker.outputs)) | 345 assert(defined(invoker.outputs)) |
| 346 | 346 |
| 347 action("${target_name}__generate_enum") { | 347 action("${target_name}__generate_enum") { |
| 348 # The sources aren't compiled so don't check their dependencies. |
| 349 # TODO(brettw) uncomment after GN binary rolled pas 314974 (which added |
| 350 # support for this value on actions). |
| 351 #check_includes = false |
| 352 |
| 348 sources = invoker.sources | 353 sources = invoker.sources |
| 349 script = "//build/android/gyp/java_cpp_enum.py" | 354 script = "//build/android/gyp/java_cpp_enum.py" |
| 350 gen_dir = "${target_gen_dir}/${target_name}/enums" | 355 gen_dir = "${target_gen_dir}/${target_name}/enums" |
| 351 outputs = | 356 outputs = |
| 352 get_path_info(rebase_path(invoker.outputs, ".", gen_dir), "abspath") | 357 get_path_info(rebase_path(invoker.outputs, ".", gen_dir), "abspath") |
| 353 | 358 |
| 354 args = [ | 359 args = [ |
| 355 "--output_dir", | 360 "--output_dir", |
| 356 rebase_path(gen_dir, root_build_dir), | 361 rebase_path(gen_dir, root_build_dir), |
| 357 ] | 362 ] |
| (...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1730 template("uiautomator_test") { | 1735 template("uiautomator_test") { |
| 1731 set_sources_assignment_filter([]) | 1736 set_sources_assignment_filter([]) |
| 1732 if (defined(invoker.testonly)) { | 1737 if (defined(invoker.testonly)) { |
| 1733 testonly = invoker.testonly | 1738 testonly = invoker.testonly |
| 1734 } | 1739 } |
| 1735 assert(target_name != "") | 1740 assert(target_name != "") |
| 1736 assert(invoker.deps != [] || true) | 1741 assert(invoker.deps != [] || true) |
| 1737 group(target_name) { | 1742 group(target_name) { |
| 1738 } | 1743 } |
| 1739 } | 1744 } |
| OLD | NEW |