2019-09-25 21:14:35 +00:00
|
|
|
# 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)
|
|
|
|
|
2019-11-18 16:01:05 +00:00
|
|
|
import("//build/fuchsia/sdk.gni")
|
2019-09-25 21:14:35 +00:00
|
|
|
|
|
|
|
fuchsia_sdk_manifest_exists = false
|
|
|
|
if (is_fuchsia && using_fuchsia_sdk) {
|
|
|
|
manifest_exists = exec_script("//build/fuchsia/file_exists",
|
2019-11-18 16:01:05 +00:00
|
|
|
[
|
|
|
|
"-file_name",
|
|
|
|
rebase_path(fuchsia_sdk_manifest_path),
|
|
|
|
],
|
2019-09-25 21:14:35 +00:00
|
|
|
"list lines",
|
|
|
|
[ "//build/fuchsia/file_exists" ])
|
|
|
|
if (manifest_exists == [ "true" ]) {
|
|
|
|
fuchsia_sdk_manifest_exists = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
group("fuchsia") {
|
2019-11-18 16:01:05 +00:00
|
|
|
if (fuchsia_sdk_manifest_exists == true) {
|
2019-09-25 21:14:35 +00:00
|
|
|
deps = [
|
|
|
|
"fidl",
|
|
|
|
"pkg",
|
|
|
|
"sysroot",
|
|
|
|
]
|
|
|
|
} else {
|
2019-11-18 16:01:05 +00:00
|
|
|
assert(false,
|
|
|
|
"Fuchsia SDK not found. Set arg skia_update_fuchsia_sdk=True " +
|
|
|
|
"to initialize.")
|
2019-09-25 21:14:35 +00:00
|
|
|
}
|
|
|
|
}
|