Home | History | Annotate | Download | only in surface
      1 # Copyright (c) 2012 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   'variables': {
      7     'chromium_code': 1,
      8   },
      9   'target_defaults': {
     10     'conditions': [
     11       ['use_x11 == 1', {
     12         'include_dirs': [
     13           '../../third_party/khronos',
     14         ],
     15       }],
     16       ['OS == "mac"', {
     17         'link_settings': {
     18           'libraries': [
     19             '$(SDKROOT)/System/Library/Frameworks/IOSurface.framework',
     20           ],
     21         },
     22       }],
     23     ],
     24   },
     25   'targets': [
     26     {
     27       'target_name': 'surface',
     28       'type': '<(component)',
     29       'dependencies': [
     30         '../../base/base.gyp:base',
     31         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
     32         '../../skia/skia.gyp:skia',
     33         '../base/ui_base.gyp:ui_base',
     34         '../gfx/gfx.gyp:gfx_geometry',
     35         '../gl/gl.gyp:gl',
     36       ],
     37       'sources': [
     38         'accelerated_surface_mac.cc',
     39         'accelerated_surface_mac.h',
     40         'surface_export.h',
     41         'transport_dib.h',
     42         'transport_dib.cc',
     43         'transport_dib_posix.cc',
     44         'transport_dib_win.cc',
     45       ],
     46       'defines': [
     47         'SURFACE_IMPLEMENTATION',
     48       ],
     49     },
     50   ],
     51 }
     52