-
Notifications
You must be signed in to change notification settings - Fork 760
Building HPM Plugin for gcc
johnlincon edited this page Jul 3, 2021
·
2 revisions
This is a guide on how to prepare your gcc environment for a new HPM plugin.
In your src/plugins/Makefile.in file you should find something like:
MYPLUGINS =
add your plugin name (without the .c extension), after MYPLUGINS = save and close.
Lastly, run ./configure and make plugins command at the root folder of Hercules, and you're good to go.
Edit conf/plugins.conf and add your plugin in the plugins list:
plugins_list: [ /* Enable HPMHooking when plugins in use rely on Hooking */ "HPMHooking", //"example", //"other", "my_cool_plugin", "my_second_plugin", ]
Run your server.(And plugins will be loaded)