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