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

View file

@ -1,3 +1,8 @@
#pragma once
#include <string>
#define GRBC_EXT_pkg_config_NAME "GRBC_EXT_pkg_config"
#define GRBC_EXT_pkg_config_NAME "GRBC_EXT_pkg_config"
struct Extension {
std::string name;
};

View file

@ -25,6 +25,7 @@ struct GeneratorCompileCommand {
struct GeneratorLinkTargetCommand {
std::vector<std::string> object_files;
std::vector<std::string> libraries; // Libraries which need to be built before this
std::string linker_flags;
std::string output_name;

View file

@ -25,6 +25,8 @@ struct Package {
std::string name;
std::string file_name;
std::string compiler_flags;
std::string linker_flags;

View file

@ -14,6 +14,9 @@ struct GState {
std::unordered_map<std::string, Package> packages;
std::string global_compiler_flags = " ";
std::string global_linker_flags = " ";
std::string ninja_output;
static GState& get() {