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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
{
'variables': {
'conditions': [
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
# Use the systemwide Qt libs by default
'variables': {
'qt_sdk%': '/usr',
},
'qt_sdk': '<(qt_sdk)',
'qt_moc%': 'moc',
'qt_includes': [
'<(qt_sdk)/include',
'<(qt_sdk)/include/QtCore',
'<(qt_sdk)/include/QtGui',
'<(qt_sdk)/include/QtOpenGL',
# Systemwide Qt libs are not contained under a single tree,
# so we're adding package-qualified paths as a fallback.
'<(qt_sdk)/include/qt4',
'<(qt_sdk)/include/qt4/QtCore',
'<(qt_sdk)/include/qt4/QtGui',
'<(qt_sdk)/include/qt4/QtOpenGL',
],
'qt_libs': [
'-lQtCore',
'-lQtGui',
'-lQtOpenGL'
],
}],
[ 'skia_os == "mac"', {
# Use the systemwide Qt libs by default
'variables': {
'qt_sdk%': '/Library/Frameworks',
},
'qt_sdk': '<(qt_sdk)',
'qt_moc%': 'moc',
'qt_includes': [
'<(qt_sdk)/QtCore.framework/Headers/',
'<(qt_sdk)/QtGui.framework/Headers/',
'<(qt_sdk)/QtOpenGL.framework/Headers/',
],
'qt_libs': [
'<(qt_sdk)/QtCore.framework',
'<(qt_sdk)/QtGui.framework',
'<(qt_sdk)/QtOpenGL.framework',
],
}],
[ 'skia_os == "win"', {
'variables': {
# TODO: location of systemwide Qt on Win?
'qt_sdk%': 'C:/Qt/4.6.4/',
},
'qt_sdk': '<(qt_sdk)',
'qt_moc%': '<(qt_sdk)/bin/moc',
'qt_includes': [
'<(qt_sdk)/include',
'<(qt_sdk)/include/QtCore',
'<(qt_sdk)/include/QtGui',
'<(qt_sdk)/include/QtOpenGL',
],
'qt_libs': [
'<(qt_sdk)/lib/QtCore4.lib',
'<(qt_sdk)/lib/QtGui4.lib',
'<(qt_sdk)/lib/QtOpenGL.lib',
],
}],
],
'moc_src_dir': '../debugger/QT',
},
'targets': [
{
'target_name': 'debugger',
'type': 'executable',
'mac_bundle': 1,
'mac_framework_dirs': [
'/Library/Frameworks',
],
'include_dirs' : [
'../src/core',
'../debugger', # To pull SkDebugger.h
'../debugger/QT', # For all the QT UI Goodies
'../src/gpu', # To pull gl/GrGLUtil.h
'<@(qt_includes)',
],
'sources': [
'../debugger/debuggermain.cpp',
'../debugger/SkDebugCanvas.h',
'../debugger/SkDebugCanvas.cpp',
'../debugger/SkDebugger.cpp',
'../debugger/SkDrawCommand.h',
'../debugger/SkDrawCommand.cpp',
'../debugger/SkObjectParser.h',
'../debugger/SkObjectParser.cpp',
'../debugger/QT/SkDebuggerGUI.cpp',
'../debugger/QT/SkDebuggerGUI.h',
'../debugger/QT/SkCanvasWidget.cpp',
'../debugger/QT/SkCanvasWidget.h',
'../debugger/QT/SkInspectorWidget.h',
'../debugger/QT/SkInspectorWidget.cpp',
'../debugger/QT/SkListWidget.h',
'../debugger/QT/SkListWidget.cpp',
'../debugger/QT/SkSettingsWidget.h',
'../debugger/QT/SkSettingsWidget.cpp',
'../debugger/QT/SkGLWidget.h',
'../debugger/QT/SkGLWidget.cpp',
'../debugger/QT/SkRasterWidget.h',
'../debugger/QT/SkRasterWidget.cpp',
# To update this file edit SkIcons.qrc and rerun rcc to generate cpp
'../debugger/QT/qrc_SkIcons.cpp',
# Generated MOC files
'<(moc_src_dir)/moc_SkCanvasWidget.cpp',
'<(moc_src_dir)/moc_SkDebuggerGUI.cpp',
'<(moc_src_dir)/moc_SkInspectorWidget.cpp',
'<(moc_src_dir)/moc_SkSettingsWidget.cpp',
'<(moc_src_dir)/moc_SkRasterWidget.cpp',
'<(moc_src_dir)/moc_SkGLWidget.cpp',
],
'dependencies': [
'core.gyp:core',
'images.gyp:images',
'ports.gyp:ports',
'effects.gyp:effects',
'gpu.gyp:gr',
'gpu.gyp:skgr',
'debugger_mocs',
],
'link_settings': {
'libraries': [
'<@(qt_libs)',
],
},
},
{
'target_name': 'debugger_mocs',
'type': 'none',
'sources': [
'<(moc_src_dir)/SkCanvasWidget.h',
'<(moc_src_dir)/SkDebuggerGUI.h',
'<(moc_src_dir)/SkInspectorWidget.h',
'<(moc_src_dir)/SkSettingsWidget.h',
'<(moc_src_dir)/SkRasterWidget.h',
'<(moc_src_dir)/SkGLWidget.h',
],
'rules': [
{
'rule_name': 'generate_moc',
'extension': 'h',
'outputs': [ '<(RULE_INPUT_DIRNAME)/moc_<(RULE_INPUT_ROOT).cpp' ],
'action': [ '<(qt_moc)', '<(RULE_INPUT_PATH)', '-o', '<(moc_src_dir)/moc_<(RULE_INPUT_ROOT).cpp' ],
'message': 'Generating <(RULE_INPUT_ROOT).cpp.',
},
],
},
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:
|