blob: 525dd70d63d30f878a22c581904d8193bfee8a0f [file] [log] [blame]
John Rosasco24cbdab2019-09-25 14:14:35 -07001# Copyright 2019 Google LLC.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5assert(is_fuchsia)
6
Robert Phillipsc919f972019-11-18 11:01:05 -05007import("//build/fuchsia/sdk.gni")
John Rosasco24cbdab2019-09-25 14:14:35 -07008
9fuchsia_sdk_manifest_exists = false
10if (is_fuchsia && using_fuchsia_sdk) {
11 manifest_exists = exec_script("//build/fuchsia/file_exists",
Robert Phillipsc919f972019-11-18 11:01:05 -050012 [
13 "-file_name",
14 rebase_path(fuchsia_sdk_manifest_path),
15 ],
John Rosasco24cbdab2019-09-25 14:14:35 -070016 "list lines",
17 [ "//build/fuchsia/file_exists" ])
18 if (manifest_exists == [ "true" ]) {
19 fuchsia_sdk_manifest_exists = true
20 }
21}
22
23group("fuchsia") {
Robert Phillipsc919f972019-11-18 11:01:05 -050024 if (fuchsia_sdk_manifest_exists == true) {
John Rosasco24cbdab2019-09-25 14:14:35 -070025 deps = [
26 "fidl",
27 "pkg",
28 "sysroot",
29 ]
30 } else {
Robert Phillipsc919f972019-11-18 11:01:05 -050031 assert(false,
32 "Fuchsia SDK not found. Set arg skia_update_fuchsia_sdk=True " +
33 "to initialize.")
John Rosasco24cbdab2019-09-25 14:14:35 -070034 }
35}