| OLD | NEW |
| 1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 # Gyp file for building opts target. | 5 # Gyp file for building opts target. |
| 6 { | 6 { |
| 7 # Source lists live in opts.gypi. This makes it easier to maintain our Chrome
GYP/GN setup. | 7 # Source lists live in opts.gypi. This makes it easier to maintain our Chrome
GYP/GN setup. |
| 8 # (To be honest, I'm not sure why we need to include common.gypi. I thought i
t was automatic.) | 8 # (To be honest, I'm not sure why we need to include common.gypi. I thought i
t was automatic.) |
| 9 'variables': { | 9 'variables': { |
| 10 'includes': [ 'common.gypi', 'opts.gypi' ], | 10 'includes': [ 'common.gypi', 'opts.gypi' ], |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 'cflags': [ '-mssse3' ], | 98 'cflags': [ '-mssse3' ], |
| 99 }], | 99 }], |
| 100 ], | 100 ], |
| 101 }, | 101 }, |
| 102 { | 102 { |
| 103 'target_name': 'opts_sse41', | 103 'target_name': 'opts_sse41', |
| 104 'product_name': 'skia_opts_sse41', | 104 'product_name': 'skia_opts_sse41', |
| 105 'type': 'static_library', | 105 'type': 'static_library', |
| 106 'standalone_static_library': 1, | 106 'standalone_static_library': 1, |
| 107 'dependencies': [ 'core.gyp:*' ], | 107 'dependencies': [ 'core.gyp:*' ], |
| 108 'include_dirs': [ '../src/core' ], | |
| 109 'sources': [ '<@(sse41_sources)' ], | 108 'sources': [ '<@(sse41_sources)' ], |
| 110 'conditions': [ | 109 'conditions': [ |
| 111 [ 'skia_os == "win"', { | 110 [ 'skia_os == "win"', { |
| 112 'defines' : [ 'SK_CPU_SSE_LEVEL=41' ], | 111 'defines' : [ 'SK_CPU_SSE_LEVEL=41' ], |
| 113 }], | 112 }], |
| 114 [ 'not skia_android_framework', { | 113 [ 'not skia_android_framework', { |
| 115 'cflags': [ '-msse4.1' ], | 114 'cflags': [ '-msse4.1' ], |
| 116 }], | 115 }], |
| 117 [ 'skia_os == "mac"', { | 116 [ 'skia_os == "mac"', { |
| 118 'xcode_settings': { 'GCC_ENABLE_SSE41_EXTENSIONS': 'YES' }, | 117 'xcode_settings': { 'GCC_ENABLE_SSE41_EXTENSIONS': 'YES' }, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 148 ], | 147 ], |
| 149 }], | 148 }], |
| 150 ], | 149 ], |
| 151 'ldflags': [ | 150 'ldflags': [ |
| 152 '-march=armv7-a', | 151 '-march=armv7-a', |
| 153 '-Wl,--fix-cortex-a8', | 152 '-Wl,--fix-cortex-a8', |
| 154 ], | 153 ], |
| 155 }, | 154 }, |
| 156 ], | 155 ], |
| 157 } | 156 } |
| OLD | NEW |