Debian Codegraph @

test cases/common/14 configure file/generator.py

raw
1 #!/usr/bin/env python3
2
3 import sys, os
4 from pathlib import Path
5
6 if len(sys.argv) != 3:
7 print("Wrong amount of parameters.")
8
9 build_dir = Path(os.environ['MESON_BUILD_ROOT'])
10 subdir = Path(os.environ['MESON_SUBDIR'])
11 inputf = Path(sys.argv[1])
12 outputf = Path(sys.argv[2])
13
14 assert inputf.exists()
15
16 with outputf.open('w') as ofile:
17 ofile.write("#define ZERO_RESULT 0\n")