task support
This commit is contained in:
parent
d9e4642472
commit
dfcf57aae1
12 changed files with 134 additions and 12 deletions
|
@ -162,4 +162,18 @@ enum LanguageType {
|
|||
LanguageType_CPP,
|
||||
LanguageType_C
|
||||
};
|
||||
```
|
||||
|
||||
## TaskConfig
|
||||
```c++
|
||||
struct TaskConfig {
|
||||
/// Name of the task, can have spaces unlike task_id
|
||||
string task_name;
|
||||
|
||||
/// ID used when invoking the task, ex: ```ninja task:helloworld```
|
||||
string task_id;
|
||||
|
||||
/// Shell script to be executed when this task is called
|
||||
string shell_script;
|
||||
};
|
||||
```
|
|
@ -80,4 +80,7 @@ Generate a compiler flag to define a variable
|
|||
Get the given extension for a library file on the current platform
|
||||
|
||||
## [X] grbc_bake_package_config(config: PackageConfig) -> Package
|
||||
Convert a PackageConfig into a Package
|
||||
Convert a PackageConfig into a Package
|
||||
|
||||
## [X] grbc_task(config: TaskConfig) -> Void
|
||||
Create a task and add it to the build script
|
Loading…
Add table
Add a link
Reference in a new issue