| John Rosasco | 24cbdab | 2019-09-25 14:14:35 -0700 | [diff] [blame] | 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 | |
| Mike Klein | 96f6401 | 2020-04-03 10:59:37 -0500 | [diff] [blame] | 5 | import("//build/fuchsia/sdk.gni") |
| 6 | import("../../gn/skia.gni") |
| John Rosasco | 24cbdab | 2019-09-25 14:14:35 -0700 | [diff] [blame] | 7 | |
| Mike Klein | 96f6401 | 2020-04-03 10:59:37 -0500 | [diff] [blame] | 8 | if (is_fuchsia && skia_update_fuchsia_sdk && |
| 9 | current_toolchain == default_toolchain) { |
| John Rosasco | 24cbdab | 2019-09-25 14:14:35 -0700 | [diff] [blame] | 10 | cipd_dir = "${fuchsia_sdk_path}/../cipd" |
| Mike Klein | 96f6401 | 2020-04-03 10:59:37 -0500 | [diff] [blame] | 11 | update_sdk_out = exec_script( |
| 12 | "//build/fuchsia/update_fuchsia_sdk", |
| 13 | [ |
| 14 | "-sdk_dir=" + rebase_path(fuchsia_sdk_path), |
| 15 | "-clang_dir=" + rebase_path(fuchsia_toolchain_path), |
| 16 | "-cipd_cache_dir=" + rebase_path(cipd_dir), |
| 17 | "-cipd_clang_version=git_revision:a6e1de4afc51560df18c95cb616dec51248ed660", |
| 18 | ], |
| 19 | "list lines", |
| 20 | [ "//build/fuchsia/update_fuchsia_sdk" ]) |
| John Rosasco | 24cbdab | 2019-09-25 14:14:35 -0700 | [diff] [blame] | 21 | } |