OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330. | 9 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330. |
10 | 10 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 defines += [ "MIPS_DSP_R1_LE" ] | 147 defines += [ "MIPS_DSP_R1_LE" ] |
148 } else if (mips_dsp_rev == 2) { | 148 } else if (mips_dsp_rev == 2) { |
149 defines += [ | 149 defines += [ |
150 "MIPS_DSP_R1_LE", | 150 "MIPS_DSP_R1_LE", |
151 "MIPS_DSP_R2_LE", | 151 "MIPS_DSP_R2_LE", |
152 ] | 152 ] |
153 } | 153 } |
154 } | 154 } |
155 | 155 |
156 if (is_android && !is_clang) { | 156 if (is_android && !is_clang) { |
| 157 # The Android NDK doesn"t provide optimized versions of these |
| 158 # functions. Ensure they are disabled for all compilers. |
157 cflags += [ | 159 cflags += [ |
158 # The Android NDK doesn't provide optimized versions of these | |
159 # functions. Ensure they are disabled for all compilers. | |
160 "-fno-builtin-cos", | 160 "-fno-builtin-cos", |
161 "-fno-builtin-sin", | 161 "-fno-builtin-sin", |
162 "-fno-builtin-cosf", | 162 "-fno-builtin-cosf", |
163 "-fno-builtin-sinf", | 163 "-fno-builtin-sinf", |
164 ] | 164 ] |
165 cflags_c = [ | |
166 # Use C99 mode instead of C89 (default). | |
167 "-std=c99", | |
168 ] | |
169 } | 165 } |
170 } | 166 } |
171 | 167 |
172 source_set("webrtc") { | 168 source_set("webrtc") { |
173 sources = [ | 169 sources = [ |
174 "call.h", | 170 "call.h", |
175 "config.h", | 171 "config.h", |
176 "frame_callback.h", | 172 "frame_callback.h", |
177 "transport.h", | 173 "transport.h", |
178 ] | 174 ] |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 if (rtc_enable_protobuf) { | 270 if (rtc_enable_protobuf) { |
275 defines += [ "ENABLE_RTC_EVENT_LOG" ] | 271 defines += [ "ENABLE_RTC_EVENT_LOG" ] |
276 deps += [ ":rtc_event_log_proto" ] | 272 deps += [ ":rtc_event_log_proto" ] |
277 } | 273 } |
278 if (is_clang && !is_nacl) { | 274 if (is_clang && !is_nacl) { |
279 # Suppress warnings from Chrome's Clang plugins. | 275 # Suppress warnings from Chrome's Clang plugins. |
280 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 276 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
281 configs -= [ "//build/config/clang:find_bad_constructs" ] | 277 configs -= [ "//build/config/clang:find_bad_constructs" ] |
282 } | 278 } |
283 } | 279 } |
OLD | NEW |