Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finalize configuration syntax #2

Open
nordtechtiger opened this issue Oct 10, 2024 · 0 comments
Open

Finalize configuration syntax #2

nordtechtiger opened this issue Oct 10, 2024 · 0 comments
Labels
enhancement New feature or request pre-stable

Comments

@nordtechtiger
Copy link
Owner

nordtechtiger commented Oct 10, 2024

This is the place to discuss general (or specific) changes to the syntax of the Quickbuild configuration language.

Here's the current syntax for reference.

# General compiler arguments
compiler = "clang++";
flags = "-g -O0 -Wall -Wextra -pthread -pedantic-errors";

# Files to compile
sources = "src/*.cpp";
headers = "src/*.hpp";

# Files to create
objects = sources: "src/*.cpp" -> "obj/*.o";
binary = "./bin/quickbuild";

# Main target
"quickbuild" {
  depends = objects, headers;
  run = "[compiler] [flags] [objects] -o [binary]";
}

# Object files
objects as obj {
  depends = obj: "obj/*.o" -> "src/*.cpp";
  run = "[compiler] [flags] -c [depends] -o [obj]";
}

# Run
"run" {
  depends = "quickbuild";
  run = "[binary]";
}

# Clean
"clean" {
  run = "rm [objects]",
        "rm [binary]";
}
@nordtechtiger nordtechtiger added enhancement New feature or request pre-stable labels Oct 10, 2024
@nordtechtiger nordtechtiger mentioned this issue Dec 7, 2024
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pre-stable
Projects
None yet
Development

No branches or pull requests

1 participant