# -*- mode: python -*- # coding=utf-8 #***************************************************************************** # The Dark Mod GPL Source Code # # This file is part of the The Dark Mod Source Code, originally based # on the Doom 3 GPL Source Code as published in 2011. # # The Dark Mod Source Code is free software: you can redistribute it # and/or modify it under the terms of the GNU General Public License as # published by the Free Software Foundation, either version 3 of the License, # or (at your option) any later version. For details, see LICENSE.TXT. # # Project: The Dark Mod Updater (http://www.thedarkmod.com/) # # $Revision$ (Revision of last commit) # $Date$ (Date of last commit) # $Author$ (Author of last commit) # #***************************************************************************** import string def BuildList( s_prefix, s_string ): s_list = string.split( s_string ) for i in range( len( s_list ) ): s_list[ i ] = s_prefix + '/' + s_list[ i ] return s_list Import( 'GLOBALS' ) Import( GLOBALS ) ziploader_string = ' \ zlib/adler32.c \ zlib/compress.c \ zlib/crc32.c \ zlib/deflate.c \ zlib/gzclose.c \ zlib/gzlib.c \ zlib/gzread.c \ zlib/gzwrite.c \ zlib/infback.c \ zlib/inffast.c \ zlib/inflate.c \ zlib/inftrees.c \ zlib/trees.c \ zlib/uncompr.c \ zlib/zutil.c \ minizip/ioapi.c \ minizip/mztools.c \ minizip/unzip.c \ minizip/zip.c' ziploader_list = BuildList( '', ziploader_string ) for i in range( len( ziploader_list ) ): ziploader_list[ i ] = './../lib/' + ziploader_list[ i ] local_env = g_env.Clone() local_env.Append(CPPPATH = './../include') local_env.Append(CPPPATH = './../include/minizip') local_env.Append(CPPPATH = './../include/zlib') ret_list = [] for f in ziploader_list: ret_list += local_env.SharedObject( source = f ) Return( 'ret_list' )