Skip to content

Commit

Permalink
Install CIPD ninja using DEPS (flutter#37375)
Browse files Browse the repository at this point in the history
* Install CIPD ninja using DEPS

* ignore license check for third_party/ninja

* update expected licenses
  • Loading branch information
Jwata authored Nov 10, 2022
1 parent 2f5b7ac commit f831382
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ docs/doxygen/
xcuserdata

third_party/gn/
third_party/ninja/ninja*

# Miscellaneous
*.class
Expand Down
9 changes: 9 additions & 0 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,15 @@ deps = {
],
'dep_type': 'cipd',
},
'src/flutter/third_party/ninja': {
'packages': [
{
'package': 'infra/3pp/tools/ninja/${{platform}}',
'version': 'version:[email protected]',
}
],
'dep_type': 'cipd',
},

'src/buildtools/emsdk': {
'url': Var('skia_git') + '/external/github.com/emscripten-core/emsdk.git' + '@' + 'fc645b7626ebf86530dbd82fbece74d457e7ae07',
Expand Down
2 changes: 1 addition & 1 deletion ci/licenses_golden/tool_signature
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Signature: fd17294a410a1a503ab9aa72a0797dbe
Signature: ae1981a94872d143d802356ab0f1a35e

17 changes: 17 additions & 0 deletions third_party/ninja/README.flutter
Original file line number Diff line number Diff line change
@@ -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
5 changes: 3 additions & 2 deletions tools/licenses/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1021,9 +1021,10 @@ class _RepositoryDirectory extends _RepositoryEntry implements LicenseSource {
return !entry.fullName.endsWith('third_party/gn') &&
!entry.fullName.endsWith('third_party/gradle') &&
!entry.fullName.endsWith('third_party/imgui') &&
!entry.fullName.endsWith('third_party/tinygltf') &&
!entry.fullName.endsWith('third_party/json/docs') &&
!entry.fullName.endsWith('third_party/json/LICENSES') &&
!entry.fullName.endsWith('third_party/json/docs') &&
!entry.fullName.endsWith('third_party/ninja') &&
!entry.fullName.endsWith('third_party/tinygltf') &&
entry.name != '.ccls-cache' &&
entry.name != '.cipd' &&
entry.name != '.git' &&
Expand Down

0 comments on commit f831382

Please sign in to comment.