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