skia2/build/fuchsia/BUILD.gn
Robert Phillips c919f97768 Reformat gn files
Change-Id: I60ccd1ef19d6a6dc033e20e7ac55c3182d76ea0e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/255082
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
2019-11-18 16:39:28 +00:00

36 lines
985 B
Plaintext

# Copyright 2019 Google LLC.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
assert(is_fuchsia)
import("//build/fuchsia/sdk.gni")
fuchsia_sdk_manifest_exists = false
if (is_fuchsia && using_fuchsia_sdk) {
manifest_exists = exec_script("//build/fuchsia/file_exists",
[
"-file_name",
rebase_path(fuchsia_sdk_manifest_path),
],
"list lines",
[ "//build/fuchsia/file_exists" ])
if (manifest_exists == [ "true" ]) {
fuchsia_sdk_manifest_exists = true
}
}
group("fuchsia") {
if (fuchsia_sdk_manifest_exists == true) {
deps = [
"fidl",
"pkg",
"sysroot",
]
} else {
assert(false,
"Fuchsia SDK not found. Set arg skia_update_fuchsia_sdk=True " +
"to initialize.")
}
}