annotate README @ 9:5efd62ff354a
- configure now also heeds mac-framework: options in modules
- cleaned up the generated module.c a bit
author |
John Tsiombikas <nuclear@siggraph.org> |
date |
Sat, 14 May 2011 08:58:49 +0300 |
parents |
|
children |
124195562f7e |
rev |
line source |
nuclear@7
|
1 Author: John Tsiombikas
|
nuclear@7
|
2 Contact: nuclear@member.fsf.org
|
nuclear@7
|
3
|
nuclear@7
|
4 Adding window system modules
|
nuclear@7
|
5 ----------------------------
|
nuclear@7
|
6 Window system modules are detected automatically by configure. For this to work,
|
nuclear@7
|
7 each module must be a single file in src/ called wsys_whatever.c.
|
nuclear@7
|
8
|
nuclear@7
|
9 Somewhere in the module, there must be a comment of the form: /* link-with:
|
nuclear@7
|
10 whatever */ where the whatever part is passed to the linker, and is also used to
|
nuclear@7
|
11 determine at compile time if the module should be enabled.
|
nuclear@7
|
12
|
nuclear@7
|
13 Finally the module source code must start by including "config.h", and the rest
|
nuclear@7
|
14 of it from that point on must be in a big ifdef USE_WSYS_MODULE_WHATEVER block.
|