ext_easy impl + demo + fixes
This commit is contained in:
parent
1036d97ec6
commit
ec26aa89e7
33 changed files with 2796 additions and 40 deletions
46
example/HConfig
Normal file
46
example/HConfig
Normal file
|
@ -0,0 +1,46 @@
|
|||
grbc_want_version("1.0")
|
||||
grbc_ext("GRBC_EXT_profiles")
|
||||
|
||||
local test_lib = grbc_library(LibraryConfig.new({
|
||||
name = "libtest",
|
||||
files = {
|
||||
grbc_file("test.c")
|
||||
},
|
||||
requirements = {},
|
||||
include_dirs = {
|
||||
grbc_file("include")
|
||||
},
|
||||
lib_type = LibraryType.Shared,
|
||||
compile_flags = {},
|
||||
linker_flags = {},
|
||||
package_config = PackageConfig.new({
|
||||
name = "libtest",
|
||||
libraries = {},
|
||||
include_dirs = {
|
||||
grbc_file("include")
|
||||
},
|
||||
compile_flags = {},
|
||||
linker_flags = {}
|
||||
})
|
||||
}))
|
||||
|
||||
local hello_world = grbc_executable(ExecutableConfig.new({
|
||||
name = "hello_world",
|
||||
files = {
|
||||
grbc_file("main.c")
|
||||
},
|
||||
requirements = {
|
||||
grbc_pkg("libtest")
|
||||
},
|
||||
include_dirs = {},
|
||||
compile_flags = {},
|
||||
linker_flags = {}
|
||||
}))
|
||||
|
||||
grbc_task(TaskConfig.new({
|
||||
name = "Clean",
|
||||
task_id = "clean",
|
||||
shell_script = "ninja -t clean"
|
||||
}))
|
||||
|
||||
grbc_build("ninja")
|
Loading…
Add table
Add a link
Reference in a new issue