mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Add fetch configs for dawn, libyuv and openscreen
I used the crossbench config as a basis. Bug: None Change-Id: I7efa2f8fae4aaf723623307934ee0cf2928a3dd3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7019389 Auto-Submit: Victor Vianna <victorvianna@google.com> Reviewed-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com>
This commit is contained in:
committed by
LUCI CQ
parent
a551472876
commit
8fc14e1dea
43
fetch_configs/dawn.py
Normal file
43
fetch_configs/dawn.py
Normal file
@@ -0,0 +1,43 @@
|
||||
# Copyright 2025 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import sys
|
||||
|
||||
import config_util # pylint: disable=import-error
|
||||
|
||||
|
||||
# This class doesn't need an __init__ method, so we disable the warning
|
||||
# pylint: disable=no-init
|
||||
class Dawn(config_util.Config):
|
||||
"""Basic Config class for Dawn."""
|
||||
|
||||
@staticmethod
|
||||
def fetch_spec(props):
|
||||
url = 'https://dawn.googlesource.com/dawn.git'
|
||||
solution = {
|
||||
'name': 'dawn',
|
||||
'url': url,
|
||||
'deps_file': 'DEPS',
|
||||
'managed': False,
|
||||
'custom_deps': {},
|
||||
}
|
||||
spec = {
|
||||
'solutions': [solution],
|
||||
}
|
||||
return {
|
||||
'type': 'gclient_git',
|
||||
'gclient_git_spec': spec,
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
def expected_root(_props):
|
||||
return 'dawn'
|
||||
|
||||
|
||||
def main(argv=None):
|
||||
return Dawn().handle_args(argv)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main(sys.argv))
|
||||
43
fetch_configs/libyuv.py
Normal file
43
fetch_configs/libyuv.py
Normal file
@@ -0,0 +1,43 @@
|
||||
# Copyright 2025 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import sys
|
||||
|
||||
import config_util # pylint: disable=import-error
|
||||
|
||||
|
||||
# This class doesn't need an __init__ method, so we disable the warning
|
||||
# pylint: disable=no-init
|
||||
class Libyuv(config_util.Config):
|
||||
"""Basic Config class for libyuv."""
|
||||
|
||||
@staticmethod
|
||||
def fetch_spec(props):
|
||||
url = 'https://chromium.googlesource.com/libyuv/libyuv.git'
|
||||
solution = {
|
||||
'name': 'libyuv',
|
||||
'url': url,
|
||||
'deps_file': 'DEPS',
|
||||
'managed': False,
|
||||
'custom_deps': {},
|
||||
}
|
||||
spec = {
|
||||
'solutions': [solution],
|
||||
}
|
||||
return {
|
||||
'type': 'gclient_git',
|
||||
'gclient_git_spec': spec,
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
def expected_root(_props):
|
||||
return 'libyuv'
|
||||
|
||||
|
||||
def main(argv=None):
|
||||
return Libyuv().handle_args(argv)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main(sys.argv))
|
||||
43
fetch_configs/openscreen.py
Normal file
43
fetch_configs/openscreen.py
Normal file
@@ -0,0 +1,43 @@
|
||||
# Copyright 2025 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import sys
|
||||
|
||||
import config_util # pylint: disable=import-error
|
||||
|
||||
|
||||
# This class doesn't need an __init__ method, so we disable the warning
|
||||
# pylint: disable=no-init
|
||||
class Openscreen(config_util.Config):
|
||||
"""Basic Config class for openscreen."""
|
||||
|
||||
@staticmethod
|
||||
def fetch_spec(props):
|
||||
url = 'https://chromium.googlesource.com/openscreen.git'
|
||||
solution = {
|
||||
'name': 'openscreen',
|
||||
'url': url,
|
||||
'deps_file': 'DEPS',
|
||||
'managed': False,
|
||||
'custom_deps': {},
|
||||
}
|
||||
spec = {
|
||||
'solutions': [solution],
|
||||
}
|
||||
return {
|
||||
'type': 'gclient_git',
|
||||
'gclient_git_spec': spec,
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
def expected_root(_props):
|
||||
return 'openscreen'
|
||||
|
||||
|
||||
def main(argv=None):
|
||||
return Openscreen().handle_args(argv)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main(sys.argv))
|
||||
Reference in New Issue
Block a user