extension work + static library linking
This commit is contained in:
parent
ffa0f40652
commit
b6ee9d0dc3
20 changed files with 568 additions and 131 deletions
51
HConfig
51
HConfig
|
@ -1,17 +1,44 @@
|
|||
grbc_want_version("1.0")
|
||||
grbc_load_platform("platform.hcfg")
|
||||
grbc_load_profile("profile.hcfg")
|
||||
|
||||
local grbc_lib = grbc_library(LibraryConfig.new({
|
||||
name = "libgrbc",
|
||||
language_type = LanguageType.Cpp,
|
||||
files = {
|
||||
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"),
|
||||
grbc_file("src/target_lib.cc"),
|
||||
grbc_file("src/package.cc")
|
||||
},
|
||||
lib_type = LibraryType.Static,
|
||||
|
||||
requirements = {},
|
||||
compile_flags = {},
|
||||
linker_flags = {},
|
||||
include_dirs = {
|
||||
grbc_file("include"),
|
||||
grbc_file("vendor/sol2/include")
|
||||
},
|
||||
|
||||
package_config = PackageConfig.new({
|
||||
name = "libgrbc",
|
||||
libraries = {},
|
||||
include_dirs = {},
|
||||
compile_flags = {},
|
||||
linker_flags = {},
|
||||
})
|
||||
}))
|
||||
|
||||
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")
|
||||
grbc_file("src/main.cc"),
|
||||
},
|
||||
|
||||
requirements = {
|
||||
|
@ -19,9 +46,13 @@ local grbc_exe = grbc_executable(ExecutableConfig.new({
|
|||
name = "lua",
|
||||
compiler_flags = "",
|
||||
linker_flags = "-llua -lm -ldl"
|
||||
})
|
||||
}),
|
||||
|
||||
grbc_pkg("libgrbc")
|
||||
},
|
||||
compile_flags = {
|
||||
grbc_compiler_define("HCONFIG", "")
|
||||
},
|
||||
compile_flags = {},
|
||||
linker_flags = {},
|
||||
include_dirs = {
|
||||
grbc_file("include"),
|
||||
|
@ -30,4 +61,4 @@ local grbc_exe = grbc_executable(ExecutableConfig.new({
|
|||
}))
|
||||
|
||||
-- Output the final build script
|
||||
grbc_build("ninja")
|
||||
grbc_build("ninja")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue