Chromium Code Reviews| Index: skia/skia_chrome.gypi |
| diff --git a/skia/skia_chrome.gypi b/skia/skia_chrome.gypi |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f243306acd19e86e61a02e2e6b7e3b494c24cd91 |
| --- /dev/null |
| +++ b/skia/skia_chrome.gypi |
| @@ -0,0 +1,131 @@ |
| +# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
robertphillips
2013/07/12 14:01:40
2013?
djsollen
2013/07/12 14:43:27
Done.
|
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
|
robertphillips
2013/07/12 14:01:40
# This gyp file contains all the Chrome-specific e
djsollen
2013/07/12 14:43:27
Done.
|
| +{ |
| + 'dependencies': [ |
| + 'skia_library', |
| + '../base/base.gyp:base', |
| + '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
| + ], |
| + |
| + 'direct_dependent_settings': { |
| + 'include_dirs': [ |
| + 'ext', |
| + ], |
| + }, |
| + |
| + 'include_dirs': [ |
| + '..', |
| + ], |
| + |
| + 'sources': [ |
| + 'ext/analysis_canvas.cc', |
| + 'ext/analysis_canvas.h', |
| + 'ext/bitmap_platform_device.h', |
| + 'ext/bitmap_platform_device_android.cc', |
| + 'ext/bitmap_platform_device_android.h', |
| + 'ext/bitmap_platform_device_data.h', |
| + 'ext/bitmap_platform_device_linux.cc', |
| + 'ext/bitmap_platform_device_linux.h', |
| + 'ext/bitmap_platform_device_mac.cc', |
| + 'ext/bitmap_platform_device_mac.h', |
| + 'ext/bitmap_platform_device_win.cc', |
| + 'ext/bitmap_platform_device_win.h', |
| + 'ext/convolver.cc', |
| + 'ext/convolver.h', |
| + 'ext/google_logging.cc', |
| + 'ext/image_operations.cc', |
| + 'ext/image_operations.h', |
| + 'ext/lazy_pixel_ref.cc', |
| + 'ext/lazy_pixel_ref.h', |
| + 'ext/lazy_pixel_ref_utils.cc', |
| + 'ext/lazy_pixel_ref_utils.h', |
| + 'ext/SkThread_chrome.cc', |
| + 'ext/paint_simplifier.cc', |
| + 'ext/paint_simplifier.h', |
| + 'ext/platform_canvas.cc', |
| + 'ext/platform_canvas.h', |
| + 'ext/platform_device.cc', |
| + 'ext/platform_device.h', |
| + 'ext/platform_device_linux.cc', |
| + 'ext/platform_device_mac.cc', |
| + 'ext/platform_device_win.cc', |
| + 'ext/recursive_gaussian_convolution.cc', |
| + 'ext/recursive_gaussian_convolution.h', |
| + 'ext/refptr.h', |
| + 'ext/SkMemory_new_handler.cpp', |
| + 'ext/skia_trace_shim.h', |
| + 'ext/skia_utils_base.cc', |
| + 'ext/skia_utils_base.h', |
| + 'ext/skia_utils_ios.mm', |
| + 'ext/skia_utils_ios.h', |
| + 'ext/skia_utils_mac.mm', |
| + 'ext/skia_utils_mac.h', |
| + 'ext/skia_utils_win.cc', |
| + 'ext/skia_utils_win.h', |
| + 'ext/vector_canvas.cc', |
| + 'ext/vector_canvas.h', |
| + 'ext/vector_platform_device_emf_win.cc', |
| + 'ext/vector_platform_device_emf_win.h', |
| + 'ext/vector_platform_device_skia.cc', |
| + 'ext/vector_platform_device_skia.h', |
| + ], |
| + |
| + 'conditions': [ |
| + # For POSIX platforms, prefer the Mutex implementation provided by Skia |
| + # since it does not generate static initializers. |
| + # TODO: should check if SK_USE_POSIX_THREADS is defined instead |
| + [ 'OS == "android" or OS == "linux" or OS == "mac" or OS == "ios"', { |
| + 'sources!': [ |
| + 'ext/SkThread_chrome.cc', |
| + ], |
| + }], |
| + [ 'OS == "android"', { |
| + 'sources!': [ |
| + 'ext/vector_platform_device_skia.cc', |
| + ], |
| + }], |
| + ['OS == "ios"', { |
| + 'sources/': [ |
| + ['exclude', '^ext/vector_platform_device_skia\\.'], |
| + ], |
| + 'dependencies!': [ |
| + 'skia_chrome_opts', |
| + ], |
| + }], |
| + [ 'OS == "win"', { |
| + 'sources!': [ |
| + 'ext/SkThread_chrome.cc', |
| + ], |
| + }], |
| + # TODO(scottmg): http://crbug.com/177306 |
| + ['clang==1', { |
| + 'xcode_settings': { |
| + 'WARNING_CFLAGS!': [ |
| + # Don't warn about string->bool used in asserts. |
| + '-Wstring-conversion', |
| + ], |
| + }, |
| + 'cflags!': [ |
| + '-Wstring-conversion', |
| + ], |
| + }], |
| + ['component=="shared_library"', { |
| + 'defines': [ |
| + 'GR_IMPLEMENTATION=1', |
| + 'SKIA_IMPLEMENTATION=1', |
| + ], |
| + }], |
| + ], |
| + |
| + 'target_conditions': [ |
| + # Pull in specific linux files for android (which have been filtered out |
| + # by file name rules). |
| + [ 'OS == "android"', { |
| + 'sources/': [ |
| + ['include', 'ext/platform_device_linux\\.cc$'], |
| + ], |
| + }], |
| + ], |
| +} |