2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-11 12:49:06 +01:00
waf/docs/unsorted.txt

17 lines
707 B
Plaintext
Raw Normal View History

2011-09-10 11:13:51 +02:00
- to make a fully static app, replace env.SHLIB_MARKER and env.STLIB_MARKER
- string expansion on other attributes
- compile targets at the end
- set CC and LINK to a particular variable (the wine example)
- show a complete example of c compilation with rules vs task generator code (procedural vs object-oriented)
- get the path of a config test executable created
from waflib.TaskGen import feature, after_method
@feature('getpath')
@after_method('apply_link')
def getpath(self):
self.bld.retval = self.link_task.outputs[0].abspath()
ret = conf.check_cc(fragment="""#include<stdio.h>\nint main(){fprintf(stderr, "mu"); printf("%d", 22);return 0;}\n""", features='c cprogram getpath')
print ret