diff options
Diffstat (limited to 'tools/build_scripts/dummy-header.py')
-rwxr-xr-x | tools/build_scripts/dummy-header.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/build_scripts/dummy-header.py b/tools/build_scripts/dummy-header.py new file mode 100755 index 00000000..8c614645 --- /dev/null +++ b/tools/build_scripts/dummy-header.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python3 + +# External command, intended to be called with custom_target() in meson.build. + +# dummy-header.py <output_file> + +import os +import sys + +output_file = sys.argv[1] + +# A dummy header file is created if it does not exist, but it's never updated. +if not os.path.isfile(output_file): + with open(output_file, 'w') as f: + f.write('// Dummy header file. Created and used by meson.build\n') |