Neathan / build.py

A c++ build system written in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build.py

A c++ build system written in python

Usage:

build.py [-h] [-c] [-v] [-r]

Optional arguments:

-h, --help     show help message and exit
-c, --clean    treat all files as changed
-v, --verbose  enter verbose mode
-r, --run      run the program after compilation

Example settings file:

{
	"StandardArguments": [
		"-std=c++17"
	],
	"CStandardArguments": [
	],
	"FileSuffixes": [
		".cpp",
		".h",
		".c"
	],
	"IsLibrary": true,
	"ObjectLocation": "obj/",
	"OutputFile": "app",
	"ExecutableSuffix": "",
	"LibrarySuffix": ".a",
	"LibraryHeaderOutput": "Include/",
	"SourceLocations": [
		"src/",
		"Libraries/Source/"
	],
	"LibraryLocations": [
		"Libraries/Linux/"
	],
	"HeaderLocations": [
		"Libraries/Include/"
	],
	"Libraries": [
		"-lglfw3",
		"-lGL",
		"-lGLU",
		"-ldl",
		"-lX11",
		"-lXi",
		"-lXrandr",
		"-lXxf86vm",
		"-lXinerama",
		"-lXcursor",
		"-pthread"
	]
}

About

A c++ build system written in python

License:MIT License


Languages

Language:Python 100.0%