waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

wscript (1090B)


      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 
     22 APPNAME='netcache_test'
     23 
     24 top = '.'
     25 out = 'build'
     26 
     27 def options(opt):
     28 	#opt.load('compiler_c')
     29 	pass
     30 
     31 def configure(conf):
     32 	#conf.load('compiler_c')
     33 	conf.load('gcc')
     34 	#conf.load('netcache_client')
     35 
     36 def build(bld):
     37 	bld.load('netcache_client')
     38 	bld(
     39 		features = 'c cprogram',
     40 		source = 'main.c',
     41 		target = 'test_c_app',
     42 		uselib_local = 'my_static_lib',
     43 		includes = '. /usr/include')
     44 
     45 	bld(
     46 		features = 'c cstlib',
     47 		source = 'test_staticlib.c',
     48 		target='my_static_lib')
     49