Chromium Code Reviews| 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_WILL_NEVER_DRAW_PERSPECTIVE_TEXT', | 155 'SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT', |
| 153 'SK_SUPPORT_LEGACY_COPYTO_CONFIG', | 156 |
| 154 'SK_SUPPORT_DEEPCOPYTO_CONFIG', | 157 # This variable contains additional defines, specified in skia's |
| 158 # skia_for_chromium_defines.gypi file. | |
| 159 '<@(skia_for_chromium_defines)', | |
| 155 ], | 160 ], |
| 156 | 161 |
| 157 'default_font_cache_limit%': '(20*1024*1024)', | 162 'default_font_cache_limit%': '(20*1024*1024)', |
| 158 | 163 |
| 159 'conditions': [ | 164 'conditions': [ |
| 160 ['OS== "android"', { | 165 ['OS== "android"', { |
| 161 # Android devices are typically more memory constrained, so | 166 # Android devices are typically more memory constrained, so |
| 162 # default to a smaller glyph cache (it may be overriden at runtime | 167 # default to a smaller glyph cache (it may be overriden at runtime |
| 163 # when the renderer starts up, depending on the actual device memory). | 168 # when the renderer starts up, depending on the actual device memory). |
| 164 'default_font_cache_limit': '(1*1024*1024)', | 169 'default_font_cache_limit': '(1*1024*1024)', |
| 165 'skia_export_defines': [ | 170 'skia_export_defines': [ |
| 166 'SK_BUILD_FOR_ANDROID', | 171 'SK_BUILD_FOR_ANDROID', |
| 167 ], | 172 ], |
| 168 }], | 173 }], |
| 169 ], | 174 ], |
| 170 }, | 175 }, |
| 171 | 176 |
| 172 'defines': [ | 177 'defines': [ |
| 173 '<@(skia_export_defines)', | 178 '<@(skia_export_defines)', |
| 174 | 179 |
|
bungeman-chromium
2014/02/25 18:06:51
nit: don't need this whitespace change.
| |
| 175 # skia uses static initializers to initialize the serialization logic | 180 # skia uses static initializers to initialize the serialization logic |
| 176 # of its "pictures" library. This is currently not used in chrome; if | 181 # of its "pictures" library. This is currently not used in chrome; if |
| 177 # it ever gets used the processes that use it need to call | 182 # it ever gets used the processes that use it need to call |
| 178 # SkGraphics::Init(). | 183 # SkGraphics::Init(). |
| 179 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0', | 184 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0', |
| 180 | 185 |
| 181 # Forcing the unoptimized path for the offset image filter in skia until | 186 # Forcing the unoptimized path for the offset image filter in skia until |
| 182 # all filters used in Blink support the optimized path properly | 187 # all filters used in Blink support the optimized path properly |
| 183 'SK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION', | 188 'SK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION', |
| 184 | 189 |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 211 # re-export if they include Skia headers in their public headers. | 216 # re-export if they include Skia headers in their public headers. |
| 212 'all_dependent_settings': { | 217 'all_dependent_settings': { |
| 213 'include_dirs': [ | 218 'include_dirs': [ |
| 214 '..', | 219 '..', |
| 215 'config', | 220 'config', |
| 216 ], | 221 ], |
| 217 }, | 222 }, |
| 218 | 223 |
| 219 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800], | 224 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800], |
| 220 } | 225 } |
| OLD | NEW |