nuclear@7: Author: John Tsiombikas nuclear@7: Contact: nuclear@member.fsf.org nuclear@7: nuclear@7: Adding window system modules nuclear@7: ---------------------------- nuclear@7: Window system modules are detected automatically by configure. For this to work, nuclear@7: each module must be a single file in src/ called wsys_whatever.c. nuclear@7: nuclear@7: Somewhere in the module, there must be a comment of the form: /* link-with: nuclear@7: whatever */ where the whatever part is passed to the linker, and is also used to nuclear@7: determine at compile time if the module should be enabled. nuclear@7: nuclear@7: Finally the module source code must start by including "config.h", and the rest nuclear@7: of it from that point on must be in a big ifdef USE_WSYS_MODULE_WHATEVER block. nuclear@31: nuclear@31: Building on windows nuclear@31: ------------------- nuclear@31: If you decide to use the visual studio project files to build sgl, you still nuclear@31: need to run the configure script in order to generate config.h and modules.c. nuclear@31: Msys or cygwin should do the trick.