Add gcc commands to build a plugin to the HowTo.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4531 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2010-01-18 16:55:49 +00:00
parent 7c5e08399b
commit 920f5a55b8
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-01-18 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* doc/plugins.dox:
Add gcc commands to build a plugin to the HowTo.
2010-01-17 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* scripts/plugin_test.c:

View File

@ -481,6 +481,20 @@ void plugin_cleanup(void)
}
* @endcode
*
* @section building Building
* @code gcc -c plugin.c -fPIC `pkg-config --cflags geany` @endcode
*
* to make plugin.o, then:
*
* @code gcc plugin.o -o plugin.so -shared `pkg-config --libs geany`@endcode
*
* to make the plugin library plugin.so (or plugin.dll on Windows).
*
* Then just put the library into one of the paths Geany looks for plugins in, e.g. $prefix/lib/geany.
* See @ref paths "Installation paths" for details.
*
* @section realfunc Real functionality
*
* If you think this plugin seems not to implement any functionality right now and only wastes
* some memory, you are right. But it should compile and load/unload in Geany nicely.
* Now you have the very basic layout of a new plugin. Great, isn't it?