Home | History | Annotate | Download | only in skia
      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_annotations',
     15   ],
     16 
     17   'direct_dependent_settings': {
     18     'include_dirs': [
     19       'ext',
     20     ],
     21   },
     22 
     23   'sources': [
     24     'ext/analysis_canvas.cc',
     25     'ext/analysis_canvas.h',
     26     'ext/benchmarking_canvas.cc',
     27     'ext/benchmarking_canvas.h',
     28     'ext/bitmap_platform_device.h',
     29     'ext/bitmap_platform_device_cairo.cc',
     30     'ext/bitmap_platform_device_cairo.h',
     31     'ext/bitmap_platform_device_mac.cc',
     32     'ext/bitmap_platform_device_mac.h',
     33     'ext/bitmap_platform_device_skia.cc',
     34     'ext/bitmap_platform_device_skia.h',
     35     'ext/bitmap_platform_device_win.cc',
     36     'ext/bitmap_platform_device_win.h',
     37     'ext/convolver.cc',
     38     'ext/convolver.h',
     39     'ext/event_tracer_impl.cc',
     40     'ext/event_tracer_impl.h',
     41     'ext/fontmgr_default_win.cc',
     42     'ext/fontmgr_default_win.h',
     43     'ext/google_logging.cc',
     44     'ext/image_operations.cc',
     45     'ext/image_operations.h',
     46     'ext/lazy_pixel_ref.cc',
     47     'ext/lazy_pixel_ref.h',
     48     'ext/opacity_draw_filter.cc',
     49     'ext/opacity_draw_filter.h',
     50     'ext/paint_simplifier.cc',
     51     'ext/paint_simplifier.h',
     52     'ext/pixel_ref_utils.cc',
     53     'ext/pixel_ref_utils.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',
     63     'ext/refptr.h',
     64     'ext/SkDiscardableMemory_chrome.h',
     65     'ext/SkDiscardableMemory_chrome.cc',
     66     'ext/SkMemory_new_handler.cpp',
     67     'ext/skia_trace_shim.h',
     68     'ext/skia_utils_base.cc',
     69     'ext/skia_utils_base.h',
     70     'ext/skia_utils_ios.mm',
     71     'ext/skia_utils_ios.h',
     72     'ext/skia_utils_mac.mm',
     73     'ext/skia_utils_mac.h',
     74     'ext/skia_utils_win.cc',
     75     'ext/skia_utils_win.h',
     76     'ext/vector_canvas.h',
     77     'ext/vector_platform_device_emf_win.cc',
     78     'ext/vector_platform_device_emf_win.h',
     79     'ext/vector_platform_device_skia.cc',
     80     'ext/vector_platform_device_skia.h',
     81   ],
     82   'conditions': [
     83     [ 'OS == "android" and enable_printing == 0', {
     84       'sources!': [
     85         'ext/skia_utils_base.cc',
     86       ],
     87     }],
     88     [ 'enable_printing == 0', {
     89       'sources!': [
     90         'ext/vector_platform_device_skia.cc',
     91       ],
     92     }],
     93     ['OS == "ios"', {
     94       'sources/': [
     95         ['exclude', '^ext/vector_platform_device_skia\\.'],
     96       ],
     97       'dependencies!': [
     98         'skia_chrome_opts',
     99       ],
    100     }],
    101     # TODO(scottmg): http://crbug.com/177306
    102     ['clang==1', {
    103       'xcode_settings': {
    104         'WARNING_CFLAGS!': [
    105           # Don't warn about string->bool used in asserts.
    106           '-Wstring-conversion',
    107         ],
    108       },
    109       'cflags!': [
    110         '-Wstring-conversion',
    111       ],
    112     }],
    113     [ 'OS != "android" and (OS != "linux" or use_cairo==1)', {
    114       'sources!': [
    115         'ext/bitmap_platform_device_skia.cc',
    116       ],
    117     }],
    118   ],
    119 
    120   'target_conditions': [
    121     # Pull in specific linux files for android (which have been filtered out
    122     # by file name rules).
    123     [ 'OS == "android"', {
    124       'sources/': [
    125         ['include', 'ext/platform_device_linux\\.cc$'],
    126       ],
    127     }],
    128   ],
    129 }
    130