| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 5 |
| 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. |
| 9 { |
| 10 'dependencies': [ |
| 11 'skia_library', |
| 12 'skia_chrome_opts', |
| 13 '../base/base.gyp:base', |
| 14 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_ann
otations', |
| 15 ], |
| 16 |
| 17 'direct_dependent_settings': { |
| 18 'include_dirs': [ |
| 19 'ext', |
| 20 ], |
| 21 }, |
| 22 |
| 23 'include_dirs': [ |
| 24 '..', |
| 25 ], |
| 26 |
| 27 'sources': [ |
| 28 'ext/analysis_canvas.cc', |
| 29 'ext/analysis_canvas.h', |
| 30 'ext/bitmap_platform_device.h', |
| 31 'ext/bitmap_platform_device_android.cc', |
| 32 'ext/bitmap_platform_device_android.h', |
| 33 'ext/bitmap_platform_device_data.h', |
| 34 'ext/bitmap_platform_device_linux.cc', |
| 35 'ext/bitmap_platform_device_linux.h', |
| 36 'ext/bitmap_platform_device_mac.cc', |
| 37 'ext/bitmap_platform_device_mac.h', |
| 38 'ext/bitmap_platform_device_win.cc', |
| 39 'ext/bitmap_platform_device_win.h', |
| 40 'ext/convolver.cc', |
| 41 'ext/convolver.h', |
| 42 'ext/google_logging.cc', |
| 43 'ext/image_operations.cc', |
| 44 'ext/image_operations.h', |
| 45 'ext/lazy_pixel_ref.cc', |
| 46 'ext/lazy_pixel_ref.h', |
| 47 'ext/lazy_pixel_ref_utils.cc', |
| 48 'ext/lazy_pixel_ref_utils.h', |
| 49 'ext/SkThread_chrome.cc', |
| 50 'ext/paint_simplifier.cc', |
| 51 'ext/paint_simplifier.h', |
| 52 'ext/platform_canvas.cc', |
| 53 'ext/platform_canvas.h', |
| 54 'ext/platform_device.cc', |
| 55 'ext/platform_device.h', |
| 56 'ext/platform_device_linux.cc', |
| 57 'ext/platform_device_mac.cc', |
| 58 'ext/platform_device_win.cc', |
| 59 'ext/recursive_gaussian_convolution.cc', |
| 60 'ext/recursive_gaussian_convolution.h', |
| 61 'ext/refptr.h', |
| 62 'ext/SkMemory_new_handler.cpp', |
| 63 'ext/skia_trace_shim.h', |
| 64 'ext/skia_utils_base.cc', |
| 65 'ext/skia_utils_base.h', |
| 66 'ext/skia_utils_ios.mm', |
| 67 'ext/skia_utils_ios.h', |
| 68 'ext/skia_utils_mac.mm', |
| 69 'ext/skia_utils_mac.h', |
| 70 'ext/skia_utils_win.cc', |
| 71 'ext/skia_utils_win.h', |
| 72 'ext/vector_canvas.cc', |
| 73 'ext/vector_canvas.h', |
| 74 'ext/vector_platform_device_emf_win.cc', |
| 75 'ext/vector_platform_device_emf_win.h', |
| 76 'ext/vector_platform_device_skia.cc', |
| 77 'ext/vector_platform_device_skia.h', |
| 78 ], |
| 79 |
| 80 'conditions': [ |
| 81 # For POSIX platforms, prefer the Mutex implementation provided by Skia |
| 82 # since it does not generate static initializers. |
| 83 # TODO: should check if SK_USE_POSIX_THREADS is defined instead |
| 84 [ 'OS == "android" or OS == "linux" or OS == "mac" or OS == "ios"', { |
| 85 'sources!': [ |
| 86 'ext/SkThread_chrome.cc', |
| 87 ], |
| 88 }], |
| 89 [ 'OS == "android"', { |
| 90 'sources!': [ |
| 91 'ext/vector_platform_device_skia.cc', |
| 92 ], |
| 93 }], |
| 94 ['OS == "ios"', { |
| 95 'sources/': [ |
| 96 ['exclude', '^ext/vector_platform_device_skia\\.'], |
| 97 ], |
| 98 'dependencies!': [ |
| 99 'skia_chrome_opts', |
| 100 ], |
| 101 }], |
| 102 [ 'OS == "win"', { |
| 103 'sources!': [ |
| 104 'ext/SkThread_chrome.cc', |
| 105 ], |
| 106 }], |
| 107 # TODO(scottmg): http://crbug.com/177306 |
| 108 ['clang==1', { |
| 109 'xcode_settings': { |
| 110 'WARNING_CFLAGS!': [ |
| 111 # Don't warn about string->bool used in asserts. |
| 112 '-Wstring-conversion', |
| 113 ], |
| 114 }, |
| 115 'cflags!': [ |
| 116 '-Wstring-conversion', |
| 117 ], |
| 118 }], |
| 119 ], |
| 120 |
| 121 'target_conditions': [ |
| 122 # Pull in specific linux files for android (which have been filtered out |
| 123 # by file name rules). |
| 124 [ 'OS == "android"', { |
| 125 'sources/': [ |
| 126 ['include', 'ext/platform_device_linux\\.cc$'], |
| 127 ], |
| 128 }], |
| 129 ], |
| 130 } |
| OLD | NEW |