mxcop / whisk

A simplistic build system for C/C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Whisk(ey) ~ build system

A simplistic build system for C and C++ projects inspired by cargo.

Warning whisk is already quite functional, nevertheless it is early in development, so expect issues along the way.

Installing

wip: atm the only way to install whisk is by cloning this repo and running cargo install --path .

User guide

Whisk projects are defined by a single manifest file called whisk.toml.
In snippet [1] you can see an example of a manifest file for a simple C++ project.

snippet [1]

[package]
name = "cpp-example"
lang = "c++"
type = "exe"                # <optional> Type of project (default "exe")

compiler = "g++"            # Compiler to use
src = [ "src/**/*.cpp" ]    # List of source files
include = [ "inc" ]         # List of include directories
lib = [ "glfw" ]            # List of libraries

[target.x86_64-windows-64]
libs = [ "lib/win64" ]      # Library search directories

[target.x86_64-windows-32]
libs = [ "lib/win32" ]      # Library search directories

More detailed information about the manifest file can be found here.

Commands

Common commands you'll be using may include :

  • whisk build <path> <target> [-v] builds a project.
  • whisk run <path> [-v] builds and then runs a project.
  • whisk clean <path> cleans a project. (removes /bin directory)

For more detailed information use --help or -h.


© 2023 Max <mxcop>, All rights reserved — MIT.

About

A simplistic build system for C/C++

License:MIT License


Languages

Language:Rust 100.0%