hack to enable SSSE3 on Macs

Review URL: https://codereview.appspot.com/5649091

git-svn-id: http://skia.googlecode.com/svn/trunk@3195 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
epoger@google.com 2012-02-14 19:49:19 +00:00
parent 4ef14f8e83
commit 2109923520

View File

@ -89,11 +89,19 @@
'../src/core',
],
'conditions': [
[ 'skia_os in ["linux", "freebsd", "mac", "openbsd", "solaris"]', {
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
'cflags': [
'-mssse3',
],
}],
# TODO(epoger): the following will enable SSSE3 on Macs, but it will
# break once we set OTHER_CFLAGS anywhere else (the first setting will
# be replaced, not added to)
[ 'skia_os in ["mac"]', {
'xcode_settings': {
'OTHER_CFLAGS': ['-mssse3',],
},
}],
[ 'skia_target_arch != "arm"', {
'sources': [
'../src/opts/SkBitmapProcState_opts_SSSE3.cpp',