2021-03-05 13:57:52 +01:00
|
|
|
#! /usr/bin/env python
|
|
|
|
# encoding: utf-8
|
|
|
|
# a1batross, mittorn, 2018
|
|
|
|
|
|
|
|
def options(opt):
|
|
|
|
# TODO: any options for mdldec?
|
|
|
|
grp = opt.get_option_group('Utilities options')
|
|
|
|
|
|
|
|
grp.add_option('--disable-utils-mdldec', action = 'store_true', dest = 'DISABLE_UTILS_MDLDEC', default = False,
|
|
|
|
help = 'disable studio model decompiler utility [default: %default]')
|
|
|
|
|
|
|
|
def configure(conf):
|
|
|
|
conf.env.DISABLE_UTILS_MDLDEC = conf.options.DISABLE_UTILS_MDLDEC
|
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
if bld.env.DISABLE_UTILS_MDLDEC:
|
|
|
|
return
|
|
|
|
|
2022-09-10 19:05:58 +02:00
|
|
|
bld(source = bld.path.ant_glob('*.c'),
|
2021-03-05 13:57:52 +01:00
|
|
|
target = 'mdldec',
|
|
|
|
features = 'c cprogram',
|
2022-09-10 20:48:39 +02:00
|
|
|
includes = '.',
|
2024-01-30 13:04:57 +01:00
|
|
|
use = 'engine_includes public M werror',
|
2021-03-05 13:57:52 +01:00
|
|
|
install_path = bld.env.BINDIR,
|
2021-03-05 15:59:54 +01:00
|
|
|
subsystem = bld.env.CONSOLE_SUBSYSTEM
|
2021-03-05 13:57:52 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
bld.install_files(bld.env.SHAREDIR, 'res/activities.txt')
|