Alibek Omarov
2 years ago
2 changed files with 39 additions and 1 deletions
@ -0,0 +1,29 @@
@@ -0,0 +1,29 @@
|
||||
#! /usr/bin/env python |
||||
# encoding: utf-8 |
||||
|
||||
import os |
||||
|
||||
def options(opt): |
||||
pass |
||||
|
||||
def configure(conf): |
||||
if not conf.path.find_dir('xash-extras'): |
||||
conf.fatal('Can\'t find xash-extras submodule.') |
||||
return |
||||
|
||||
conf.load('zip') |
||||
|
||||
def build(bld): |
||||
srcdir = bld.path.find_dir('xash-extras') |
||||
|
||||
if bld.env.DEST_OS in ['android']: |
||||
install_path = bld.env.PREFIX |
||||
else: |
||||
install_path = os.path.join(bld.env.SHAREDIR, bld.env.GAMEDIR) |
||||
|
||||
bld(features='zip', |
||||
name = 'extras.pk3', |
||||
files = srcdir.ant_glob('**/*'), |
||||
relative_to = srcdir, |
||||
compresslevel = 0, |
||||
install_path = install_path) |
Loading…
Reference in new issue