meson/test cases/common/16 configure file/generator.py

18 lines
378 B
Python
Raw Normal View History

#!/usr/bin/env python3
2016-09-02 04:15:48 +08:00
import sys, os
from pathlib import Path
if len(sys.argv) != 3:
print("Wrong amount of parameters.")
build_dir = Path(os.environ['MESON_BUILD_ROOT'])
subdir = Path(os.environ['MESON_SUBDIR'])
inputf = Path(sys.argv[1])
outputf = Path(sys.argv[2])
assert(inputf.exists())
with outputf.open('w') as ofile:
2016-08-30 14:31:44 +08:00
ofile.write("#define ZERO_RESULT 0\n")