Skip to content

Instantly share code, notes, and snippets.

@Wafelack
Last active October 23, 2020 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wafelack/7ab5ae29e01ac1227a36bda835c7904f to your computer and use it in GitHub Desktop.
Save Wafelack/7ab5ae29e01ac1227a36bda835c7904f to your computer and use it in GitHub Desktop.
Wng build semantic

Build.py

from wngbuild import * # Import all from wngbuild library

build = BuildProfile(files="src/*.c",output="build/custom/prog.exe" ); # setup the files to compile and the output file
build.cc = "C:\MinGW\bin\gcc.exe" # optional, by default "gcc" 
build.flags = "-W -Wall -Werror -Wextra" # optional

build.run() # run the compilation command
build.runOutput() # run the produced binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment