blob: d3cf6743e94b5d1c822c4ad9f6ae51a384a3e689 [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',
chudy@google.com902ebe52012-06-29 14:21:22 +000019 '../debugger/QT/moc_SkCanvasWidget.cpp',
chudy@google.comea5488b2012-07-26 19:38:22 +000020 '../debugger/QT/moc_SkDebuggerGUI.cpp',
chudy@google.com902ebe52012-06-29 14:21:22 +000021 '../debugger/QT/moc_SkInspectorWidget.cpp',
22 '../debugger/QT/moc_SkSettingsWidget.cpp',
chudy@google.coma9e937c2012-08-03 17:32:05 +000023 '../debugger/QT/moc_SkRasterWidget.cpp',
24 '../debugger/QT/moc_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', {
70 'error': '<!(skia_arch_width must be 64 bits when building the debugger on mac'
71 }],
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 }],
87 [ 'skia_os == "win"', {
88 'include_dirs': [
89 # TODO(chudy): Dynamically generate these paths?
90 'C:/Qt/4.6.4/include',
91 'C:/Qt/4.6.4/include/QtCore',
92 'C:/Qt/4.6.4/include/QtGui',
chudy@google.comea5488b2012-07-26 19:38:22 +000093 'C:/Qt/4.6.4/include/QtOpenGL',
chudy@google.com902ebe52012-06-29 14:21:22 +000094 ],
95 'link_settings': {
96 'libraries': [
97 'C:/Qt/4.6.4/lib/QtCore4.lib',
98 'C:/Qt/4.6.4/lib/QtGui4.lib',
chudy@google.comea5488b2012-07-26 19:38:22 +000099 'C:/Qt/4.6.4/lib/QtOpenGL.lib',
chudy@google.com902ebe52012-06-29 14:21:22 +0000100 ],
101 },
102 }],
103 ]
104 },
105 ],
106}
107
108# Local Variables:
109# tab-width:2
110# indent-tabs-mode:nil
111# End:
chudy@google.comd3058f52012-07-19 13:41:27 +0000112# vim: set expandtab tabstop=2 shiftwidth=2: