24cbdab97e
Change-Id: I2619784eca0f7a4dd66f2db0104cb746d9266b4e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/244369 Commit-Queue: John Rosasco <rosasco@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
33 lines
898 B
Plaintext
33 lines
898 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.")
|
|
}
|
|
}
|