mirror of https://gitlab.com/ita1024/waf
				
				
				
			
			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.
		
		
		
		
		
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			531 B
		
	
	
	
		
			Python
		
	
			
		
		
	
	
			23 lines
		
	
	
		
			531 B
		
	
	
	
		
			Python
		
	
#! /usr/bin/env python
 | 
						|
 | 
						|
bld.stlib(
 | 
						|
	source   = 'test_staticlib.c',
 | 
						|
	target   = 'my_static_lib')
 | 
						|
 | 
						|
bld.program(
 | 
						|
	source   = 'main.c',
 | 
						|
	target   = 'test_static_link',
 | 
						|
	includes = '.',
 | 
						|
	use      = 'my_static_lib')
 | 
						|
 | 
						|
def r1(self):
 | 
						|
	import time
 | 
						|
	time.sleep(1)
 | 
						|
	self.outputs[0].write('\n')
 | 
						|
bld(rule=r1, target='foo.h', before=['c'])
 | 
						|
 | 
						|
# the default scanner may enforce the build order on generated headers, but it is just
 | 
						|
# better and faster to set before=['c', 'cxx'] explicitly
 | 
						|
# the dependency processing for 'gccdeps' also requires it
 | 
						|
 |