blob: f2c3fe956b6fd955151acc492d21ca3c91c5cff4 [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': [
13 '../debugger/SkDebugCanvas.h',
14 '../debugger/SkDebugCanvas.cpp',
15 '../debugger/SkDebugger.cpp',
16 '../debugger/SkDrawCommand.h',
17 '../debugger/SkDrawCommand.cpp',
chudy@google.com902ebe52012-06-29 14:21:22 +000018 '../debugger/QT/moc_SkCanvasWidget.cpp',
chudy@google.comea5488b2012-07-26 19:38:22 +000019 '../debugger/QT/moc_SkDebuggerGUI.cpp',
chudy@google.com902ebe52012-06-29 14:21:22 +000020 '../debugger/QT/moc_SkInspectorWidget.cpp',
21 '../debugger/QT/moc_SkSettingsWidget.cpp',
22 '../debugger/QT/SkDebuggerGUI.cpp',
23 '../debugger/QT/SkDebuggerGUI.h',
24 '../debugger/QT/SkCanvasWidget.cpp',
25 '../debugger/QT/SkCanvasWidget.h',
26 '../debugger/QT/SkInspectorWidget.h',
27 '../debugger/QT/SkInspectorWidget.cpp',
28 '../debugger/QT/SkListWidget.h',
29 '../debugger/QT/SkListWidget.cpp',
30 '../debugger/SkObjectParser.h',
31 '../debugger/SkObjectParser.cpp',
32 '../debugger/QT/SkSettingsWidget.h',
33 '../debugger/QT/SkSettingsWidget.cpp',
chudy@google.comea5488b2012-07-26 19:38:22 +000034 '../debugger/QT/SkGLWidget.h',
35 '../debugger/QT/SkGLWidget.cpp',
36 '../debugger/QT/SkRasterWidget.h',
37 '../debugger/QT/SkRasterWidget.cpp',
chudy@google.com902ebe52012-06-29 14:21:22 +000038
39 # To update this file edit SkIcons.qrc and rerun rcc to generate cpp
40 '../debugger/QT/qrc_SkIcons.cpp',
41 ],
42 'dependencies': [
43 'core.gyp:core',
44 'images.gyp:images',
45 'ports.gyp:ports',
46 'effects.gyp:effects',
chudy@google.comea5488b2012-07-26 19:38:22 +000047 'gpu.gyp:gr',
48 'gpu.gyp:skgr',
chudy@google.com902ebe52012-06-29 14:21:22 +000049 ],
50 'conditions': [
51 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
52 'include_dirs': [
53 '/usr/include/qt4',
54 '/usr/include/qt4/QtCore',
55 '/usr/include/qt4/QtGui',
chudy@google.comea5488b2012-07-26 19:38:22 +000056 '/usr/include/qt4/QtOpenGL',
chudy@google.com902ebe52012-06-29 14:21:22 +000057 ],
58 'link_settings': {
59 'libraries' : [
chudy@google.comd3058f52012-07-19 13:41:27 +000060 '-lQtCore',
61 '-lQtGui',
chudy@google.comea5488b2012-07-26 19:38:22 +000062 '-lQtOpenGL'
chudy@google.com902ebe52012-06-29 14:21:22 +000063 ],
64 },
65 }],
djsollen@google.come7290ef2012-06-29 18:26:27 +000066 [ 'skia_os == "mac" and skia_arch_width != 64', {
67 'error': '<!(skia_arch_width must be 64 bits when building the debugger on mac'
68 }],
chudy@google.com902ebe52012-06-29 14:21:22 +000069 [ 'skia_os == "mac"', {
70 'mac_bundle' : 1,
71 'include_dirs': [
72 '/Library/Frameworks/QtCore.framework/Headers/',
73 '/Library/Frameworks/QtGui.framework/Headers/',
chudy@google.comea5488b2012-07-26 19:38:22 +000074 '/Library/Frameworks/QtOpenGL.framework/Headers/',
chudy@google.com902ebe52012-06-29 14:21:22 +000075 ],
76 'link_settings': {
77 'libraries': [
78 '/Library/Frameworks/QtCore.framework',
79 '/Library/Frameworks/QtGui.framework',
chudy@google.comea5488b2012-07-26 19:38:22 +000080 '/Library/Frameworks/QtOpenGL.framework',
chudy@google.com902ebe52012-06-29 14:21:22 +000081 ],
82 },
83 }],
84 [ 'skia_os == "win"', {
85 'include_dirs': [
86 # TODO(chudy): Dynamically generate these paths?
87 'C:/Qt/4.6.4/include',
88 'C:/Qt/4.6.4/include/QtCore',
89 'C:/Qt/4.6.4/include/QtGui',
chudy@google.comea5488b2012-07-26 19:38:22 +000090 'C:/Qt/4.6.4/include/QtOpenGL',
chudy@google.com902ebe52012-06-29 14:21:22 +000091 ],
92 'link_settings': {
93 'libraries': [
94 'C:/Qt/4.6.4/lib/QtCore4.lib',
95 'C:/Qt/4.6.4/lib/QtGui4.lib',
chudy@google.comea5488b2012-07-26 19:38:22 +000096 'C:/Qt/4.6.4/lib/QtOpenGL.lib',
chudy@google.com902ebe52012-06-29 14:21:22 +000097 ],
98 },
99 }],
100 ]
101 },
102 ],
103}
104
105# Local Variables:
106# tab-width:2
107# indent-tabs-mode:nil
108# End:
chudy@google.comd3058f52012-07-19 13:41:27 +0000109# vim: set expandtab tabstop=2 shiftwidth=2: