diff --git a/fetch_configs/dawn.py b/fetch_configs/dawn.py new file mode 100644 index 0000000000..bcd8bca56c --- /dev/null +++ b/fetch_configs/dawn.py @@ -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)) diff --git a/fetch_configs/libyuv.py b/fetch_configs/libyuv.py new file mode 100644 index 0000000000..0128d9c502 --- /dev/null +++ b/fetch_configs/libyuv.py @@ -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)) diff --git a/fetch_configs/openscreen.py b/fetch_configs/openscreen.py new file mode 100644 index 0000000000..7a8271a572 --- /dev/null +++ b/fetch_configs/openscreen.py @@ -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))