blob: 32afe7c302a2d2cb41857266448e558ad0742669 [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.com129dee82012-09-24 21:38:38 +000070# this is now mysteriously triggered for all mac builds
71# 'error': '<!(skia_arch_width must be 64 bits when building the debugger on mac)'
djsollen@google.come7290ef2012-06-29 18:26:27 +000072 }],
chudy@google.com902ebe52012-06-29 14:21:22 +000073 [ 'skia_os == "mac"', {
74 'mac_bundle' : 1,
fmalita@google.com36631b92012-09-26 18:32:58 +000075 'mac_framework_dirs': [
76 '/Library/Frameworks',
77 ],
chudy@google.com902ebe52012-06-29 14:21:22 +000078 'include_dirs': [
79 '/Library/Frameworks/QtCore.framework/Headers/',
80 '/Library/Frameworks/QtGui.framework/Headers/',
chudy@google.comea5488b2012-07-26 19:38:22 +000081 '/Library/Frameworks/QtOpenGL.framework/Headers/',
chudy@google.com902ebe52012-06-29 14:21:22 +000082 ],
83 'link_settings': {
84 'libraries': [
85 '/Library/Frameworks/QtCore.framework',
86 '/Library/Frameworks/QtGui.framework',
chudy@google.comea5488b2012-07-26 19:38:22 +000087 '/Library/Frameworks/QtOpenGL.framework',
chudy@google.com902ebe52012-06-29 14:21:22 +000088 ],
89 },
90 }],
caryclark@google.com18b38232012-09-24 20:08:43 +000091 [ 'skia_os in ["ios"]', {
caryclark@google.com594dd3c2012-09-24 19:33:57 +000092 'error': '<!(debugger unsupported with skia_os=<(skia_os))'
93 }],
chudy@google.com902ebe52012-06-29 14:21:22 +000094 [ 'skia_os == "win"', {
95 'include_dirs': [
96 # TODO(chudy): Dynamically generate these paths?
97 'C:/Qt/4.6.4/include',
98 'C:/Qt/4.6.4/include/QtCore',
99 'C:/Qt/4.6.4/include/QtGui',
chudy@google.comea5488b2012-07-26 19:38:22 +0000100 'C:/Qt/4.6.4/include/QtOpenGL',
chudy@google.com902ebe52012-06-29 14:21:22 +0000101 ],
102 'link_settings': {
103 'libraries': [
104 'C:/Qt/4.6.4/lib/QtCore4.lib',
105 'C:/Qt/4.6.4/lib/QtGui4.lib',
chudy@google.comea5488b2012-07-26 19:38:22 +0000106 'C:/Qt/4.6.4/lib/QtOpenGL.lib',
chudy@google.com902ebe52012-06-29 14:21:22 +0000107 ],
108 },
109 }],
110 ]
111 },
112 ],
113}
114
115# Local Variables:
116# tab-width:2
117# indent-tabs-mode:nil
118# End:
chudy@google.comd3058f52012-07-19 13:41:27 +0000119# vim: set expandtab tabstop=2 shiftwidth=2: