Properly disable sse2 source on non-x86.

BUG=
TEST=build on Linux.

Review URL: https://webrtc-codereview.appspot.com/387008

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1684 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
andrew@webrtc.org 2012-02-14 19:57:50 +00:00
parent 59d6cec291
commit 737c023e42
2 changed files with 49 additions and 37 deletions

View File

@ -46,23 +46,29 @@
}],
],
},
{
'target_name': 'aec_sse2',
'type': '<(library)',
'sources': [
'aec_core_sse2.c',
'aec_rdft_sse2.c',
],
'conditions': [
['target_arch=="ia32" or target_arch=="x64"', {
'targets': [
{
'target_name': 'aec_sse2',
'type': '<(library)',
'sources': [
'aec_core_sse2.c',
'aec_rdft_sse2.c',
],
'conditions': [
['os_posix==1 and OS!="mac"', {
'cflags': [ '-msse2', ],
}],
['OS=="mac"', {
'xcode_settings': {
'OTHER_CFLAGS': [ '-msse2', ],
},
}],
],
},
],
'conditions': [
['os_posix==1 and OS!="mac"', {
'cflags': [ '-msse2', ],
}],
['OS=="mac"', {
'xcode_settings': {
'OTHER_CFLAGS': [ '-msse2', ],
},
}],
],
},
}],
],
}

View File

@ -56,27 +56,33 @@
}],
],
},
{
'target_name': 'video_processing_sse2',
'type': '<(library)',
'sources': [
'content_analysis_sse2.cc',
],
'conditions': [
['target_arch=="ia32" or target_arch=="x64"', {
'targets': [
{
'target_name': 'video_processing_sse2',
'type': '<(library)',
'sources': [
'content_analysis_sse2.cc',
],
'include_dirs': [
'../interface',
'../../../interface',
],
'conditions': [
['os_posix==1 and OS!="mac"', {
'cflags': [ '-msse2', ],
}],
['OS=="mac"', {
'xcode_settings': {
'OTHER_CFLAGS': [ '-msse2', ],
},
}],
],
},
],
'include_dirs': [
'../interface',
'../../../interface',
],
'conditions': [
['os_posix==1 and OS!="mac"', {
'cflags': [ '-msse2', ],
}],
['OS=="mac"', {
'xcode_settings': {
'OTHER_CFLAGS': [ '-msse2', ],
},
}],
],
},
}],
],
}