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' ], |
108 'sources': [ '<@(sse41_sources)' ], | 109 'sources': [ '<@(sse41_sources)' ], |
109 'conditions': [ | 110 'conditions': [ |
110 [ 'skia_os == "win"', { | 111 [ 'skia_os == "win"', { |
111 'defines' : [ 'SK_CPU_SSE_LEVEL=41' ], | 112 'defines' : [ 'SK_CPU_SSE_LEVEL=41' ], |
112 }], | 113 }], |
113 [ 'not skia_android_framework', { | 114 [ 'not skia_android_framework', { |
114 'cflags': [ '-msse4.1' ], | 115 'cflags': [ '-msse4.1' ], |
115 }], | 116 }], |
116 [ 'skia_os == "mac"', { | 117 [ 'skia_os == "mac"', { |
117 'xcode_settings': { 'GCC_ENABLE_SSE41_EXTENSIONS': 'YES' }, | 118 'xcode_settings': { 'GCC_ENABLE_SSE41_EXTENSIONS': 'YES' }, |
(...skipping 29 matching lines...) Expand all Loading... |
147 ], | 148 ], |
148 }], | 149 }], |
149 ], | 150 ], |
150 'ldflags': [ | 151 'ldflags': [ |
151 '-march=armv7-a', | 152 '-march=armv7-a', |
152 '-Wl,--fix-cortex-a8', | 153 '-Wl,--fix-cortex-a8', |
153 ], | 154 ], |
154 }, | 155 }, |
155 ], | 156 ], |
156 } | 157 } |
OLD | NEW |