blob: 33b0932ce79d6a4b71b6708e9596dcf09a670f33 [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
10 ],
11 'sources': [
12 '../debugger/SkDebugCanvas.h',
13 '../debugger/SkDebugCanvas.cpp',
14 '../debugger/SkDebugger.cpp',
15 '../debugger/SkDrawCommand.h',
16 '../debugger/SkDrawCommand.cpp',
17 '../debugger/QT/moc_SkDebuggerGUI.cpp',
18 '../debugger/QT/moc_SkCanvasWidget.cpp',
19 '../debugger/QT/moc_SkInspectorWidget.cpp',
20 '../debugger/QT/moc_SkSettingsWidget.cpp',
21 '../debugger/QT/SkDebuggerGUI.cpp',
22 '../debugger/QT/SkDebuggerGUI.h',
23 '../debugger/QT/SkCanvasWidget.cpp',
24 '../debugger/QT/SkCanvasWidget.h',
25 '../debugger/QT/SkInspectorWidget.h',
26 '../debugger/QT/SkInspectorWidget.cpp',
27 '../debugger/QT/SkListWidget.h',
28 '../debugger/QT/SkListWidget.cpp',
29 '../debugger/SkObjectParser.h',
30 '../debugger/SkObjectParser.cpp',
31 '../debugger/QT/SkSettingsWidget.h',
32 '../debugger/QT/SkSettingsWidget.cpp',
33
34 # To update this file edit SkIcons.qrc and rerun rcc to generate cpp
35 '../debugger/QT/qrc_SkIcons.cpp',
36 ],
37 'dependencies': [
38 'core.gyp:core',
39 'images.gyp:images',
40 'ports.gyp:ports',
41 'effects.gyp:effects',
42 ],
43 'conditions': [
44 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
45 'include_dirs': [
46 '/usr/include/qt4',
47 '/usr/include/qt4/QtCore',
48 '/usr/include/qt4/QtGui',
49 ],
50 'link_settings': {
51 'libraries' : [
52 '/usr/lib/libQtCore.so',
53 '/usr/lib/libQtGui.so',
54 ],
55 },
56 }],
djsollen@google.come7290ef2012-06-29 18:26:27 +000057 [ 'skia_os == "mac" and skia_arch_width != 64', {
58 'error': '<!(skia_arch_width must be 64 bits when building the debugger on mac'
59 }],
chudy@google.com902ebe52012-06-29 14:21:22 +000060 [ 'skia_os == "mac"', {
61 'mac_bundle' : 1,
62 'include_dirs': [
63 '/Library/Frameworks/QtCore.framework/Headers/',
64 '/Library/Frameworks/QtGui.framework/Headers/',
65 ],
66 'link_settings': {
67 'libraries': [
68 '/Library/Frameworks/QtCore.framework',
69 '/Library/Frameworks/QtGui.framework',
70 ],
71 },
72 }],
73 [ 'skia_os == "win"', {
74 'include_dirs': [
75 # TODO(chudy): Dynamically generate these paths?
76 'C:/Qt/4.6.4/include',
77 'C:/Qt/4.6.4/include/QtCore',
78 'C:/Qt/4.6.4/include/QtGui',
79 ],
80 'link_settings': {
81 'libraries': [
82 'C:/Qt/4.6.4/lib/QtCore4.lib',
83 'C:/Qt/4.6.4/lib/QtGui4.lib',
84 ],
85 },
86 }],
87 ]
88 },
89 ],
90}
91
92# Local Variables:
93# tab-width:2
94# indent-tabs-mode:nil
95# End:
96# vim: set expandtab tabstop=2 shiftwidth=2: