task support

This commit is contained in:
Hunter 2024-09-29 15:24:13 -04:00
parent d9e4642472
commit dfcf57aae1
12 changed files with 134 additions and 12 deletions

View file

@ -46,7 +46,8 @@ local grbc_lib = grbc_library(LibraryConfig.new({
grbc_file("src/generator.cc"),
grbc_file("src/target_lib.cc"),
grbc_file("src/package.cc"),
grbc_file("src/ext.cc")
grbc_file("src/ext.cc"),
grbc_file("src/task.cc")
},
lib_type = LibraryType.Static,
@ -88,5 +89,11 @@ local grbc_exe = grbc_executable(ExecutableConfig.new({
include_dirs = {}
}))
grbc_task(TaskConfig.new({
name = "Clean build",
task_id = "clean",
shell_script = "ninja -t clean"
}))
-- Output the final build script
grbc_build("ninja")