File: dummy-header.py

package info (click to toggle)
gtkmm3.0 3.24.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,316 kB
  • sloc: xml: 121,335; cpp: 8,647; makefile: 286; sh: 202; python: 6
file content (15 lines) | stat: -rwxr-xr-x 408 bytes parent folder | download | duplicates (15)
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')