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.
|
|
|
|
|
2020-04-03 15:59:37 +00:00
|
|
|
import("//build/fuchsia/sdk.gni")
|
|
|
|
import("../../gn/skia.gni")
|
2019-09-25 21:14:35 +00:00
|
|
|
|
2020-04-03 15:59:37 +00:00
|
|
|
if (is_fuchsia && skia_update_fuchsia_sdk &&
|
|
|
|
current_toolchain == default_toolchain) {
|
2019-09-25 21:14:35 +00:00
|
|
|
cipd_dir = "${fuchsia_sdk_path}/../cipd"
|
2020-04-03 15:59:37 +00:00
|
|
|
update_sdk_out = exec_script(
|
|
|
|
"//build/fuchsia/update_fuchsia_sdk",
|
|
|
|
[
|
|
|
|
"-sdk_dir=" + rebase_path(fuchsia_sdk_path),
|
|
|
|
"-clang_dir=" + rebase_path(fuchsia_toolchain_path),
|
|
|
|
"-cipd_cache_dir=" + rebase_path(cipd_dir),
|
|
|
|
"-cipd_clang_version=git_revision:a6e1de4afc51560df18c95cb616dec51248ed660",
|
|
|
|
],
|
|
|
|
"list lines",
|
|
|
|
[ "//build/fuchsia/update_fuchsia_sdk" ])
|
2019-09-25 21:14:35 +00:00
|
|
|
}
|