libraries + self building + work on extensions
This commit is contained in:
parent
b6ee9d0dc3
commit
3ddb2943bc
14 changed files with 97 additions and 39 deletions
|
@ -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;
|
||||
};
|
|
@ -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;
|
||||
|
|
|
@ -25,6 +25,8 @@ struct Package {
|
|||
|
||||
std::string name;
|
||||
|
||||
std::string file_name;
|
||||
|
||||
std::string compiler_flags;
|
||||
|
||||
std::string linker_flags;
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue