pkg-config extension

This commit is contained in:
Hunter 2024-09-29 10:39:24 -04:00
parent fc1964f766
commit 3183c676de
6 changed files with 92 additions and 23 deletions

View file

@ -227,4 +227,4 @@ Package grbc_pkg(const std::string &package_name);
void grbc_ext(const std::string &extension_id);
void grbc_register_ext(const std::string &extension_id, const Extension &ext);
void grbc_register_ext(const Extension &ext);

View file

@ -1,9 +1,11 @@
#pragma once
#include "grbc/ext.h"
#include "grbc/generator.h"
#include "grbc/spec.h"
#include <sol/sol.hpp>
#include <string>
#include <unordered_map>
#include <vector>
struct GState {
Platform current_platform;
@ -14,6 +16,8 @@ struct GState {
std::unordered_map<std::string, Package> packages;
std::vector<Extension> extensions;
std::string global_compiler_flags = " ";
std::string global_linker_flags = " ";