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': '<(component)', | 25 'type': 'static_library', |
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 ], | |
35 'sources': [ | 32 'sources': [ |
36 'compositor.cc', | 33 'compositor.cc', |
37 'compositor.h', | 34 'compositor.h', |
38 'compositor_export.h', | |
39 'compositor_gl.cc', | 35 'compositor_gl.cc', |
40 'compositor_gl.h', | 36 'compositor_gl.h', |
41 'compositor_win.cc', | 37 'compositor_win.cc', |
42 'layer.cc', | 38 'layer.cc', |
43 'layer.h', | 39 'layer.h', |
44 'layer_animator.cc', | 40 'layer_animator.cc', |
45 'layer_animator.h', | 41 'layer_animator.h', |
46 ], | 42 ], |
47 'conditions': [ | 43 'conditions': [ |
48 ['os_posix == 1 and OS != "mac"', { | 44 ['os_posix == 1 and OS != "mac"', { |
(...skipping 21 matching lines...) Expand all Loading... |
70 }], | 66 }], |
71 ['OS == "win" and views_compositor == 0', { | 67 ['OS == "win" and views_compositor == 0', { |
72 'sources/': [ | 68 'sources/': [ |
73 ['exclude', '^compositor_win.cc'], | 69 ['exclude', '^compositor_win.cc'], |
74 ], | 70 ], |
75 }], | 71 }], |
76 ], | 72 ], |
77 }, | 73 }, |
78 ], | 74 ], |
79 } | 75 } |
OLD | NEW |