33 lines
810 B
Plaintext
33 lines
810 B
Plaintext
grbc_want_version("1.0")
|
|
grbc_load_platform("platform.hcfg")
|
|
|
|
local grbc_exe = grbc_executable(ExecutableConfig.new({
|
|
name = "grbc",
|
|
language_type = LanguageType.Cpp,
|
|
files = {
|
|
grbc_file("src/main.cc"),
|
|
grbc_file("src/file.cc"),
|
|
grbc_file("src/ninja.cc"),
|
|
grbc_file("src/platform.cc"),
|
|
grbc_file("src/target_exe.cc"),
|
|
grbc_file("src/utils.cc"),
|
|
grbc_file("src/generator.cc")
|
|
},
|
|
|
|
requirements = {
|
|
Package.new({
|
|
name = "lua",
|
|
compiler_flags = "",
|
|
linker_flags = "-llua -lm -ldl"
|
|
})
|
|
},
|
|
compile_flags = {},
|
|
linker_flags = {},
|
|
include_dirs = {
|
|
grbc_file("include"),
|
|
grbc_file("vendor/sol2/include")
|
|
}
|
|
}))
|
|
|
|
-- Output the final build script
|
|
grbc_build("ninja") |