modules/libbz2/src/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/modules/libbz2/src/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,46 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +EXPORTS += [
    1.11 +    'bzlib.h',
    1.12 +]
    1.13 +
    1.14 +# Placeholder for CSRCS= conversion.
    1.15 +csrcs = [
    1.16 +    'blocksort.c',
    1.17 +    'bzlib.c',
    1.18 +    'compress.c',
    1.19 +    'crctable.c',
    1.20 +    'decompress.c',
    1.21 +    'huffman.c',
    1.22 +    'randtable.c',
    1.23 +]
    1.24 +
    1.25 +HOST_SOURCES += csrcs
    1.26 +HOST_LIBRARY_NAME = 'hostbz2'
    1.27 +
    1.28 +LIBRARY_NAME = 'bz2'
    1.29 +
    1.30 +UNIFIED_SOURCES += [
    1.31 +    'blocksort.c',
    1.32 +    'bzlib.c',
    1.33 +    'compress.c',
    1.34 +    'crctable.c',
    1.35 +    'decompress.c',
    1.36 +    'huffman.c',
    1.37 +    'randtable.c',
    1.38 +]
    1.39 +
    1.40 +FORCE_STATIC_LIB = True
    1.41 +
    1.42 +# This is defined by the bzip2-1.0.3 Makefile.  It appears to be used to
    1.43 +# configure GLIBC to support large files.  This isn't something we care about
    1.44 +# at this stage, since we're only interested in the streaming API, but we
    1.45 +# define it here anyways for consistency.
    1.46 +DEFINES['_FILE_OFFSET_BITS'] = 64
    1.47 +
    1.48 +if CONFIG['OS_ARCH'] == 'WINNT':
    1.49 +    USE_STATIC_LIBS = True

mercurial