2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-30 05:52:24 +01:00
waf/demos/jni/wscript

27 lines
512 B
Plaintext
Raw Normal View History

2011-09-10 11:13:51 +02:00
#! /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')