summaryrefslogtreecommitdiff
path: root/tools/build_scripts/dummy-header.py
blob: 8c614645c8e5567e70d619564597f5ae244d7323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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')