diff options
author | Peter Wu <peter@lekensteyn.nl> | 2021-01-06 20:43:37 +0100 |
---|---|---|
committer | AndersBroman <a.broman58@gmail.com> | 2021-01-07 10:19:04 +0000 |
commit | 2e0dda9e0315bbd13aa2e29c1a8a4eef8f9419ba (patch) | |
tree | 52f9cf4c88d12aa756ae8912b2d9f6af8f4bf744 /tools/make-plugin-reg.py | |
parent | 1d43b2a3aa50359e002c2016024167cb8c7fa365 (diff) |
CMake: Reduce "Generating plugin.c" noise during the build
With Ninja, the build is unnecessarily noisy:
[21/81] Generating plugin.c
Generated plugin.c for l16_mono.
[22/81] Generating plugin.c
Generated plugin.c for G711.
Avoid writing `Generated plugin.c for G711` and generate a single line
such as `Generating plugins/codecs/G711/plugin.c` instead.
Do not write the absolute path to plugin.c, this should hopefully help
with reproducible builds that are independent of the build directory.
Diffstat (limited to 'tools/make-plugin-reg.py')
-rwxr-xr-x | tools/make-plugin-reg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/make-plugin-reg.py b/tools/make-plugin-reg.py index 946edb8d3b..455936032a 100755 --- a/tools/make-plugin-reg.py +++ b/tools/make-plugin-reg.py @@ -2,6 +2,7 @@ # # Looks for registration routines in the plugins # and assembles C code to call all the routines. +# A new "plugin.c" file will be written in the current directory. # import os @@ -28,7 +29,7 @@ preamble = """\ * * Generated automatically from %s. */ -""" % (sys.argv[0]) +""" % (os.path.basename(sys.argv[0])) # Create the proper list of filenames filenames = [] @@ -165,7 +166,6 @@ try: fh = open(final_filename, 'w') fh.write(reg_code) fh.close() - print('Generated {} for {}.'.format(final_filename, os.path.basename(srcdir))) except OSError: sys.exit('Unable to write ' + final_filename + '.\n') |