wscript 660 B

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