libraries + self building + work on extensions

This commit is contained in:
Hunter 2024-09-28 20:21:30 -04:00
parent b6ee9d0dc3
commit 3ddb2943bc
14 changed files with 97 additions and 39 deletions

17
HConfig
View file

@ -1,6 +1,5 @@
grbc_want_version("1.0")
grbc_load_platform("platform.hcfg")
grbc_load_profile("profile.hcfg")
local grbc_lib = grbc_library(LibraryConfig.new({
name = "libgrbc",
@ -13,9 +12,10 @@ local grbc_lib = grbc_library(LibraryConfig.new({
grbc_file("src/utils.cc"),
grbc_file("src/generator.cc"),
grbc_file("src/target_lib.cc"),
grbc_file("src/package.cc")
grbc_file("src/package.cc"),
grbc_file("src/ext.cc")
},
lib_type = LibraryType.Static,
lib_type = LibraryType.Shared,
requirements = {},
compile_flags = {},
@ -28,7 +28,10 @@ local grbc_lib = grbc_library(LibraryConfig.new({
package_config = PackageConfig.new({
name = "libgrbc",
libraries = {},
include_dirs = {},
include_dirs = {
grbc_file("include"),
grbc_file("vendor/sol2/include")
},
compile_flags = {},
linker_flags = {},
})
@ -51,13 +54,9 @@ local grbc_exe = grbc_executable(ExecutableConfig.new({
grbc_pkg("libgrbc")
},
compile_flags = {
grbc_compiler_define("HCONFIG", "")
},
linker_flags = {},
include_dirs = {
grbc_file("include"),
grbc_file("vendor/sol2/include")
}
include_dirs = {}
}))
-- Output the final build script