1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'target_defaults': {
'sources/': [
['exclude', '_(gl|win)\\.(cc?)$'],
],
'conditions': [
['os_posix == 1 and OS != "mac"', {
'sources/': [['include', '_(gl)\\.(h|cc)$'],]
}],
['OS == "win"', {
'sources/': [['include', '_(win)\\.(h|cc)$'],]
}],
],
},
'targets': [
{
'target_name': 'compositor',
'type': 'static_library',
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/skia/skia.gyp:skia',
'<(DEPTH)/ui/gfx/gl/gl.gyp:gl',
'<(DEPTH)/ui/ui.gyp:ui',
],
'sources': [
'compositor.cc',
'compositor.h',
'compositor_gl.cc',
'compositor_gl.h',
'compositor_win.cc',
'layer.cc',
'layer.h',
'layer_animator.cc',
'layer_animator.h',
],
'conditions': [
['os_posix == 1 and OS != "mac"', {
'sources!': [
'compositor.cc',
],
}],
['OS == "win" and views_compositor == 1', {
'sources!': [
'compositor.cc',
],
# TODO(sky): before we make this real need to remove
# IDR_BITMAP_BRUSH_IMAGE.
'dependencies': [
'<(DEPTH)/ui/ui.gyp:gfx_resources',
],
'link_settings': {
'libraries': [
'-ld3d10.lib',
'-ld3dx10d.lib',
'-ldxerr.lib',
'-ldxguid.lib',
]
},
}],
['OS == "win" and views_compositor == 0', {
'sources/': [
['exclude', '^compositor_win.cc'],
],
}],
],
},
],
}
|