You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
waf_old/docs/unsorted.txt

17 lines
707 B
Plaintext

- 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