Fix android clang build.

no-builtin-cos|sin|cosf|sinf are not used for some files (g711.c, g711_interface.c, g722_encode.c, g722_decode.c, g722_interface.c, pcm16b.c).
Review URL: https://webrtc-codereview.appspot.com/1032006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3369 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
wjia@webrtc.org 2013-01-12 01:52:07 +00:00
parent 3f9db3735e
commit b119369cdc

View File

@ -236,6 +236,13 @@
'WEBRTC_CLOCK_TYPE_REALTIME', 'WEBRTC_CLOCK_TYPE_REALTIME',
'WEBRTC_THREAD_RR', 'WEBRTC_THREAD_RR',
], ],
'conditions': [
['enable_android_opensl==1', {
'defines': [
'WEBRTC_ANDROID_OPENSLES',
],
}],
['clang!=1', {
# The Android NDK doesn't provide optimized versions of these # The Android NDK doesn't provide optimized versions of these
# functions. Ensure they are disabled for all compilers. # functions. Ensure they are disabled for all compilers.
'cflags': [ 'cflags': [
@ -244,11 +251,6 @@
'-fno-builtin-cosf', '-fno-builtin-cosf',
'-fno-builtin-sinf', '-fno-builtin-sinf',
], ],
'conditions': [
['enable_android_opensl==1', {
'defines': [
'WEBRTC_ANDROID_OPENSLES',
],
}], }],
], ],
}], }],