blob: 94025382fcce463f2814e2efcb985b151b8c2226 [file] [log] [blame]
chudy@google.com902ebe52012-06-29 14:21:22 +00001{
2 'targets': [
3 {
4 'target_name': 'debugger',
5 'type': 'executable',
6 'include_dirs' : [
7 '../src/core',
8 '../debugger', # To pull SkDebugger.h
9 '../debugger/QT', # For all the QT UI Goodies
chudy@google.comea5488b2012-07-26 19:38:22 +000010 '../src/gpu', # To pull gl/GrGLUtil.h
chudy@google.com902ebe52012-06-29 14:21:22 +000011 ],
12 'sources': [
chudy@google.combbad34d2012-08-13 14:26:36 +000013 '../debugger/debuggermain.cpp',
chudy@google.com902ebe52012-06-29 14:21:22 +000014 '../debugger/SkDebugCanvas.h',
15 '../debugger/SkDebugCanvas.cpp',
16 '../debugger/SkDebugger.cpp',
17 '../debugger/SkDrawCommand.h',
18 '../debugger/SkDrawCommand.cpp',
robertphillips@google.com8b62c602012-09-06 18:04:07 +000019 '../debugger/QT/moc_4.6.2_SkCanvasWidget.cpp',
20 '../debugger/QT/moc_4.6.2_SkDebuggerGUI.cpp',
21 '../debugger/QT/moc_4.6.2_SkInspectorWidget.cpp',
22 '../debugger/QT/moc_4.6.2_SkSettingsWidget.cpp',
23 '../debugger/QT/moc_4.6.2_SkRasterWidget.cpp',
24 '../debugger/QT/moc_4.6.2_SkGLWidget.cpp',
chudy@google.com902ebe52012-06-29 14:21:22 +000025 '../debugger/QT/SkDebuggerGUI.cpp',
26 '../debugger/QT/SkDebuggerGUI.h',
27 '../debugger/QT/SkCanvasWidget.cpp',
28 '../debugger/QT/SkCanvasWidget.h',
29 '../debugger/QT/SkInspectorWidget.h',
30 '../debugger/QT/SkInspectorWidget.cpp',
31 '../debugger/QT/SkListWidget.h',
32 '../debugger/QT/SkListWidget.cpp',
33 '../debugger/SkObjectParser.h',
34 '../debugger/SkObjectParser.cpp',
35 '../debugger/QT/SkSettingsWidget.h',
36 '../debugger/QT/SkSettingsWidget.cpp',
chudy@google.comea5488b2012-07-26 19:38:22 +000037 '../debugger/QT/SkGLWidget.h',
38 '../debugger/QT/SkGLWidget.cpp',
39 '../debugger/QT/SkRasterWidget.h',
40 '../debugger/QT/SkRasterWidget.cpp',
chudy@google.com902ebe52012-06-29 14:21:22 +000041
42 # To update this file edit SkIcons.qrc and rerun rcc to generate cpp
43 '../debugger/QT/qrc_SkIcons.cpp',
44 ],
45 'dependencies': [
46 'core.gyp:core',
47 'images.gyp:images',
48 'ports.gyp:ports',
49 'effects.gyp:effects',
chudy@google.comea5488b2012-07-26 19:38:22 +000050 'gpu.gyp:gr',
51 'gpu.gyp:skgr',
chudy@google.com902ebe52012-06-29 14:21:22 +000052 ],
53 'conditions': [
54 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
55 'include_dirs': [
56 '/usr/include/qt4',
57 '/usr/include/qt4/QtCore',
58 '/usr/include/qt4/QtGui',
chudy@google.comea5488b2012-07-26 19:38:22 +000059 '/usr/include/qt4/QtOpenGL',
chudy@google.com902ebe52012-06-29 14:21:22 +000060 ],
61 'link_settings': {
62 'libraries' : [
chudy@google.comd3058f52012-07-19 13:41:27 +000063 '-lQtCore',
64 '-lQtGui',
chudy@google.comea5488b2012-07-26 19:38:22 +000065 '-lQtOpenGL'
chudy@google.com902ebe52012-06-29 14:21:22 +000066 ],
67 },
68 }],
djsollen@google.come7290ef2012-06-29 18:26:27 +000069 [ 'skia_os == "mac" and skia_arch_width != 64', {
caryclark@google.com594dd3c2012-09-24 19:33:57 +000070 'error': '<!(skia_arch_width must be 64 bits when building the debugger on mac)'
djsollen@google.come7290ef2012-06-29 18:26:27 +000071 }],
chudy@google.com902ebe52012-06-29 14:21:22 +000072 [ 'skia_os == "mac"', {
73 'mac_bundle' : 1,
74 'include_dirs': [
75 '/Library/Frameworks/QtCore.framework/Headers/',
76 '/Library/Frameworks/QtGui.framework/Headers/',
chudy@google.comea5488b2012-07-26 19:38:22 +000077 '/Library/Frameworks/QtOpenGL.framework/Headers/',
chudy@google.com902ebe52012-06-29 14:21:22 +000078 ],
79 'link_settings': {
80 'libraries': [
81 '/Library/Frameworks/QtCore.framework',
82 '/Library/Frameworks/QtGui.framework',
chudy@google.comea5488b2012-07-26 19:38:22 +000083 '/Library/Frameworks/QtOpenGL.framework',
chudy@google.com902ebe52012-06-29 14:21:22 +000084 ],
85 },
86 }],
caryclark@google.com594dd3c2012-09-24 19:33:57 +000087 [ 'skia_os in ["android", "ios"]', {
88 'error': '<!(debugger unsupported with skia_os=<(skia_os))'
89 }],
chudy@google.com902ebe52012-06-29 14:21:22 +000090 [ 'skia_os == "win"', {
91 'include_dirs': [
92 # TODO(chudy): Dynamically generate these paths?
93 'C:/Qt/4.6.4/include',
94 'C:/Qt/4.6.4/include/QtCore',
95 'C:/Qt/4.6.4/include/QtGui',
chudy@google.comea5488b2012-07-26 19:38:22 +000096 'C:/Qt/4.6.4/include/QtOpenGL',
chudy@google.com902ebe52012-06-29 14:21:22 +000097 ],
98 'link_settings': {
99 'libraries': [
100 'C:/Qt/4.6.4/lib/QtCore4.lib',
101 'C:/Qt/4.6.4/lib/QtGui4.lib',
chudy@google.comea5488b2012-07-26 19:38:22 +0000102 'C:/Qt/4.6.4/lib/QtOpenGL.lib',
chudy@google.com902ebe52012-06-29 14:21:22 +0000103 ],
104 },
105 }],
106 ]
107 },
108 ],
109}
110
111# Local Variables:
112# tab-width:2
113# indent-tabs-mode:nil
114# End:
chudy@google.comd3058f52012-07-19 13:41:27 +0000115# vim: set expandtab tabstop=2 shiftwidth=2: