• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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
7import("${skia_root_dir}/build/fuchsia/sdk.gni")
8
9fuchsia_sdk_manifest_exists = false
10if (is_fuchsia && using_fuchsia_sdk) {
11  manifest_exists = exec_script("${skia_root_dir}/build/fuchsia/file_exists",
12                                [
13                                  "-file_name",
14                                  rebase_path(fuchsia_sdk_manifest_path),
15                                ],
16                                "list lines",
17                                [ "${skia_root_dir}/build/fuchsia/file_exists" ])
18  if (manifest_exists == [ "true" ]) {
19    fuchsia_sdk_manifest_exists = true
20  }
21}
22
23group("fuchsia") {
24  if (fuchsia_sdk_manifest_exists == true) {
25    deps = [
26      "fidl",
27      "pkg",
28      "sysroot",
29    ]
30  } else {
31    assert(false,
32           "Fuchsia SDK not found. Set arg skia_update_fuchsia_sdk=True " +
33               "to initialize.")
34  }
35}
36