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 | 5 |
6 # This gypi file contains the Skia library. | 6 # This gypi file contains the Skia library. |
7 # In component mode (shared_lib) it is folded into a single shared library with | 7 # In component mode (shared_lib) it is folded into a single shared library with |
8 # the Chrome-specific enhancements but in all other cases it is a separate lib. | 8 # the Chrome-specific enhancements but in all other cases it is a separate lib. |
9 { | 9 { |
10 'dependencies': [ | 10 'dependencies': [ |
(...skipping 22 matching lines...) Expand all Loading... |
33 # These two set the paths so we can include skia/gyp/core.gypi | 33 # These two set the paths so we can include skia/gyp/core.gypi |
34 'skia_src_path': '../third_party/skia/src', | 34 'skia_src_path': '../third_party/skia/src', |
35 'skia_include_path': '../third_party/skia/include', | 35 'skia_include_path': '../third_party/skia/include', |
36 | 36 |
37 # This list will contain all defines that also need to be exported to | 37 # This list will contain all defines that also need to be exported to |
38 # dependent components. | 38 # dependent components. |
39 'skia_export_defines': [ | 39 'skia_export_defines': [ |
40 'SK_ENABLE_INST_COUNT=0', | 40 'SK_ENABLE_INST_COUNT=0', |
41 'SK_SUPPORT_GPU=<(skia_support_gpu)', | 41 'SK_SUPPORT_GPU=<(skia_support_gpu)', |
42 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"', | 42 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"', |
| 43 'SK_ENABLE_LEGACY_API_ALIASING=1', |
43 ], | 44 ], |
44 | 45 |
45 'default_font_cache_limit': '(20*1024*1024)', | 46 'default_font_cache_limit': '(20*1024*1024)', |
46 | 47 |
47 'conditions': [ | 48 'conditions': [ |
48 ['OS== "android"', { | 49 ['OS== "android"', { |
49 # Android devices are typically more memory constrained, so | 50 # Android devices are typically more memory constrained, so |
50 # default to a smaller glyph cache (it may be overriden at runtime | 51 # default to a smaller glyph cache (it may be overriden at runtime |
51 # when the renderer starts up, depending on the actual device memory). | 52 # when the renderer starts up, depending on the actual device memory). |
52 'default_font_cache_limit': '(1*1024*1024)', | 53 'default_font_cache_limit': '(1*1024*1024)', |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 # This exports a hard dependency because it needs to run its | 310 # This exports a hard dependency because it needs to run its |
310 # symlink action in order to expose the skia header files. | 311 # symlink action in order to expose the skia header files. |
311 'hard_dependency': 1, | 312 'hard_dependency': 1, |
312 'include_dirs': [ | 313 'include_dirs': [ |
313 '../third_party/expat/files/lib', | 314 '../third_party/expat/files/lib', |
314 ], | 315 ], |
315 }], | 316 }], |
316 [ 'OS == "ios"', { | 317 [ 'OS == "ios"', { |
317 'defines': [ | 318 'defines': [ |
318 'SK_BUILD_FOR_IOS', | 319 'SK_BUILD_FOR_IOS', |
319 'SK_USE_MAC_CORE_TEXT', | |
320 ], | 320 ], |
321 'include_dirs': [ | 321 'include_dirs': [ |
322 '../third_party/skia/include/utils/ios', | 322 '../third_party/skia/include/utils/ios', |
323 '../third_party/skia/include/utils/mac', | 323 '../third_party/skia/include/utils/mac', |
324 ], | 324 ], |
325 'link_settings': { | 325 'link_settings': { |
326 'libraries': [ | 326 'libraries': [ |
327 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework', | 327 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework', |
328 ], | 328 ], |
329 }, | 329 }, |
(...skipping 15 matching lines...) Expand all Loading... |
345 'dependencies': [ | 345 'dependencies': [ |
346 'skia_library_opts.gyp:skia_opts_none', | 346 'skia_library_opts.gyp:skia_opts_none', |
347 ], | 347 ], |
348 'dependencies!': [ | 348 'dependencies!': [ |
349 'skia_library_opts.gyp:skia_opts', | 349 'skia_library_opts.gyp:skia_opts', |
350 ], | 350 ], |
351 }], | 351 }], |
352 [ 'OS == "mac"', { | 352 [ 'OS == "mac"', { |
353 'defines': [ | 353 'defines': [ |
354 'SK_BUILD_FOR_MAC', | 354 'SK_BUILD_FOR_MAC', |
355 'SK_USE_MAC_CORE_TEXT', | |
356 ], | 355 ], |
357 'direct_dependent_settings': { | 356 'direct_dependent_settings': { |
358 'include_dirs': [ | 357 'include_dirs': [ |
359 '../third_party/skia/include/utils/mac', | 358 '../third_party/skia/include/utils/mac', |
360 ], | 359 ], |
361 }, | 360 }, |
362 'include_dirs': [ | 361 'include_dirs': [ |
363 '../third_party/skia/include/utils/mac', | 362 '../third_party/skia/include/utils/mac', |
364 ], | 363 ], |
365 'link_settings': { | 364 'link_settings': { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 ['include', 'SkFontHost_mac\\.cpp$',], | 417 ['include', 'SkFontHost_mac\\.cpp$',], |
419 ['include', 'SkStream_mac\\.cpp$',], | 418 ['include', 'SkStream_mac\\.cpp$',], |
420 ['include', 'SkCreateCGImageRef\\.cpp$',], | 419 ['include', 'SkCreateCGImageRef\\.cpp$',], |
421 ], | 420 ], |
422 }], | 421 }], |
423 ], | 422 ], |
424 | 423 |
425 'defines': [ | 424 'defines': [ |
426 '<@(skia_export_defines)', | 425 '<@(skia_export_defines)', |
427 | 426 |
428 # this flag can be removed entirely once this has baked for a while | |
429 'SK_ALLOW_OVER_32K_BITMAPS', | |
430 | |
431 # skia uses static initializers to initialize the serialization logic | 427 # skia uses static initializers to initialize the serialization logic |
432 # of its "pictures" library. This is currently not used in chrome; if | 428 # of its "pictures" library. This is currently not used in chrome; if |
433 # it ever gets used the processes that use it need to call | 429 # it ever gets used the processes that use it need to call |
434 # SkGraphics::Init(). | 430 # SkGraphics::Init(). |
435 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0', | 431 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0', |
436 | 432 |
437 # Disable this check because it is too strict for some Chromium-specific | 433 # Disable this check because it is too strict for some Chromium-specific |
438 # subclasses of SkPixelRef. See bug: crbug.com/171776. | 434 # subclasses of SkPixelRef. See bug: crbug.com/171776. |
439 'SK_DISABLE_PIXELREF_LOCKCOUNT_BALANCE_CHECK', | 435 'SK_DISABLE_PIXELREF_LOCKCOUNT_BALANCE_CHECK', |
440 | 436 |
(...skipping 22 matching lines...) Expand all Loading... |
463 '../third_party/skia/include/pathops', | 459 '../third_party/skia/include/pathops', |
464 '../third_party/skia/include/pipe', | 460 '../third_party/skia/include/pipe', |
465 '../third_party/skia/include/ports', | 461 '../third_party/skia/include/ports', |
466 '../third_party/skia/include/utils', | 462 '../third_party/skia/include/utils', |
467 ], | 463 ], |
468 'defines': [ | 464 'defines': [ |
469 '<@(skia_export_defines)', | 465 '<@(skia_export_defines)', |
470 ], | 466 ], |
471 }, | 467 }, |
472 } | 468 } |
OLD | NEW |