Alibek Omarov
4 years ago
2 changed files with 47 additions and 2 deletions
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
#! /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 |
||||
|
||||
source = bld.path.ant_glob('*.c') |
||||
includes = '. ../../common ../../engine ../../engine/common ../../engine/common/imagelib ../../public' |
||||
libs = [ 'public', 'M' ] |
||||
|
||||
bld( |
||||
source = source, |
||||
target = 'mdldec', |
||||
features = 'c cprogram', |
||||
includes = includes, |
||||
use = libs, |
||||
install_path = bld.env.BINDIR, |
||||
subsystem = bld.env.MSVC_SUBSYSTEM |
||||
) |
||||
|
||||
bld.install_files(bld.env.SHAREDIR, 'res/activities.txt') |
Loading…
Reference in new issue