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:
		@@ -46,23 +46,29 @@
 | 
				
			|||||||
        }],
 | 
					        }],
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					  ],
 | 
				
			||||||
      'target_name': 'aec_sse2',
 | 
					  'conditions': [
 | 
				
			||||||
      'type': '<(library)',
 | 
					    ['target_arch=="ia32" or target_arch=="x64"', {
 | 
				
			||||||
      'sources': [
 | 
					      'targets': [
 | 
				
			||||||
        'aec_core_sse2.c',
 | 
					        {
 | 
				
			||||||
        'aec_rdft_sse2.c',
 | 
					          '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', ],
 | 
					 | 
				
			||||||
          },
 | 
					 | 
				
			||||||
        }],
 | 
					 | 
				
			||||||
      ],
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -56,27 +56,33 @@
 | 
				
			|||||||
        }],
 | 
					        }],
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					  ],
 | 
				
			||||||
      'target_name': 'video_processing_sse2',
 | 
					  'conditions': [
 | 
				
			||||||
      'type': '<(library)',
 | 
					    ['target_arch=="ia32" or target_arch=="x64"', {
 | 
				
			||||||
      'sources': [
 | 
					      'targets': [
 | 
				
			||||||
        'content_analysis_sse2.cc',
 | 
					        {
 | 
				
			||||||
 | 
					          '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', ],
 | 
					 | 
				
			||||||
          },
 | 
					 | 
				
			||||||
        }],
 | 
					 | 
				
			||||||
      ],
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user