OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This gypi file handles the removal of platform-specific files from the | 5 # This gypi file handles the removal of platform-specific files from the |
6 # Skia build. | 6 # Skia build. |
7 { | 7 { |
| 8 'includes': [ |
| 9 # skia_for_chromium_defines.gypi defines skia_for_chromium_defines |
| 10 '../third_party/skia/gyp/skia_for_chromium_defines.gypi', |
| 11 ], |
| 12 |
8 'include_dirs': [ | 13 'include_dirs': [ |
9 '..', | 14 '..', |
10 'config', | 15 'config', |
11 ], | 16 ], |
12 | 17 |
13 'conditions': [ | 18 'conditions': [ |
14 [ 'OS != "android"', { | 19 [ 'OS != "android"', { |
15 'sources/': [ | 20 'sources/': [ |
16 ['exclude', '_android\\.(cc|cpp)$'], | 21 ['exclude', '_android\\.(cc|cpp)$'], |
17 ], | 22 ], |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 145 |
141 # This list will contain all defines that also need to be exported to | 146 # This list will contain all defines that also need to be exported to |
142 # dependent components. | 147 # dependent components. |
143 'skia_export_defines': [ | 148 'skia_export_defines': [ |
144 'SK_ENABLE_INST_COUNT=0', | 149 'SK_ENABLE_INST_COUNT=0', |
145 'SK_SUPPORT_GPU=<(skia_support_gpu)', | 150 'SK_SUPPORT_GPU=<(skia_support_gpu)', |
146 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"', | 151 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"', |
147 'SK_ENABLE_LEGACY_API_ALIASING=1', | 152 'SK_ENABLE_LEGACY_API_ALIASING=1', |
148 'SK_ATTR_DEPRECATED=SK_NOTHING_ARG1', | 153 'SK_ATTR_DEPRECATED=SK_NOTHING_ARG1', |
149 'GR_GL_IGNORE_ES3_MSAA=0', | 154 'GR_GL_IGNORE_ES3_MSAA=0', |
150 'SK_SUPPORT_LEGACY_COMPATIBLEDEVICE_CONFIG=1', | |
151 'SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS=1', | |
152 'SK_SUPPORT_LEGACY_LAYERRASTERIZER_API=1', | 155 'SK_SUPPORT_LEGACY_LAYERRASTERIZER_API=1', |
153 'SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT', | 156 'SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT', |
154 'SK_SUPPORT_LEGACY_COPYTO_CONFIG', | 157 |
155 'SK_SUPPORT_DEEPCOPYTO_CONFIG', | 158 # This variable contains additional defines, specified in skia's |
| 159 # skia_for_chromium_defines.gypi file. |
| 160 '<@(skia_for_chromium_defines)', |
156 ], | 161 ], |
157 | 162 |
158 'default_font_cache_limit%': '(20*1024*1024)', | 163 'default_font_cache_limit%': '(20*1024*1024)', |
159 | 164 |
160 'conditions': [ | 165 'conditions': [ |
161 ['OS== "android"', { | 166 ['OS== "android"', { |
162 # Android devices are typically more memory constrained, so | 167 # Android devices are typically more memory constrained, so |
163 # default to a smaller glyph cache (it may be overriden at runtime | 168 # default to a smaller glyph cache (it may be overriden at runtime |
164 # when the renderer starts up, depending on the actual device memory). | 169 # when the renderer starts up, depending on the actual device memory). |
165 'default_font_cache_limit': '(1*1024*1024)', | 170 'default_font_cache_limit': '(1*1024*1024)', |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 # re-export if they include Skia headers in their public headers. | 217 # re-export if they include Skia headers in their public headers. |
213 'all_dependent_settings': { | 218 'all_dependent_settings': { |
214 'include_dirs': [ | 219 'include_dirs': [ |
215 '..', | 220 '..', |
216 'config', | 221 'config', |
217 ], | 222 ], |
218 }, | 223 }, |
219 | 224 |
220 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800], | 225 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800], |
221 } | 226 } |
OLD | NEW |