diff --git a/.gitignore b/.gitignore index 3311c2ef..41806962 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,9 @@ .gdbinit /Makefile /out +/third_party/fuchsia/.cipd +/third_party/fuchsia/clang +/third_party/fuchsia/sdk /third_party/gtest/gtest /third_party/gyp/gyp /third_party/mini_chromium/mini_chromium diff --git a/DEPS b/DEPS index 2e40af5e..c37cde74 100644 --- a/DEPS +++ b/DEPS @@ -113,6 +113,18 @@ hooks = [ 'buildtools/linux64/gn.sha1', ], }, + { + 'name': 'fuchsia_clang', + 'pattern': '.', + 'condition': 'checkout_fuchsia', + 'action': [ + 'cipd', + 'ensure', + '-ensure-file', 'crashpad/third_party/fuchsia/toolchain.ensure', + '-root', 'crashpad/third_party/fuchsia', + '-log-level', 'info', + ], + }, { 'name': 'gyp', 'pattern': '\.gypi?$', diff --git a/third_party/fuchsia/README.crashpad b/third_party/fuchsia/README.crashpad new file mode 100644 index 00000000..fc4a514a --- /dev/null +++ b/third_party/fuchsia/README.crashpad @@ -0,0 +1,4 @@ +This directory is a placeholder for Fuchsia tools that will be downloaded by +CIPD (https://github.com/luci/luci-go/tree/master/cipd). The toolchain.ensure +files specifies which CIPD packages to retrieve, at which versions, and where +they're stored locally. The CIPD update happens as part of gclient runhooks. diff --git a/third_party/fuchsia/toolchain.ensure b/third_party/fuchsia/toolchain.ensure new file mode 100644 index 00000000..00f9b788 --- /dev/null +++ b/third_party/fuchsia/toolchain.ensure @@ -0,0 +1,19 @@ +# Copyright 2017 The Crashpad Authors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +@Subdir clang +fuchsia/clang/${os}-${arch} latest + +@Subdir sdk +fuchsia/sdk/${os=linux}-${arch} latest