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 ['target_arch=="arm" or target_arch=="armv7" or target_arch=="arm64"', {
9 'use_opus_fixed_point%': 1,
11 'use_opus_fixed_point%': 0,
13 ['target_arch=="arm" or target_arch=="armv7"', {
14 'use_opus_arm_optimization%': 1,
16 'use_opus_arm_optimization%': 0,
18 ['target_arch=="arm"', {
27 'target_name': 'opus',
28 'type': 'static_library',
38 'direct_dependent_settings': {
43 'includes': ['opus_srcs.gypi', ],
44 'sources': ['<@(opus_common_sources)'],
57 'msvs_disabled_warnings': [
58 4305, # Disable truncation warning in celt/pitch.c .
59 4334, # Disable 32-bit shift warning in src/opus_encoder.c .
64 'libraries': [ '-lm' ],
67 ['os_posix==1 and OS!="android"', {
68 # Suppress a warning given by opus_decoder.c that tells us
69 # optimizations are turned off.
71 '-Wno-#pragma-messages',
75 '-Wno-#pragma-messages',
79 ['os_posix==1 and (target_arch=="arm" or target_arch=="armv7" or target_arch=="arm64")', {
83 ['use_opus_fixed_point==0', {
87 'sources': ['<@(opus_float_sources)'],
95 'sources': ['<@(opus_fixed_sources)'],
97 ['use_opus_arm_optimization==1', {
100 'OPUS_ARM_INLINE_ASM',
101 'OPUS_ARM_INLINE_EDSP',
104 'opus_srcs_arm.gypi',
107 ['use_opus_rtcd==1', {
109 'OPUS_ARM_MAY_HAVE_EDSP',
110 'OPUS_ARM_MAY_HAVE_MEDIA',
111 'OPUS_ARM_MAY_HAVE_NEON',
115 'opus_srcs_rtcd.gypi',
125 'target_name': 'opus_demo',
126 'type': 'executable',
144 'cflags': [ '-Wno-absolute-value' ],
148 'src/src/opus_demo.c',
154 }, # target opus_demo