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 'link_settings': { |
| 18 'libraries': [ |
| 19 '$(SDKROOT)/System/Library/Frameworks/IOSurface.framework', |
| 20 ], |
| 21 }, |
| 22 }], |
16 ], | 23 ], |
17 }, | 24 }, |
18 'targets': [ | 25 'targets': [ |
19 { | 26 { |
20 'target_name': 'surface', | 27 'target_name': 'surface', |
21 'type': '<(component)', | 28 'type': '<(component)', |
22 'dependencies': [ | 29 'dependencies': [ |
23 '../../base/base.gyp:base', | 30 '../../base/base.gyp:base', |
24 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', | 31 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', |
25 '../../skia/skia.gyp:skia', | 32 '../../skia/skia.gyp:skia', |
26 '../base/ui_base.gyp:ui_base', | 33 '../base/ui_base.gyp:ui_base', |
27 '../gfx/gfx.gyp:gfx_geometry', | 34 '../gfx/gfx.gyp:gfx_geometry', |
28 '../gl/gl.gyp:gl', | 35 '../gl/gl.gyp:gl', |
29 ], | 36 ], |
30 'sources': [ | 37 'sources': [ |
31 'accelerated_surface_mac.cc', | 38 'accelerated_surface_mac.cc', |
32 'accelerated_surface_mac.h', | 39 'accelerated_surface_mac.h', |
33 'surface_export.h', | 40 'surface_export.h', |
34 'transport_dib.h', | 41 'transport_dib.h', |
35 'transport_dib.cc', | 42 'transport_dib.cc', |
36 'transport_dib_posix.cc', | 43 'transport_dib_posix.cc', |
37 'transport_dib_win.cc', | 44 'transport_dib_win.cc', |
38 ], | 45 ], |
39 'defines': [ | 46 'defines': [ |
40 'SURFACE_IMPLEMENTATION', | 47 'SURFACE_IMPLEMENTATION', |
41 ], | 48 ], |
42 }, | 49 }, |
43 ], | 50 ], |
44 } | 51 } |
OLD | NEW |