diff options
Diffstat (limited to 'chromium/third_party/dav1d/generate_source.py')
-rwxr-xr-x | chromium/third_party/dav1d/generate_source.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chromium/third_party/dav1d/generate_source.py b/chromium/third_party/dav1d/generate_source.py index ed60ea7edf3..18e37fd9fcc 100755 --- a/chromium/third_party/dav1d/generate_source.py +++ b/chromium/third_party/dav1d/generate_source.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Copyright 2019 The Chromium Authors. All rights reserved. +# Copyright 2019 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Creates a GN include file for building dav1d from source.""" @@ -11,7 +11,7 @@ import datetime import glob import os -_COPYRIGHT = """# Copyright %d The Chromium Authors. All rights reserved. +_COPYRIGHT = """# Copyright %d The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. @@ -35,7 +35,7 @@ def _Glob(pattern): def _WriteArray(fd, var_name, array, filter_list=[], last_entry=False): if len(array) == 0: - fd.write("var_name = []\n") + fd.write("%s = []\n" % var_name) return fd.write("%s = [\n" % var_name) @@ -49,6 +49,9 @@ def _WriteArray(fd, var_name, array, filter_list=[], last_entry=False): def _WriteGn(fd): fd.write(_COPYRIGHT) + + # NOTE: $arch_template_sources are empty as of Dec 2022. If they remain + # empty over the next few rolls we should remove them. _WriteArray(fd, "x86_asm_sources", _Glob("libdav1d/src/x86/*.asm"), ["libdav1d/src/x86/filmgrain_common.asm"]) _WriteArray(fd, "x86_template_sources", _Glob("libdav1d/src/x86/*_tmpl.c")) |