task support
This commit is contained in:
parent
d9e4642472
commit
dfcf57aae1
12 changed files with 134 additions and 12 deletions
9
HConfig
9
HConfig
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue