appveyor_build.py 429 B

12345678910111213141516
  1. #!/usr/bin/env python
  2. # Build the project on AppVeyor.
  3. import os
  4. import shutil
  5. from subprocess import check_call
  6. mcell_src = './src'
  7. build_command = ['gcc.exe', '-mconsole', '-std=c99', '-O3', '-fno-schedule-insns2', '-o', 'mcell.exe', '*.c']
  8. files = ["config.h", "version.h", "mdllex.c", "mdlparse.h", "mdlparse.c"]
  9. for f in files:
  10. shutil.move("./windows/%s" % f, mcell_src)
  11. os.chdir(mcell_src)
  12. check_call(build_command)