[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/devtools/waf/demos/tex
From:       Thomas Nagy <tnagyemail-mail () yahoo ! fr>
Date:       2006-09-19 21:42:31
Message-ID: 1158702151.164110.30099.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 586526 by tnagy:

Variant documentation.


 M  +31 -1     wscript  


--- trunk/playground/devtools/waf/demos/tex/wscript #586525:586526
@@ -3,7 +3,7 @@
 # Thomas Nagy, 2005, 2006 (ita)
 
 # the following two variables are used by the target "waf dist"
-VERSION='0.0.6'
+VERSION='0.0.9'
 APPNAME='tex_test'
 
 # these variables are mandatory,
@@ -20,3 +20,33 @@
 def set_options(opt):
 	pass
 
+# Using variants for building ps and pdf at the same time
+# assuming that all files are in the current directory
+
+#def build(bld):
+#	bld.set_variants('default psdir')
+#
+#	# the ps and pdf files cannot share their intermediate files
+#	# separate build dirs are necessary
+#
+#	# build a pdf file in the default directory
+#	obj = bld.create_obj('tex','pdflatex')
+#	obj.source = 'document.ltx'
+#	obj.outs = 'pdf'
+#
+#	# build a ps file in the variant
+#	psenv = bld.env_of_name('psdir')
+#	obj = bld.create_obj('tex','latex')
+#	obj.source = 'document.ltx'
+#	obj.outs = 'ps'
+#	obj.env = psenv
+
+#def configure(conf):
+#	conf.check_tool('Tex')
+#
+#	# set a variant called "psdir"
+#	env_variant2 = conf.env.copy()
+#	conf.set_env_name('psdir', env_variant2)
+#	env_variant2.set_variant('psdir')
+#	conf.setenv('psdir')
+
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic