You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
512 B
Python
27 lines
512 B
Python
#! /usr/bin/env python
|
|
# encoding: utf-8
|
|
# Thomas Zellman 2009
|
|
|
|
top = '.'
|
|
out = 'build'
|
|
|
|
def options(opt):
|
|
opt.load('compiler_c')
|
|
opt.load('java')
|
|
|
|
def configure(conf):
|
|
conf.load('compiler_c')
|
|
conf.load('java')
|
|
|
|
conf.check_jni_headers()
|
|
|
|
def build(bld):
|
|
bld(features='javac jar', srcdir='src/java', outdir='src/java', basedir='src/java', destfile='stringUtils.jar')
|
|
|
|
bld.shlib(
|
|
source = 'src/jni/source/StringUtils.c',
|
|
includes = 'src/jni/include',
|
|
target = 'stringUtils',
|
|
uselib = 'JAVA')
|
|
|