waf

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

wscript (660B)


      1 #! /usr/bin/env python
      2 # encoding: utf-8
      3 # Thomas Nagy, 2010 (ita)
      4 
      5 """
      6 scala example
      7 """
      8 
      9 VERSION = '0.0.1'
     10 APPNAME = 'scala_test'
     11 
     12 top = '.'
     13 
     14 def configure(conf):
     15 	conf.load('scala')
     16 	try:
     17 		conf.load('java')
     18 	except:
     19 		pass
     20 
     21 def build(bld):
     22 
     23 	bld(features   = 'scalac',    # there are scala files to process
     24 		srcdir     = '.',         # folder containing the sources to compile
     25 		outdir     = 'out',       # folder where to output the classes (in the build directory)
     26 		classpath  = ['.', '..'],
     27 		name       = 'scala_one'
     28 		)
     29 
     30 	if bld.env.JAR:
     31 		bld(
     32 			features  = 'jar',
     33 			basedir   = 'out',
     34 			destfile  = 'filez.jar',
     35 			use       = 'scala_one'
     36 		)
     37