From 8ff3047aecfacf2cc5e704e450de33917290c178 Mon Sep 17 00:00:00 2001 From: Interfiber Date: Sun, 29 Sep 2024 10:41:31 -0400 Subject: [PATCH] document pkg-config --- spec/ext.md | 2 +- spec/ext/GRBC_EXT_multi_file.md | 23 ----------------------- spec/ext/GRBC_EXT_pkg_config.md | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 24 deletions(-) delete mode 100644 spec/ext/GRBC_EXT_multi_file.md create mode 100644 spec/ext/GRBC_EXT_pkg_config.md diff --git a/spec/ext.md b/spec/ext.md index a9127de..1e68eca 100644 --- a/spec/ext.md +++ b/spec/ext.md @@ -5,7 +5,7 @@ Extensions can be loaded at runtime using grbc_ext(...), functions are then dump Extensions are built into the grbc executable, or can be compiled as a shared library and put into ```/usr/local/share/grbc/extensions```, ```C:\GRBC\Extensions\```, or ```~/.local/share/grbc/extensions``` ## Extension list -* GRBC_EXT_pkg_config [NOSUPPORT] +* GRBC_EXT_pkg_config * GRBC_EXT_multi_file [NOSUPPORT] * GRBC_EXT_cmake [NOSUPPORT] diff --git a/spec/ext/GRBC_EXT_multi_file.md b/spec/ext/GRBC_EXT_multi_file.md deleted file mode 100644 index cfc9477..0000000 --- a/spec/ext/GRBC_EXT_multi_file.md +++ /dev/null @@ -1,23 +0,0 @@ -# GRBC_EXT_multi_file -Multiple file support - -## Support -GRBC_EXT_multi_file is supported on all systems - -## Example -```lua --- No need to check since its always present! -grbc_ext("GRBC_EXT_multi_file") - - --- Load a project from a folder which contains an HConfig file -grbc_multi_file_import("FusionVk") - --- Load a project from a file besides HConfig -grbc_multi_file_import("OtherProject.hcfg") -``` - -## Functions - -### grbc_multi_file_import(file_path: String) -> Void -Import a project from the given folder \ No newline at end of file diff --git a/spec/ext/GRBC_EXT_pkg_config.md b/spec/ext/GRBC_EXT_pkg_config.md new file mode 100644 index 0000000..94aa368 --- /dev/null +++ b/spec/ext/GRBC_EXT_pkg_config.md @@ -0,0 +1,15 @@ +# GRBC_EXT_pkg_config +pkg-config support in GRBC + +## About +Author: Interfiber +Release Date: 9/29/24 + +## Example +```lua +-- Load extension +grbc_ext("GRBC_EXT_pkg_config") + +-- Get a Package object for the given package +grbc_pkg_config("lua") +``` \ No newline at end of file