generator-without-input-file.py 326 B

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