blob: b935fb056d88ce5f73ee7237ef2251ce1c7e1bad [file] [log] [blame]
chudy@google.com902ebe52012-06-29 14:21:22 +00001{
fmalita@google.combacfcfb2012-09-27 13:34:34 +00002 'variables': {
3 'conditions': [
4 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
5 # Use the systemwide Qt libs by default
6 'variables': {
7 'qt_sdk%': '/usr',
8 },
9 'qt_sdk': '<(qt_sdk)',
10 'qt_moc%': 'moc',
11 'qt_includes': [
12 '<(qt_sdk)/include',
13 '<(qt_sdk)/include/QtCore',
14 '<(qt_sdk)/include/QtGui',
15 '<(qt_sdk)/include/QtOpenGL',
16
17 # Systemwide Qt libs are not contained under a single tree,
18 # so we're adding package-qualified paths as a fallback.
19 '<(qt_sdk)/include/qt4',
20 '<(qt_sdk)/include/qt4/QtCore',
21 '<(qt_sdk)/include/qt4/QtGui',
22 '<(qt_sdk)/include/qt4/QtOpenGL',
23 ],
24 'qt_libs': [
25 '-lQtCore',
26 '-lQtGui',
27 '-lQtOpenGL'
28 ],
29 }],
30 [ 'skia_os == "mac"', {
31 # Use the systemwide Qt libs by default
32 'variables': {
33 'qt_sdk%': '/Library/Frameworks',
34 },
35 'qt_sdk': '<(qt_sdk)',
36 'qt_moc%': 'moc',
37 'qt_includes': [
38 '<(qt_sdk)/QtCore.framework/Headers/',
39 '<(qt_sdk)/QtGui.framework/Headers/',
40 '<(qt_sdk)/QtOpenGL.framework/Headers/',
41 ],
42 'qt_libs': [
43 '<(qt_sdk)/QtCore.framework',
44 '<(qt_sdk)/QtGui.framework',
45 '<(qt_sdk)/QtOpenGL.framework',
46 ],
47 }],
48 [ 'skia_os == "win"', {
49 'variables': {
bsalomon@google.comd9804782012-10-11 14:33:10 +000050 # This is the default location for the version of Qt current on 10/11/12
51 'qt_sdk%': 'C:/Qt/4.8.3/',
fmalita@google.combacfcfb2012-09-27 13:34:34 +000052 },
53 'qt_sdk': '<(qt_sdk)',
54 'qt_moc%': '<(qt_sdk)/bin/moc',
55 'qt_includes': [
56 '<(qt_sdk)/include',
57 '<(qt_sdk)/include/QtCore',
58 '<(qt_sdk)/include/QtGui',
59 '<(qt_sdk)/include/QtOpenGL',
60 ],
61 'qt_libs': [
62 '<(qt_sdk)/lib/QtCore4.lib',
63 '<(qt_sdk)/lib/QtGui4.lib',
bsalomon@google.comd9804782012-10-11 14:33:10 +000064 '<(qt_sdk)/lib/QtOpenGL4.lib',
fmalita@google.combacfcfb2012-09-27 13:34:34 +000065 ],
66 }],
67 ],
68 'moc_src_dir': '../debugger/QT',
bungeman@google.comb3e77942012-10-15 14:31:29 +000069 'moc_gen_dir': '<(SHARED_INTERMEDIATE_DIR)/debugger/QT',
fmalita@google.combacfcfb2012-09-27 13:34:34 +000070 },
chudy@google.com902ebe52012-06-29 14:21:22 +000071 'targets': [
72 {
73 'target_name': 'debugger',
74 'type': 'executable',
fmalita@google.combacfcfb2012-09-27 13:34:34 +000075 'mac_bundle': 1,
76 'mac_framework_dirs': [
77 '/Library/Frameworks',
78 ],
chudy@google.com902ebe52012-06-29 14:21:22 +000079 'include_dirs' : [
80 '../src/core',
fmalita@google.combacfcfb2012-09-27 13:34:34 +000081 '../debugger', # To pull SkDebugger.h
fmalita@google.combacfcfb2012-09-27 13:34:34 +000082 '../src/gpu', # To pull gl/GrGLUtil.h
humper@google.comf515ffc2013-01-07 15:48:19 +000083 '../src/ports', # To pull SkFontDescriptor.h
robertphillips@google.com2bde91d2012-11-15 14:57:57 +000084 '../bench',
85 '../tools',
chudy@google.com902ebe52012-06-29 14:21:22 +000086 ],
87 'sources': [
88 '../debugger/SkDebugCanvas.h',
89 '../debugger/SkDebugCanvas.cpp',
90 '../debugger/SkDebugger.cpp',
91 '../debugger/SkDrawCommand.h',
92 '../debugger/SkDrawCommand.cpp',
fmalita@google.combacfcfb2012-09-27 13:34:34 +000093 '../debugger/SkObjectParser.h',
94 '../debugger/SkObjectParser.cpp',
chudy@google.com902ebe52012-06-29 14:21:22 +000095 ],
96 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000097 'skia_base_libs.gyp:skia_base_libs',
chudy@google.com902ebe52012-06-29 14:21:22 +000098 'images.gyp:images',
chudy@google.com902ebe52012-06-29 14:21:22 +000099 'effects.gyp:effects',
robertphillips@google.com2bde91d2012-11-15 14:57:57 +0000100 'bench.gyp:bench_timer',
101 'tools.gyp:picture_renderer',
chudy@google.com902ebe52012-06-29 14:21:22 +0000102 ],
borenet@google.com327b9b22013-03-07 15:33:28 +0000103 'conditions': [
104 [ 'skia_os == "nacl"', {
105 'dependencies': [
106 'utils.gyp:utils', # For SkBase64.h
107 ],
108 'include_dirs': [
109 '../src/utils',
110 ],
111 'sources': [
borenet@google.com6a98b8c2013-05-06 12:50:00 +0000112 '../platform_tools/nacl/src/nacl_debugger.cpp',
borenet@google.com327b9b22013-03-07 15:33:28 +0000113 ],
114 }, { # skia_os != "nacl"
115 'include_dirs': [
116 '../debugger/QT', # For all the QT UI Goodies
117 '<@(qt_includes)',
118 ],
119 'sources': [
120 '../debugger/debuggermain.cpp',
121 '../debugger/QT/SkDebuggerGUI.cpp',
122 '../debugger/QT/SkDebuggerGUI.h',
123 '../debugger/QT/SkCanvasWidget.cpp',
124 '../debugger/QT/SkCanvasWidget.h',
125 '../debugger/QT/SkInspectorWidget.h',
126 '../debugger/QT/SkInspectorWidget.cpp',
127 '../debugger/QT/SkListWidget.h',
128 '../debugger/QT/SkListWidget.cpp',
129 '../debugger/QT/SkSettingsWidget.h',
130 '../debugger/QT/SkSettingsWidget.cpp',
131 '../debugger/QT/SkGLWidget.h',
132 '../debugger/QT/SkGLWidget.cpp',
133 '../debugger/QT/SkRasterWidget.h',
134 '../debugger/QT/SkRasterWidget.cpp',
135 '../debugger/QT/SkImageWidget.h',
136 '../debugger/QT/SkImageWidget.cpp',
skia.committer@gmail.com754a3eb2013-03-08 07:01:25 +0000137
borenet@google.com327b9b22013-03-07 15:33:28 +0000138 # To update this file edit SkIcons.qrc and rerun rcc to generate cpp
139 '../debugger/QT/qrc_SkIcons.cpp',
skia.committer@gmail.com754a3eb2013-03-08 07:01:25 +0000140
borenet@google.com327b9b22013-03-07 15:33:28 +0000141 # Generated MOC files
142 '<(moc_gen_dir)/moc_SkCanvasWidget.cpp',
143 '<(moc_gen_dir)/moc_SkDebuggerGUI.cpp',
144 '<(moc_gen_dir)/moc_SkInspectorWidget.cpp',
145 '<(moc_gen_dir)/moc_SkSettingsWidget.cpp',
146 '<(moc_gen_dir)/moc_SkRasterWidget.cpp',
147 '<(moc_gen_dir)/moc_SkImageWidget.cpp',
148 '<(moc_gen_dir)/moc_SkGLWidget.cpp',
149 ],
150 'dependencies': [
151 'debugger_qt_mocs',
152 ],
153 'link_settings': {
154 'libraries': [
155 '<@(qt_libs)',
156 ],
157 },
158 }],
159 ],
fmalita@google.combacfcfb2012-09-27 13:34:34 +0000160 },
borenet@google.com327b9b22013-03-07 15:33:28 +0000161 ],
162 'conditions': [
163 [ 'skia_os != "nacl"', {
164 'targets': [
fmalita@google.combacfcfb2012-09-27 13:34:34 +0000165 {
borenet@google.com327b9b22013-03-07 15:33:28 +0000166 'target_name': 'debugger_qt_mocs',
167 'type': 'none',
168 'sources': [
169 '<(moc_src_dir)/SkCanvasWidget.h',
170 '<(moc_src_dir)/SkDebuggerGUI.h',
171 '<(moc_src_dir)/SkInspectorWidget.h',
172 '<(moc_src_dir)/SkSettingsWidget.h',
173 '<(moc_src_dir)/SkRasterWidget.h',
174 '<(moc_src_dir)/SkImageWidget.h',
175 '<(moc_src_dir)/SkGLWidget.h',
176 ],
177 'rules': [
178 {
179 'rule_name': 'generate_moc',
180 'extension': 'h',
181 'outputs': [ '<(moc_gen_dir)/moc_<(RULE_INPUT_ROOT).cpp' ],
182 'action': [ '<(qt_moc)', '-DSK_SUPPORT_GPU=<(skia_gpu)',
183 '<(RULE_INPUT_PATH)',
184 '-o', '<(moc_gen_dir)/moc_<(RULE_INPUT_ROOT).cpp' ],
185 'message': 'Generating <(RULE_INPUT_ROOT).cpp.',
186 },
187 ],
fmalita@google.combacfcfb2012-09-27 13:34:34 +0000188 },
189 ],
borenet@google.com327b9b22013-03-07 15:33:28 +0000190 }],
chudy@google.com902ebe52012-06-29 14:21:22 +0000191 ],
192}
193
194# Local Variables:
195# tab-width:2
196# indent-tabs-mode:nil
197# End:
chudy@google.comd3058f52012-07-19 13:41:27 +0000198# vim: set expandtab tabstop=2 shiftwidth=2: