command-line option support + switch compiler profile on command line

This commit is contained in:
Hunter 2024-09-29 16:35:45 -04:00
parent dfcf57aae1
commit 816dcbe118
12 changed files with 359 additions and 155 deletions

View file

@ -2,8 +2,6 @@ grbc_want_version("1.0")
grbc_ext("GRBC_EXT_pkg_config")
grbc_ext("GRBC_EXT_profiles")
grbc_set_profile("release")
local grbc_extensions = grbc_library(LibraryConfig.new({
name = "libgrbc_extensions",
language_type = LanguageType.Cpp,
@ -47,7 +45,8 @@ local grbc_lib = grbc_library(LibraryConfig.new({
grbc_file("src/target_lib.cc"),
grbc_file("src/package.cc"),
grbc_file("src/ext.cc"),
grbc_file("src/task.cc")
grbc_file("src/task.cc"),
grbc_file("src/options.cc")
},
lib_type = LibraryType.Static,