modules/libbz2/src/moz.build

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:525b787ab4c4
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/.
6
7 EXPORTS += [
8 'bzlib.h',
9 ]
10
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 ]
21
22 HOST_SOURCES += csrcs
23 HOST_LIBRARY_NAME = 'hostbz2'
24
25 LIBRARY_NAME = 'bz2'
26
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 ]
36
37 FORCE_STATIC_LIB = True
38
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
44
45 if CONFIG['OS_ARCH'] == 'WINNT':
46 USE_STATIC_LIBS = True

mercurial