|
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.vorbis += [ |
|
8 'include/vorbis/codec.h', |
|
9 'include/vorbis/vorbisenc.h', |
|
10 ] |
|
11 |
|
12 UNIFIED_SOURCES += [ |
|
13 'lib/vorbis_analysis.c', |
|
14 'lib/vorbis_bitrate.c', |
|
15 'lib/vorbis_block.c', |
|
16 'lib/vorbis_envelope.c', |
|
17 'lib/vorbis_floor0.c', |
|
18 'lib/vorbis_lookup.c', |
|
19 'lib/vorbis_lpc.c', |
|
20 'lib/vorbis_lsp.c', |
|
21 'lib/vorbis_mapping0.c', |
|
22 'lib/vorbis_mdct.c', |
|
23 'lib/vorbis_psy.c', |
|
24 'lib/vorbis_registry.c', |
|
25 'lib/vorbis_sharedbook.c', |
|
26 'lib/vorbis_smallft.c', |
|
27 'lib/vorbis_synthesis.c', |
|
28 'lib/vorbisenc.c', |
|
29 ] |
|
30 |
|
31 # These files can't be unified because of function redefinitions. |
|
32 SOURCES += [ |
|
33 'lib/vorbis_codebook.c', |
|
34 'lib/vorbis_floor1.c', |
|
35 'lib/vorbis_info.c', |
|
36 'lib/vorbis_res0.c', |
|
37 'lib/vorbis_window.c', |
|
38 ] |
|
39 |
|
40 LOCAL_INCLUDES += ['lib'] |
|
41 |
|
42 if CONFIG['OS_ARCH'] == 'AIX': |
|
43 DEFINES['alloca'] = '__alloca' |
|
44 |
|
45 if CONFIG['OS_ARCH'] == 'SunOS': |
|
46 DEFINES['HAVE_ALLOCA_H'] = True |
|
47 |
|
48 MSVC_ENABLE_PGO = True |
|
49 |
|
50 if CONFIG['GKMEDIAS_SHARED_LIBRARY']: |
|
51 NO_VISIBILITY_FLAGS = True |
|
52 |
|
53 FINAL_LIBRARY = 'gkmedias' |
|
54 |
|
55 # Suppress warnings in third-party code. |
|
56 if CONFIG['GNU_CC']: |
|
57 CFLAGS += ['-Wno-uninitialized'] |