| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 }, | 8 }, |
| 9 'target_defaults': { | 9 'target_defaults': { |
| 10 'conditions': [ | 10 'conditions': [ |
| 11 ['use_x11 == 1', { | 11 ['use_x11 == 1', { |
| 12 'include_dirs': [ | 12 'include_dirs': [ |
| 13 '../../third_party/khronos', | 13 '../../third_party/khronos', |
| 14 ], | 14 ], |
| 15 }], | 15 }], |
| 16 ['OS == "mac"', { | |
| 17 # Required by accelerated_surface_mac.cc. | |
| 18 'link_settings': { | |
| 19 'libraries': [ | |
| 20 '$(SDKROOT)/System/Library/Frameworks/IOSurface.framework', | |
| 21 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', | |
| 22 ], | |
| 23 }, | |
| 24 }], | |
| 25 ], | 16 ], |
| 26 }, | 17 }, |
| 27 'targets': [ | 18 'targets': [ |
| 28 { | 19 { |
| 29 'target_name': 'surface', | 20 'target_name': 'surface', |
| 30 'type': '<(component)', | 21 'type': '<(component)', |
| 31 'dependencies': [ | 22 'dependencies': [ |
| 32 '../../base/base.gyp:base', | 23 '../../base/base.gyp:base', |
| 33 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', | 24 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', |
| 34 '../../skia/skia.gyp:skia', | 25 '../../skia/skia.gyp:skia', |
| 35 '../base/ui_base.gyp:ui_base', | 26 '../base/ui_base.gyp:ui_base', |
| 36 '../gfx/gfx.gyp:gfx_geometry', | 27 '../gfx/gfx.gyp:gfx_geometry', |
| 37 '../gl/gl.gyp:gl', | 28 '../gl/gl.gyp:gl', |
| 38 ], | 29 ], |
| 39 'sources': [ | 30 'sources': [ |
| 40 'accelerated_surface_mac.cc', | |
| 41 'accelerated_surface_mac.h', | |
| 42 'surface_export.h', | 31 'surface_export.h', |
| 43 'transport_dib.cc', | 32 'transport_dib.cc', |
| 44 'transport_dib.h', | 33 'transport_dib.h', |
| 45 'transport_dib_posix.cc', | 34 'transport_dib_posix.cc', |
| 46 'transport_dib_win.cc', | 35 'transport_dib_win.cc', |
| 47 ], | 36 ], |
| 48 'defines': [ | 37 'defines': [ |
| 49 'SURFACE_IMPLEMENTATION', | 38 'SURFACE_IMPLEMENTATION', |
| 50 ], | 39 ], |
| 51 }, | 40 }, |
| 52 ], | 41 ], |
| 53 } | 42 } |
| OLD | NEW |