2017-02-18 23:35:51 +08:00
|
|
|
#!/usr/bin/env python3
|
2014-04-28 05:34:12 +08:00
|
|
|
|
2016-09-02 04:15:48 +08:00
|
|
|
import sys, os
|
2017-02-18 23:35:51 +08:00
|
|
|
from pathlib import Path
|
2014-04-28 05:34:12 +08:00
|
|
|
|
|
|
|
if len(sys.argv) != 3:
|
|
|
|
print("Wrong amount of parameters.")
|
|
|
|
|
2017-02-18 23:35:51 +08:00
|
|
|
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())
|
2014-04-28 05:34:12 +08:00
|
|
|
|
2017-02-18 23:35:51 +08:00
|
|
|
with outputf.open('w') as ofile:
|
2016-08-30 14:31:44 +08:00
|
|
|
ofile.write("#define ZERO_RESULT 0\n")
|