BUILDER_CPP
A simple build tool for building C and C++ applications
The tool is still in development.
Usage
Write a config_win32.toml for windows and config_linux.toml for linux
Features
[x] Multithreaded [x] Can generate compile_commnds.json
Sample file
[build]
compiler = "g++"
build_dir = "./Nomu_Engine/bin"
obj_dir = "./Nomu_Engine/obj_win"
[[targets]]
name = "libengine"
src = "./Nomu_Engine/Engine/src/"
include_dir = "./Nomu_Engine/Engine/src/include"
type = "dll"
cflags = "-g -Wall -Wunused `pkg-config --cflags freetype2` -std=c++17"
libs = "-lm -lglew32 -lglfw3 -lopengl32 -static-libstdc++ `pkg-config --libs freetype2`"
[[targets]]
name = "main"
src = "./Nomu_Engine/Game/src/"
include_dir = "./Nomu_Engine/Game/src"
type = "exe"
cflags = "-g -Wall -INomu_Engine/Engine/src/include"
libs = " -LNomu_Engine/bin -lengine -static-libstdc++ -Wl,-rpath=Nomu_Engine/bin"
All keys mentioned are mandatory.
Install with cargo install For subcommands run with -h flag
To see a real project being built with the tool Nomu_Engine