| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 }, | 85 }, |
| 86 { | 86 { |
| 87 'target_name': 'opts_ssse3', | 87 'target_name': 'opts_ssse3', |
| 88 'product_name': 'skia_opts_ssse3', | 88 'product_name': 'skia_opts_ssse3', |
| 89 'type': 'static_library', | 89 'type': 'static_library', |
| 90 'standalone_static_library': 1, | 90 'standalone_static_library': 1, |
| 91 'dependencies': [ 'core.gyp:*' ], | 91 'dependencies': [ 'core.gyp:*' ], |
| 92 'include_dirs': [ | 92 'include_dirs': [ |
| 93 '../include/private', | 93 '../include/private', |
| 94 '../src/core', | 94 '../src/core', |
| 95 '../src/utils', |
| 95 ], | 96 ], |
| 96 'sources': [ '<@(ssse3_sources)' ], | 97 'sources': [ '<@(ssse3_sources)' ], |
| 97 'conditions': [ | 98 'conditions': [ |
| 98 [ 'skia_os == "win"', { | 99 [ 'skia_os == "win"', { |
| 99 'defines' : [ 'SK_CPU_SSE_LEVEL=31' ], | 100 'defines' : [ 'SK_CPU_SSE_LEVEL=31' ], |
| 100 }], | 101 }], |
| 101 [ 'not skia_android_framework', { | 102 [ 'not skia_android_framework', { |
| 102 'cflags': [ '-mssse3' ], | 103 'cflags': [ '-mssse3' ], |
| 103 }], | 104 }], |
| 104 ], | 105 ], |
| 105 }, | 106 }, |
| 106 { | 107 { |
| 107 'target_name': 'opts_sse41', | 108 'target_name': 'opts_sse41', |
| 108 'product_name': 'skia_opts_sse41', | 109 'product_name': 'skia_opts_sse41', |
| 109 'type': 'static_library', | 110 'type': 'static_library', |
| 110 'standalone_static_library': 1, | 111 'standalone_static_library': 1, |
| 111 'dependencies': [ 'core.gyp:*' ], | 112 'dependencies': [ 'core.gyp:*' ], |
| 112 'include_dirs': [ | 113 'include_dirs': [ |
| 113 '../include/private', | 114 '../include/private', |
| 114 '../src/core', | 115 '../src/core', |
| 116 '../src/utils', |
| 115 ], | 117 ], |
| 116 'sources': [ '<@(sse41_sources)' ], | 118 'sources': [ '<@(sse41_sources)' ], |
| 117 'conditions': [ | 119 'conditions': [ |
| 118 [ 'skia_os == "win"', { | 120 [ 'skia_os == "win"', { |
| 119 'defines' : [ 'SK_CPU_SSE_LEVEL=41' ], | 121 'defines' : [ 'SK_CPU_SSE_LEVEL=41' ], |
| 120 }], | 122 }], |
| 121 [ 'not skia_android_framework', { | 123 [ 'not skia_android_framework', { |
| 122 'cflags': [ '-msse4.1' ], | 124 'cflags': [ '-msse4.1' ], |
| 123 }], | 125 }], |
| 124 [ 'skia_os == "mac"', { | 126 [ 'skia_os == "mac"', { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 ], | 158 ], |
| 157 }], | 159 }], |
| 158 ], | 160 ], |
| 159 'ldflags': [ | 161 'ldflags': [ |
| 160 '-march=armv7-a', | 162 '-march=armv7-a', |
| 161 '-Wl,--fix-cortex-a8', | 163 '-Wl,--fix-cortex-a8', |
| 162 ], | 164 ], |
| 163 }, | 165 }, |
| 164 ], | 166 ], |
| 165 } | 167 } |
| OLD | NEW |