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 # Performance gains are substantial on ARM (v7,v8) with -O3 over the
9 # default -Os configured in common.gypi.
10 'release_optimize': '3',
11 'debug_optimize': '3',
16 ['target_arch=="arm" or target_arch=="armv7" or target_arch=="arm64"', {
17 'use_opus_fixed_point%': 1,
19 'use_opus_fixed_point%': 0,
21 ['target_arch=="arm" or target_arch=="armv7"', {
22 'use_opus_arm_optimization%': 1,
24 'use_opus_arm_optimization%': 0,
26 ['target_arch=="arm"', {
35 'target_name': 'opus',
36 'type': 'static_library',
46 'direct_dependent_settings': {
51 'includes': ['opus_srcs.gypi', ],
64 'msvs_disabled_warnings': [
65 4305, # Disable truncation warning in celt/pitch.c .
66 4334, # Disable 32-bit shift warning in src/opus_encoder.c .
69 ['os_posix==1 and OS!="android"', {
70 # Suppress a warning given by opus_decoder.c that tells us
71 # optimizations are turned off.
73 '-Wno-#pragma-messages',
77 '-Wno-#pragma-messages',
81 ['use_opus_fixed_point==0', {
86 ['exclude', '/fixed/[^/]*_FIX.(h|c)$'],
96 ['exclude', '/float/[^/]*_FLP.(h|c)$'],
99 ['use_opus_arm_optimization==1', {
102 'OPUS_ARM_INLINE_ASM',
103 'OPUS_ARM_INLINE_EDSP',
106 'opus_srcs_arm.gypi',
109 ['use_opus_rtcd==1', {
111 'OPUS_ARM_MAY_HAVE_EDSP',
112 'OPUS_ARM_MAY_HAVE_MEDIA',
113 'OPUS_ARM_MAY_HAVE_NEON',
117 'opus_srcs_rtcd.gypi',
127 'target_name': 'opus_demo',
128 'type': 'executable',
147 'src/src/opus_demo.c',
153 }, # target opus_demo