unsorted.txt 707 B

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