pkg-config work

This commit is contained in:
Hunter 2024-09-29 10:08:34 -04:00
parent 3ddb2943bc
commit fc1964f766
10 changed files with 152 additions and 501 deletions

34
HConfig
View file

@ -1,6 +1,35 @@
grbc_want_version("1.0")
grbc_load_platform("platform.hcfg")
local grbc_pkg_config_ext = grbc_library(LibraryConfig.new({
name = "libgrbc_pkg_config",
language_type = LanguageType.Cpp,
files = {
grbc_file("src/ext_pkg_config.cc")
},
lib_type = LibraryType.Shared,
requirements = {},
compile_flags = {},
linker_flags = {},
include_dirs = {
"include",
"vendor/sol2/include"
},
package_config = PackageConfig.new({
name = "libgrbc_pkg_config",
libraries = {},
include_dirs = {
grbc_file("include"),
grbc_file("vendor/sol2/include")
},
compile_flags = {},
linker_flags = {},
})
}))
local grbc_lib = grbc_library(LibraryConfig.new({
name = "libgrbc",
language_type = LanguageType.Cpp,
@ -15,7 +44,7 @@ local grbc_lib = grbc_library(LibraryConfig.new({
grbc_file("src/package.cc"),
grbc_file("src/ext.cc")
},
lib_type = LibraryType.Shared,
lib_type = LibraryType.Static,
requirements = {},
compile_flags = {},
@ -51,7 +80,8 @@ local grbc_exe = grbc_executable(ExecutableConfig.new({
linker_flags = "-llua -lm -ldl"
}),
grbc_pkg("libgrbc")
grbc_pkg("libgrbc"),
grbc_pkg("libgrbc_pkg_config")
},
compile_flags = {
},