diff --git a/src/modules/audio_processing/aec/aec.gypi b/src/modules/audio_processing/aec/aec.gypi index ed333aed9d..2e34c5bb8e 100644 --- a/src/modules/audio_processing/aec/aec.gypi +++ b/src/modules/audio_processing/aec/aec.gypi @@ -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', ], - }, - }], - ], - }, + }], ], } diff --git a/src/modules/video_processing/main/source/video_processing.gypi b/src/modules/video_processing/main/source/video_processing.gypi index dda0a780a4..3bc03bce17 100644 --- a/src/modules/video_processing/main/source/video_processing.gypi +++ b/src/modules/video_processing/main/source/video_processing.gypi @@ -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', ], - }, - }], - ], - }, + }], ], }