2019-04-25 03:23:30 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# encoding: utf-8
|
|
|
|
# a1batross, 2019
|
|
|
|
|
|
|
|
def options(opt):
|
|
|
|
# opt.load('java')
|
2019-08-28 00:17:39 +02:00
|
|
|
opt.load('android')
|
2019-04-25 03:23:30 +02:00
|
|
|
return
|
|
|
|
|
|
|
|
def configure(conf):
|
|
|
|
conf.load('android')
|
|
|
|
conf.env.D8_DEBUG = conf.options.BUILD_TYPE != 'release'
|
|
|
|
# conf.load('java')
|
|
|
|
return
|
|
|
|
|
|
|
|
def build(bld):
|
2019-12-03 23:16:34 +01:00
|
|
|
tsk = bld(features = 'android javac',
|
2019-04-25 03:23:30 +02:00
|
|
|
srcdir = 'src',
|
|
|
|
compat = '1.6',
|
2019-09-27 04:33:12 +02:00
|
|
|
name = 'xashdroid',
|
2019-09-10 07:27:21 +02:00
|
|
|
jni = 'lib',
|
2019-09-27 04:33:12 +02:00
|
|
|
keystore = bld.path.parent.find_node('debug.keystore'),
|
2019-04-25 03:37:28 +02:00
|
|
|
debug = bld.env.D8_DEBUG,
|
2019-11-29 17:42:48 +01:00
|
|
|
target_api = 28)
|
2019-12-03 23:16:34 +01:00
|
|
|
|
|
|
|
tsk.env.append_unique('JAVACFLAGS', ['-target', '1.6'])
|
2019-04-25 03:23:30 +02:00
|
|
|
return
|