modules/libbz2/src/moz.build

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     2 # vim: set filetype=python:
     3 # This Source Code Form is subject to the terms of the Mozilla Public
     4 # License, v. 2.0. If a copy of the MPL was not distributed with this
     5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     7 EXPORTS += [
     8     'bzlib.h',
     9 ]
    11 # Placeholder for CSRCS= conversion.
    12 csrcs = [
    13     'blocksort.c',
    14     'bzlib.c',
    15     'compress.c',
    16     'crctable.c',
    17     'decompress.c',
    18     'huffman.c',
    19     'randtable.c',
    20 ]
    22 HOST_SOURCES += csrcs
    23 HOST_LIBRARY_NAME = 'hostbz2'
    25 LIBRARY_NAME = 'bz2'
    27 UNIFIED_SOURCES += [
    28     'blocksort.c',
    29     'bzlib.c',
    30     'compress.c',
    31     'crctable.c',
    32     'decompress.c',
    33     'huffman.c',
    34     'randtable.c',
    35 ]
    37 FORCE_STATIC_LIB = True
    39 # This is defined by the bzip2-1.0.3 Makefile.  It appears to be used to
    40 # configure GLIBC to support large files.  This isn't something we care about
    41 # at this stage, since we're only interested in the streaming API, but we
    42 # define it here anyways for consistency.
    43 DEFINES['_FILE_OFFSET_BITS'] = 64
    45 if CONFIG['OS_ARCH'] == 'WINNT':
    46     USE_STATIC_LIBS = True

mercurial