Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: third_party/opus/opus.gyp

Issue 507753002: Fix clang warnings in GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/opus/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'conditions': [ 7 'conditions': [
8 ['target_arch=="arm" or target_arch=="armv7" or target_arch=="arm64"', { 8 ['target_arch=="arm" or target_arch=="armv7" or target_arch=="arm64"', {
9 'use_opus_fixed_point%': 1, 9 'use_opus_fixed_point%': 1,
10 }, { 10 }, {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 }, { 52 }, {
53 'defines': [ 53 'defines': [
54 'USE_ALLOCA', 54 'USE_ALLOCA',
55 'inline=__inline', 55 'inline=__inline',
56 ], 56 ],
57 'msvs_disabled_warnings': [ 57 'msvs_disabled_warnings': [
58 4305, # Disable truncation warning in celt/pitch.c . 58 4305, # Disable truncation warning in celt/pitch.c .
59 4334, # Disable 32-bit shift warning in src/opus_encoder.c . 59 4334, # Disable 32-bit shift warning in src/opus_encoder.c .
60 ], 60 ],
61 }], 61 }],
62 ['os_posix==1', {
63 'link_settings': {
64 'libraries': [ '-lm' ],
65 },
66 }],
62 ['os_posix==1 and OS!="android"', { 67 ['os_posix==1 and OS!="android"', {
63 # Suppress a warning given by opus_decoder.c that tells us 68 # Suppress a warning given by opus_decoder.c that tells us
64 # optimizations are turned off. 69 # optimizations are turned off.
65 'cflags': [ 70 'cflags': [
66 '-Wno-#pragma-messages', 71 '-Wno-#pragma-messages',
67 ], 72 ],
68 'xcode_settings': { 73 'xcode_settings': {
69 'WARNING_CFLAGS': [ 74 'WARNING_CFLAGS': [
70 '-Wno-#pragma-messages', 75 '-Wno-#pragma-messages',
71 ], 76 ],
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 'defines': [ 132 'defines': [
128 'inline=__inline', 133 'inline=__inline',
129 ], 134 ],
130 }], 135 }],
131 ['OS=="android"', { 136 ['OS=="android"', {
132 'link_settings': { 137 'link_settings': {
133 'libraries': [ 138 'libraries': [
134 '-llog', 139 '-llog',
135 ], 140 ],
136 }, 141 },
142 }],
143 ['clang==1', {
144 'cflags': [ '-Wno-absolute-value' ],
137 }] 145 }]
138 ], 146 ],
139 'sources': [ 147 'sources': [
140 'src/src/opus_demo.c', 148 'src/src/opus_demo.c',
141 ], 149 ],
142 'include_dirs': [ 150 'include_dirs': [
143 'src/celt', 151 'src/celt',
144 'src/silk', 152 'src/silk',
145 ], 153 ],
146 }, # target opus_demo 154 }, # target opus_demo
147 ] 155 ]
148 } 156 }
OLDNEW
« no previous file with comments | « third_party/opus/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698