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/paint_simplifier.cc',
53 'ext/paint_simplifier.h',
54 'ext/platform_canvas.cc',
55 'ext/platform_canvas.h',
56 'ext/platform_device.cc',
57 'ext/platform_device.h',
58 'ext/platform_device_linux.cc',
59 'ext/platform_device_mac.cc',
60 'ext/platform_device_win.cc',
61 'ext/recursive_gaussian_convolution.cc',
62 'ext/recursive_gaussian_convolution.h',
64 'ext/SkMemory_new_handler.cpp',
65 'ext/skia_trace_shim.h',
66 'ext/skia_utils_base.cc',
67 'ext/skia_utils_base.h',
68 'ext/skia_utils_ios.mm',
69 'ext/skia_utils_ios.h',
70 'ext/skia_utils_mac.mm',
71 'ext/skia_utils_mac.h',
72 'ext/skia_utils_win.cc',
73 'ext/skia_utils_win.h',
74 'ext/vector_canvas.cc',
75 'ext/vector_canvas.h',
76 'ext/vector_platform_device_emf_win.cc',
77 'ext/vector_platform_device_emf_win.h',
78 'ext/vector_platform_device_skia.cc',
79 'ext/vector_platform_device_skia.h',
83 # For POSIX platforms, prefer the Mutex implementation provided by Skia
84 # since it does not generate static initializers.
85 # TODO: should check if SK_USE_POSIX_THREADS is defined instead
86 [ 'OS == "android" or OS == "linux" or OS == "mac" or OS == "ios"', {
88 'ext/SkThread_chrome.cc',
91 [ 'OS == "android" and enable_printing == 0', {
93 'ext/vector_platform_device_skia.cc',
98 ['exclude', '^ext/vector_platform_device_skia\\.'],
106 'ext/SkThread_chrome.cc',
109 # TODO(scottmg): http://crbug.com/177306
113 # Don't warn about string->bool used in asserts.
114 '-Wstring-conversion',
118 '-Wstring-conversion',
123 'target_conditions': [
124 # Pull in specific linux files for android (which have been filtered out
125 # by file name rules).
126 [ 'OS == "android"', {
128 ['include', 'ext/platform_device_linux\\.cc$'],