Install CIPD ninja using DEPS
See chromium/src's CL https://crrev.com/c/3869740 for the context.
Bug: chromium:1340825
Change-Id: I3f43065995af6feff08433c69f16e8c40b171957
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/109880
Kokoro: Kokoro <noreply+kokoro@google.com>
Auto-Submit: Junji Watanabe <jwata@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
diff --git a/.gitignore b/.gitignore
index 19bafab..70384df 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,14 +14,15 @@
/cmake-build-*/
/out
/testing
-/third_party/clang-format
-/third_party/catapult
-/third_party/cpplint
/third_party/benchmark
/third_party/binutils
+/third_party/catapult
+/third_party/clang-format
+/third_party/cpplint
/third_party/googletest
/third_party/gpuweb-cts
/third_party/llvm-build
+/third_party/ninja/ninja*
/third_party/protobuf
/third_party/vulkan-deps
/tools/clang
diff --git a/DEPS b/DEPS
index 60c7a96..7ad48a3 100644
--- a/DEPS
+++ b/DEPS
@@ -74,6 +74,17 @@
'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxxabi.git@2715a6c0de8dac4c7674934a6b3d30ba0c685271',
},
+ 'third_party/ninja': {
+ 'packages': [
+ # https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/ninja
+ {
+ 'package': 'infra/3pp/tools/ninja/${{platform}}',
+ 'version': 'version:2@1.8.2.chromium.3',
+ }
+ ],
+ 'dep_type': 'cipd',
+ },
+
# Dependencies required for testing
'testing': {
'url': '{chromium_git}/chromium/src/testing@d485ae97b7900c1fb7edfbe2901ae5adcb120865',
diff --git a/third_party/ninja/README.tint b/third_party/ninja/README.tint
new file mode 100644
index 0000000..e79bd45
--- /dev/null
+++ b/third_party/ninja/README.tint
@@ -0,0 +1,17 @@
+Name: ninja
+Short Name: ninja
+URL: https://github.com/ninja-build/ninja
+Revision: See the CIPD version in DEPS
+License: Apache License 2.0
+License File: https://github.com/ninja-build/ninja/blob/master/COPYING
+Security Critical: no
+
+Description:
+Ninja is a small build system with a focus on speed, and is used to build
+this project.
+
+The CIPD packages are built using the 3pp pipeline.
+https://chromium.googlesource.com/infra/infra/+/refs/heads/main/3pp/ninja/
+
+Local Modifications:
+None