pkg-config work

This commit is contained in:
Hunter 2024-09-29 10:08:34 -04:00
parent 3ddb2943bc
commit fc1964f766
10 changed files with 152 additions and 501 deletions

View file

@ -1,8 +1,13 @@
#pragma once
#include "sol/state.hpp"
#include <string>
#define GRBC_EXT_pkg_config_NAME "GRBC_EXT_pkg_config"
typedef void (*EXT_HookInit)(sol::state &lua);
struct Extension {
std::string name;
EXT_HookInit hook_init = nullptr;
};

View file

@ -0,0 +1,7 @@
#pragma once
#include "grbc/ext.h"
/**
* Get the grbc pkg-config extension
*/
Extension grbc_pkg_config();

View file

@ -1,4 +1,5 @@
#pragma once
#include "grbc/ext.h"
#include <sol/table.hpp>
#include <sol/types.hpp>
#include <string>
@ -222,4 +223,8 @@ std::string grbc_get_lib_extension(LibraryType lib_type);
Package grbc_bake_package_config(const PackageConfig &config);
Package grbc_pkg(const std::string &package_name);
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);