wscript 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #! /usr/bin/env python
  2. # encoding: utf-8
  3. # Thomas Nagy, 2006-2016 (ita)
  4. #
  5. # The Waf network cache consists of a client
  6. # (waflib/extras/netcache_client.py) and a simple
  7. # tcp server that provides a way to share build
  8. # files over a a network.
  9. #
  10. # There are no restrictions to the use of the cache
  11. # at this point, so use with a firewall!
  12. #
  13. #
  14. # The Java server can be run in the current folder using:
  15. # rm -rf /tmp/wafcache/; javac Netcache.java && java Netcache
  16. #
  17. # Then run the example and compare the outputs:
  18. # waf configure clean build --zones=netcache
  19. # waf configure clean build --zones=netcache
  20. #
  21. APPNAME='netcache_test'
  22. top = '.'
  23. out = 'build'
  24. def options(opt):
  25. #opt.load('compiler_c')
  26. pass
  27. def configure(conf):
  28. #conf.load('compiler_c')
  29. conf.load('gcc')
  30. #conf.load('netcache_client')
  31. def build(bld):
  32. bld.load('netcache_client')
  33. bld(
  34. features = 'c cprogram',
  35. source = 'main.c',
  36. target = 'test_c_app',
  37. uselib_local = 'my_static_lib',
  38. includes = '. /usr/include')
  39. bld(
  40. features = 'c cstlib',
  41. source = 'test_staticlib.c',
  42. target='my_static_lib')