Commit df1806f1 authored by Wez's avatar Wez Committed by Commit Bot

[Fuchsia] Add dependency on SDK version to GN rules for generators, etc.

Without this dependency making an SDK update containing e.g. a FIDL
generator change would not cause FIDL stubs to be regenerated.

Bug: 865059
Change-Id: If760cccfd0a2357abdd3f4f32281fb2dd79cbd43
Reviewed-on: https://chromium-review.googlesource.com/1142127
Commit-Queue: Wez <wez@chromium.org>
Reviewed-by: default avatarSergey Ulanov <sergeyu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576104}
parent 1eba109a
......@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/fuchsia/config.gni")
assert(is_fuchsia)
# Template for FIDL libraries. Following parameters can be passed when
......@@ -122,6 +124,8 @@ template("fidl_library") {
script = "//build/gn_run_binary.py"
inputs = [
# Depend on the SDK hash, to ensure rebuild if the SDK tools change.
rebase_path("$fuchsia_sdk/.hash"),
_response_file,
]
......@@ -145,6 +149,8 @@ template("fidl_library") {
]
inputs = [
# Depend on the SDK hash, to ensure rebuild if the SDK tools change.
rebase_path("$fuchsia_sdk/.hash"),
_json_representation,
]
......
......@@ -100,6 +100,11 @@ template("fuchsia_package") {
script = "//build/gn_run_binary.py"
inputs = [
# Depend on the SDK hash, to ensure rebuild if the SDK tools change.
rebase_path("$fuchsia_sdk/.hash"),
]
outputs = [
_key_file,
]
......@@ -124,6 +129,8 @@ template("fuchsia_package") {
]
inputs = [
# Depend on the SDK hash, to ensure rebuild if the SDK tools change.
rebase_path("$fuchsia_sdk/.hash"),
_key_file,
]
......@@ -155,6 +162,8 @@ template("fuchsia_package") {
]
inputs = [
# Depend on the SDK hash, to ensure rebuild if the SDK tools change.
rebase_path("$fuchsia_sdk/.hash"),
_meta_far_file,
_archive_manifest,
]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment