wscript 512 B

1234567891011121314151617181920212223242526
  1. #! /usr/bin/env python
  2. # encoding: utf-8
  3. # Thomas Zellman 2009
  4. top = '.'
  5. out = 'build'
  6. def options(opt):
  7. opt.load('compiler_c')
  8. opt.load('java')
  9. def configure(conf):
  10. conf.load('compiler_c')
  11. conf.load('java')
  12. conf.check_jni_headers()
  13. def build(bld):
  14. bld(features='javac jar', srcdir='src/java', outdir='src/java', basedir='src/java', destfile='stringUtils.jar')
  15. bld.shlib(
  16. source = 'src/jni/source/StringUtils.c',
  17. includes = 'src/jni/include',
  18. target = 'stringUtils',
  19. uselib = 'JAVA')