blob: be3c79368eb7c0e1e786f41721a6bd5f79f23034 [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',
chudy@google.coma9e937c2012-08-03 17:32:05 +000022 '../debugger/QT/moc_SkRasterWidget.cpp',
23 '../debugger/QT/moc_SkGLWidget.cpp',
chudy@google.com902ebe52012-06-29 14:21:22 +000024 '../debugger/QT/SkDebuggerGUI.cpp',
25 '../debugger/QT/SkDebuggerGUI.h',
26 '../debugger/QT/SkCanvasWidget.cpp',
27 '../debugger/QT/SkCanvasWidget.h',
28 '../debugger/QT/SkInspectorWidget.h',
29 '../debugger/QT/SkInspectorWidget.cpp',
30 '../debugger/QT/SkListWidget.h',
31 '../debugger/QT/SkListWidget.cpp',
32 '../debugger/SkObjectParser.h',
33 '../debugger/SkObjectParser.cpp',
34 '../debugger/QT/SkSettingsWidget.h',
35 '../debugger/QT/SkSettingsWidget.cpp',
chudy@google.comea5488b2012-07-26 19:38:22 +000036 '../debugger/QT/SkGLWidget.h',
37 '../debugger/QT/SkGLWidget.cpp',
38 '../debugger/QT/SkRasterWidget.h',
39 '../debugger/QT/SkRasterWidget.cpp',
chudy@google.com902ebe52012-06-29 14:21:22 +000040
41 # To update this file edit SkIcons.qrc and rerun rcc to generate cpp
42 '../debugger/QT/qrc_SkIcons.cpp',
43 ],
44 'dependencies': [
45 'core.gyp:core',
46 'images.gyp:images',
47 'ports.gyp:ports',
48 'effects.gyp:effects',
chudy@google.comea5488b2012-07-26 19:38:22 +000049 'gpu.gyp:gr',
50 'gpu.gyp:skgr',
chudy@google.com902ebe52012-06-29 14:21:22 +000051 ],
52 'conditions': [
53 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
54 'include_dirs': [
55 '/usr/include/qt4',
56 '/usr/include/qt4/QtCore',
57 '/usr/include/qt4/QtGui',
chudy@google.comea5488b2012-07-26 19:38:22 +000058 '/usr/include/qt4/QtOpenGL',
chudy@google.com902ebe52012-06-29 14:21:22 +000059 ],
60 'link_settings': {
61 'libraries' : [
chudy@google.comd3058f52012-07-19 13:41:27 +000062 '-lQtCore',
63 '-lQtGui',
chudy@google.comea5488b2012-07-26 19:38:22 +000064 '-lQtOpenGL'
chudy@google.com902ebe52012-06-29 14:21:22 +000065 ],
66 },
67 }],
djsollen@google.come7290ef2012-06-29 18:26:27 +000068 [ 'skia_os == "mac" and skia_arch_width != 64', {
69 'error': '<!(skia_arch_width must be 64 bits when building the debugger on mac'
70 }],
chudy@google.com902ebe52012-06-29 14:21:22 +000071 [ 'skia_os == "mac"', {
72 'mac_bundle' : 1,
73 'include_dirs': [
74 '/Library/Frameworks/QtCore.framework/Headers/',
75 '/Library/Frameworks/QtGui.framework/Headers/',
chudy@google.comea5488b2012-07-26 19:38:22 +000076 '/Library/Frameworks/QtOpenGL.framework/Headers/',
chudy@google.com902ebe52012-06-29 14:21:22 +000077 ],
78 'link_settings': {
79 'libraries': [
80 '/Library/Frameworks/QtCore.framework',
81 '/Library/Frameworks/QtGui.framework',
chudy@google.comea5488b2012-07-26 19:38:22 +000082 '/Library/Frameworks/QtOpenGL.framework',
chudy@google.com902ebe52012-06-29 14:21:22 +000083 ],
84 },
85 }],
86 [ 'skia_os == "win"', {
87 'include_dirs': [
88 # TODO(chudy): Dynamically generate these paths?
89 'C:/Qt/4.6.4/include',
90 'C:/Qt/4.6.4/include/QtCore',
91 'C:/Qt/4.6.4/include/QtGui',
chudy@google.comea5488b2012-07-26 19:38:22 +000092 'C:/Qt/4.6.4/include/QtOpenGL',
chudy@google.com902ebe52012-06-29 14:21:22 +000093 ],
94 'link_settings': {
95 'libraries': [
96 'C:/Qt/4.6.4/lib/QtCore4.lib',
97 'C:/Qt/4.6.4/lib/QtGui4.lib',
chudy@google.comea5488b2012-07-26 19:38:22 +000098 'C:/Qt/4.6.4/lib/QtOpenGL.lib',
chudy@google.com902ebe52012-06-29 14:21:22 +000099 ],
100 },
101 }],
102 ]
103 },
104 ],
105}
106
107# Local Variables:
108# tab-width:2
109# indent-tabs-mode:nil
110# End:
chudy@google.comd3058f52012-07-19 13:41:27 +0000111# vim: set expandtab tabstop=2 shiftwidth=2: