waf

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

wscript (887B)


      1 #! /usr/bin/env python
      2 # encoding: utf-8
      3 # Thomas Nagy, 2005-2015 (ita)
      4 
      5 VERSION='1.0.0'
      6 APPNAME='tex_test'
      7 
      8 top = '.'
      9 out = 'build'
     10 
     11 def configure(conf):
     12 	conf.load('tex')
     13 	if not conf.env.PDFLATEX:
     14 		conf.fatal('could not find the program pdflatex')
     15 	if not conf.env.MAKEGLOSSARIES:
     16 		conf.fatal('could not find the program makeglossaries which is absolutely required for this example')
     17 
     18 
     19 	# and example of a complex configuration test
     20 	def build_latex_test(bld):
     21 		def write_tex(tsk):
     22 			tsk.outputs[0].write(r'''\documentclass[a4paper,12pt]{article}  \usepackage{ucs}  \begin{document} test \end{document} ''')
     23 		bld(rule=write_tex, target='main.tex')
     24 		bld(features='tex', type='pdflatex', source='main.tex', prompt=0)
     25 	conf.test(build_fun=build_latex_test, msg='Checking for UCS', okmsg='ok', errmsg='ucs.sty is missing install latex-extras')
     26 
     27 def build(bld):
     28 	bld.recurse('src')
     29