waf

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

wscript (519B)


      1 #!/usr/bin/env python
      2 # encoding: utf-8
      3 # Thomas Nagy, 2010 (ita)
      4 
      5 top = '.'
      6 out = '.'
      7 
      8 def configure(conf):
      9 	conf.find_program('convert', var='CONVERT')
     10 	conf.find_program('dia', var='DIA')
     11 
     12 def build(bld):
     13 
     14 	for x in bld.path.ant_glob('*.svg'):
     15 		bld(
     16 		 rule='${CONVERT} -density 600 ${SRC} ${TGT}',
     17 		 source=[x],
     18 		 target=x.change_ext('.png'),
     19 		)
     20 	
     21 	for x in bld.path.ant_glob('*.dia'):
     22 		bld(
     23 		 rule='${DIA} -t png ${SRC} -e ${TGT}',
     24 		 source=[x],
     25 		 target=x.change_ext('.png'),
     26 		)
     27 
     28 def options(opt):
     29 	pass