pkg-config work
This commit is contained in:
parent
3ddb2943bc
commit
fc1964f766
10 changed files with 152 additions and 501 deletions
|
@ -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;
|
||||
};
|
7
include/grbc/ext_pkg_config.h
Normal file
7
include/grbc/ext_pkg_config.h
Normal file
|
@ -0,0 +1,7 @@
|
|||
#pragma once
|
||||
#include "grbc/ext.h"
|
||||
|
||||
/**
|
||||
* Get the grbc pkg-config extension
|
||||
*/
|
||||
Extension grbc_pkg_config();
|
|
@ -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);
|
Loading…
Add table
Add a link
Reference in a new issue