OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'sources/': [ | 10 'sources/': [ |
11 ['exclude', '_(gl|win)\\.(cc?)$'], | 11 ['exclude', '_(gl|win)\\.(cc?)$'], |
12 ], | 12 ], |
13 'conditions': [ | 13 'conditions': [ |
14 ['os_posix == 1 and OS != "mac"', { | 14 ['os_posix == 1 and OS != "mac"', { |
15 'sources/': [['include', '_(gl)\\.(h|cc)$'],] | 15 'sources/': [['include', '_(gl)\\.(h|cc)$'],] |
16 }], | 16 }], |
17 ['OS == "win"', { | 17 ['OS == "win"', { |
18 'sources/': [['include', '_(win)\\.(h|cc)$'],] | 18 'sources/': [['include', '_(win)\\.(h|cc)$'],] |
19 }], | 19 }], |
20 ], | 20 ], |
21 }, | 21 }, |
22 'targets': [ | 22 'targets': [ |
23 { | 23 { |
24 'target_name': 'compositor', | 24 'target_name': 'compositor', |
25 'type': 'static_library', | 25 'type': '<(component)', |
26 'dependencies': [ | 26 'dependencies': [ |
27 '<(DEPTH)/base/base.gyp:base', | 27 '<(DEPTH)/base/base.gyp:base', |
28 '<(DEPTH)/skia/skia.gyp:skia', | 28 '<(DEPTH)/skia/skia.gyp:skia', |
29 '<(DEPTH)/ui/gfx/gl/gl.gyp:gl', | 29 '<(DEPTH)/ui/gfx/gl/gl.gyp:gl', |
30 '<(DEPTH)/ui/ui.gyp:ui', | 30 '<(DEPTH)/ui/ui.gyp:ui', |
31 ], | 31 ], |
| 32 'defines': [ |
| 33 'COMPOSITOR_IMPLEMENTATION', |
| 34 ], |
32 'sources': [ | 35 'sources': [ |
33 'compositor.cc', | 36 'compositor.cc', |
34 'compositor.h', | 37 'compositor.h', |
| 38 'compositor_export.h', |
35 'compositor_gl.cc', | 39 'compositor_gl.cc', |
36 'compositor_gl.h', | 40 'compositor_gl.h', |
37 'compositor_win.cc', | 41 'compositor_win.cc', |
38 'layer.cc', | 42 'layer.cc', |
39 'layer.h', | 43 'layer.h', |
40 'layer_animator.cc', | 44 'layer_animator.cc', |
41 'layer_animator.h', | 45 'layer_animator.h', |
42 ], | 46 ], |
43 'conditions': [ | 47 'conditions': [ |
44 ['os_posix == 1 and OS != "mac"', { | 48 ['os_posix == 1 and OS != "mac"', { |
(...skipping 21 matching lines...) Expand all Loading... |
66 }], | 70 }], |
67 ['OS == "win" and views_compositor == 0', { | 71 ['OS == "win" and views_compositor == 0', { |
68 'sources/': [ | 72 'sources/': [ |
69 ['exclude', '^compositor_win.cc'], | 73 ['exclude', '^compositor_win.cc'], |
70 ], | 74 ], |
71 }], | 75 }], |
72 ], | 76 ], |
73 }, | 77 }, |
74 ], | 78 ], |
75 } | 79 } |
OLD | NEW |