1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
8 ['((OS=="android" or chromeos==1) and target_arch=="arm") or (OS=="ios" and target_arch=="armv7")', {
9 'use_opus_fixed_point%': 1,
10 'use_opus_arm_optimization%': 1,
12 'use_opus_fixed_point%': 0,
13 'use_opus_arm_optimization%': 0,
15 ['(OS=="android" or chromeos==1) and target_arch=="arm"', {
24 'target_name': 'opus',
25 'type': 'static_library',
35 'direct_dependent_settings': {
40 'includes': ['opus_srcs.gypi', ],
53 'msvs_disabled_warnings': [
54 4305, # Disable truncation warning in celt/pitch.c .
55 4334, # Disable 32-bit shift warning in src/opus_encoder.c .
58 [ 'os_posix==1 and OS!="android"', {
59 # Suppress a warning given by opus_decoder.c that tells us
60 # optimizations are turned off.
62 '-Wno-#pragma-messages',
66 '-Wno-#pragma-messages',
70 ['use_opus_fixed_point==0', {
75 ['exclude', '/fixed/[^/]*_FIX.(h|c)$'],
85 ['exclude', '/float/[^/]*_FLP.(h|c)$'],
88 ['use_opus_arm_optimization==1', {
91 'OPUS_ARM_INLINE_ASM',
92 'OPUS_ARM_INLINE_EDSP',
98 ['use_opus_rtcd==1', {
100 'OPUS_ARM_MAY_HAVE_EDSP',
101 'OPUS_ARM_MAY_HAVE_MEDIA',
102 'OPUS_ARM_MAY_HAVE_NEON',
106 'opus_srcs_rtcd.gypi',
116 'target_name': 'opus_demo',
117 'type': 'executable',
136 'src/src/opus_demo.c',
142 }, # target opus_demo