profile support

This commit is contained in:
Hunter 2024-09-29 14:51:11 -04:00
parent f32bf63c98
commit 2bb469b26f
13 changed files with 142 additions and 91 deletions

16
HConfig
View file

@ -1,13 +1,17 @@
grbc_want_version("1.0")
grbc_ext("GRBC_EXT_pkg_config")
grbc_ext("GRBC_EXT_profiles")
local grbc_pkg_config_ext = grbc_library(LibraryConfig.new({
name = "libgrbc_pkg_config",
grbc_set_profile("release")
local grbc_extensions = grbc_library(LibraryConfig.new({
name = "libgrbc_extensions",
language_type = LanguageType.Cpp,
files = {
grbc_file("src/ext_pkg_config.cc")
grbc_file("src/ext_pkg_config.cc"),
grbc_file("src/ext_profiles.cc")
},
lib_type = LibraryType.Shared,
lib_type = LibraryType.Static,
requirements = {},
compile_flags = {},
@ -19,7 +23,7 @@ local grbc_pkg_config_ext = grbc_library(LibraryConfig.new({
},
package_config = PackageConfig.new({
name = "libgrbc_pkg_config",
name = "libgrbc_extensions",
libraries = {},
include_dirs = {
grbc_file("include"),
@ -76,7 +80,7 @@ local grbc_exe = grbc_executable(ExecutableConfig.new({
requirements = {
grbc_pkg_config("lua"),
grbc_pkg("libgrbc"),
grbc_pkg("libgrbc_pkg_config")
grbc_pkg("libgrbc_extensions")
},
compile_flags = {
},