michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: EXPORTS += [ michael@0: 'bzlib.h', michael@0: ] michael@0: michael@0: # Placeholder for CSRCS= conversion. michael@0: csrcs = [ michael@0: 'blocksort.c', michael@0: 'bzlib.c', michael@0: 'compress.c', michael@0: 'crctable.c', michael@0: 'decompress.c', michael@0: 'huffman.c', michael@0: 'randtable.c', michael@0: ] michael@0: michael@0: HOST_SOURCES += csrcs michael@0: HOST_LIBRARY_NAME = 'hostbz2' michael@0: michael@0: LIBRARY_NAME = 'bz2' michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'blocksort.c', michael@0: 'bzlib.c', michael@0: 'compress.c', michael@0: 'crctable.c', michael@0: 'decompress.c', michael@0: 'huffman.c', michael@0: 'randtable.c', michael@0: ] michael@0: michael@0: FORCE_STATIC_LIB = True michael@0: michael@0: # This is defined by the bzip2-1.0.3 Makefile. It appears to be used to michael@0: # configure GLIBC to support large files. This isn't something we care about michael@0: # at this stage, since we're only interested in the streaming API, but we michael@0: # define it here anyways for consistency. michael@0: DEFINES['_FILE_OFFSET_BITS'] = 64 michael@0: michael@0: if CONFIG['OS_ARCH'] == 'WINNT': michael@0: USE_STATIC_LIBS = True