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
3 # found in the LICENSE file.
6 # This gypi file contains all the Chrome-specific enhancements to Skia.
7 # In component mode (shared_lib) it is folded into a single shared library with
8 # the Skia files but in all other cases it is a separate library.
13 '../base/base.gyp:base',
14 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
17 'direct_dependent_settings': {
28 'ext/analysis_canvas.cc',
29 'ext/analysis_canvas.h',
30 'ext/benchmarking_canvas.cc',
31 'ext/benchmarking_canvas.h',
32 'ext/bitmap_platform_device.h',
33 'ext/bitmap_platform_device_android.cc',
34 'ext/bitmap_platform_device_android.h',
35 'ext/bitmap_platform_device_data.h',
36 'ext/bitmap_platform_device_linux.cc',
37 'ext/bitmap_platform_device_linux.h',
38 'ext/bitmap_platform_device_mac.cc',
39 'ext/bitmap_platform_device_mac.h',
40 'ext/bitmap_platform_device_win.cc',
41 'ext/bitmap_platform_device_win.h',
44 'ext/google_logging.cc',
45 'ext/image_operations.cc',
46 'ext/image_operations.h',
47 'ext/lazy_pixel_ref.cc',
48 'ext/lazy_pixel_ref.h',
49 'ext/lazy_pixel_ref_utils.cc',
50 'ext/lazy_pixel_ref_utils.h',
51 'ext/SkThread_chrome.cc',
52 'ext/opacity_draw_filter.cc',
53 'ext/opacity_draw_filter.h',
54 'ext/paint_simplifier.cc',
55 'ext/paint_simplifier.h',
56 'ext/platform_canvas.cc',
57 'ext/platform_canvas.h',
58 'ext/platform_device.cc',
59 'ext/platform_device.h',
60 'ext/platform_device_linux.cc',
61 'ext/platform_device_mac.cc',
62 'ext/platform_device_win.cc',
63 'ext/recursive_gaussian_convolution.cc',
64 'ext/recursive_gaussian_convolution.h',
66 'ext/SkDiscardableMemory_chrome.h',
67 'ext/SkDiscardableMemory_chrome.cc',
68 'ext/SkMemory_new_handler.cpp',
69 'ext/skia_trace_shim.h',
70 'ext/skia_utils_base.cc',
71 'ext/skia_utils_base.h',
72 'ext/skia_utils_ios.mm',
73 'ext/skia_utils_ios.h',
74 'ext/skia_utils_mac.mm',
75 'ext/skia_utils_mac.h',
76 'ext/skia_utils_win.cc',
77 'ext/skia_utils_win.h',
78 'ext/vector_canvas.cc',
79 'ext/vector_canvas.h',
80 'ext/vector_platform_device_emf_win.cc',
81 'ext/vector_platform_device_emf_win.h',
82 'ext/vector_platform_device_skia.cc',
83 'ext/vector_platform_device_skia.h',
87 # For POSIX platforms, prefer the Mutex implementation provided by Skia
88 # since it does not generate static initializers.
89 # TODO: should check if SK_USE_POSIX_THREADS is defined instead
90 [ 'OS == "android" or OS == "linux" or OS == "mac" or OS == "ios"', {
92 'ext/SkThread_chrome.cc',
95 [ 'OS == "android" and enable_printing == 0', {
97 'ext/vector_platform_device_skia.cc',
102 ['exclude', '^ext/vector_platform_device_skia\\.'],
110 'ext/SkThread_chrome.cc',
113 # TODO(scottmg): http://crbug.com/177306
117 # Don't warn about string->bool used in asserts.
118 '-Wstring-conversion',
122 '-Wstring-conversion',
127 'target_conditions': [
128 # Pull in specific linux files for android (which have been filtered out
129 # by file name rules).
130 [ 'OS == "android"', {
132 ['include', 'ext/platform_device_linux\\.cc$'],