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/.
8 'include/theora/codec.h',
9 'include/theora/theoradec.h',
10 'include/theora/theoraenc.h',
13 MSVC_ENABLE_PGO = True
15 FINAL_LIBRARY = 'gkmedias'
17 if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
18 NO_VISIBILITY_FLAGS = True
20 # The encoder is currently not included.
21 DEFINES['THEORA_DISABLE_ENCODE'] = True
23 # Suppress warnings in third-party code.
25 CFLAGS += ['-Wno-type-limits']
26 if CONFIG['CLANG_CXX']:
27 CFLAGS += ['-Wno-tautological-compare']
32 'lib/decapiwrapper.c',
45 LOCAL_INCLUDES += ['include']
47 if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['GNU_AS']:
48 GENERATED_SOURCES += [ '%s.%s' % (f, CONFIG['ASM_SUFFIX']) for f in [
55 if '86' in CONFIG['OS_TEST']:
56 if CONFIG['OS_ARCH'] != 'SunOS':
57 if CONFIG['OS_ARCH'] != 'WINNT' or CONFIG['OS_TEST'] != 'x86_64':
58 DEFINES['OC_X86_ASM'] = True
59 if '64' in CONFIG['OS_TEST']:
60 DEFINES['OC_X86_64_ASM'] = True
61 if CONFIG['_MSC_VER']:
62 if '64' not in CONFIG['OS_TEST']:
64 'lib/x86_vc/mmxfrag.c',
65 'lib/x86_vc/mmxidct.c',
66 'lib/x86_vc/mmxstate.c',
67 'lib/x86_vc/x86cpu.c',
68 'lib/x86_vc/x86state.c',
81 if 'arm' in CONFIG['OS_TEST']:
86 for var in ('OC_ARM_ASM',
91 # The Android NDK doesn't pre-define anything to indicate the OS it's
92 # on, so do it for them.
93 if CONFIG['OS_TARGET'] == 'Android':
94 DEFINES['__linux__'] = True