chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 1 | { |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 2 | 'variables': { |
| 3 | 'conditions': [ |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 4 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 5 | # Use the systemwide Qt libs by default |
| 6 | 'variables': { |
| 7 | 'qt_sdk%': '/usr', |
| 8 | }, |
| 9 | 'qt_sdk': '<(qt_sdk)', |
| 10 | 'qt_moc%': 'moc', |
| 11 | 'qt_includes': [ |
| 12 | '<(qt_sdk)/include', |
| 13 | '<(qt_sdk)/include/QtCore', |
| 14 | '<(qt_sdk)/include/QtGui', |
| 15 | '<(qt_sdk)/include/QtOpenGL', |
| 16 | |
| 17 | # Systemwide Qt libs are not contained under a single tree, |
| 18 | # so we're adding package-qualified paths as a fallback. |
| 19 | '<(qt_sdk)/include/qt4', |
| 20 | '<(qt_sdk)/include/qt4/QtCore', |
| 21 | '<(qt_sdk)/include/qt4/QtGui', |
| 22 | '<(qt_sdk)/include/qt4/QtOpenGL', |
| 23 | ], |
| 24 | 'qt_libs': [ |
| 25 | '-lQtCore', |
| 26 | '-lQtGui', |
| 27 | '-lQtOpenGL' |
| 28 | ], |
| 29 | }], |
| 30 | [ 'skia_os == "mac"', { |
| 31 | # Use the systemwide Qt libs by default |
| 32 | 'variables': { |
| 33 | 'qt_sdk%': '/Library/Frameworks', |
| 34 | }, |
| 35 | 'qt_sdk': '<(qt_sdk)', |
| 36 | 'qt_moc%': 'moc', |
| 37 | 'qt_includes': [ |
| 38 | '<(qt_sdk)/QtCore.framework/Headers/', |
| 39 | '<(qt_sdk)/QtGui.framework/Headers/', |
| 40 | '<(qt_sdk)/QtOpenGL.framework/Headers/', |
| 41 | ], |
| 42 | 'qt_libs': [ |
| 43 | '<(qt_sdk)/QtCore.framework', |
| 44 | '<(qt_sdk)/QtGui.framework', |
| 45 | '<(qt_sdk)/QtOpenGL.framework', |
| 46 | ], |
| 47 | }], |
| 48 | [ 'skia_os == "win"', { |
| 49 | 'variables': { |
bsalomon@google.com | d980478 | 2012-10-11 14:33:10 +0000 | [diff] [blame] | 50 | # This is the default location for the version of Qt current on 10/11/12 |
| 51 | 'qt_sdk%': 'C:/Qt/4.8.3/', |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 52 | }, |
| 53 | 'qt_sdk': '<(qt_sdk)', |
| 54 | 'qt_moc%': '<(qt_sdk)/bin/moc', |
| 55 | 'qt_includes': [ |
| 56 | '<(qt_sdk)/include', |
| 57 | '<(qt_sdk)/include/QtCore', |
| 58 | '<(qt_sdk)/include/QtGui', |
| 59 | '<(qt_sdk)/include/QtOpenGL', |
| 60 | ], |
| 61 | 'qt_libs': [ |
| 62 | '<(qt_sdk)/lib/QtCore4.lib', |
| 63 | '<(qt_sdk)/lib/QtGui4.lib', |
bsalomon@google.com | d980478 | 2012-10-11 14:33:10 +0000 | [diff] [blame] | 64 | '<(qt_sdk)/lib/QtOpenGL4.lib', |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 65 | ], |
| 66 | }], |
| 67 | ], |
| 68 | 'moc_src_dir': '../debugger/QT', |
bungeman@google.com | b3e7794 | 2012-10-15 14:31:29 +0000 | [diff] [blame] | 69 | 'moc_gen_dir': '<(SHARED_INTERMEDIATE_DIR)/debugger/QT', |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 70 | }, |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 71 | 'targets': [ |
| 72 | { |
| 73 | 'target_name': 'debugger', |
| 74 | 'type': 'executable', |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 75 | 'mac_bundle': 1, |
| 76 | 'mac_framework_dirs': [ |
| 77 | '/Library/Frameworks', |
| 78 | ], |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 79 | 'include_dirs' : [ |
| 80 | '../src/core', |
fmalita@google.com | 4df1673 | 2013-06-13 21:25:45 +0000 | [diff] [blame] | 81 | '../src/utils/debugger', |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 82 | '../debugger', # To pull SkDebugger.h |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 83 | '../src/gpu', # To pull gl/GrGLUtil.h |
humper@google.com | f515ffc | 2013-01-07 15:48:19 +0000 | [diff] [blame] | 84 | '../src/ports', # To pull SkFontDescriptor.h |
robertphillips@google.com | 2bde91d | 2012-11-15 14:57:57 +0000 | [diff] [blame] | 85 | '../bench', |
| 86 | '../tools', |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 87 | ], |
| 88 | 'sources': [ |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 89 | '../debugger/SkDebugger.cpp', |
robertphillips@google.com | 35349d8 | 2013-09-18 13:28:10 +0000 | [diff] [blame] | 90 | '../src/utils/debugger/SkDebugCanvas.h', |
| 91 | '../src/utils/debugger/SkDebugCanvas.cpp', |
| 92 | '../src/utils/debugger/SkDrawCommand.h', |
| 93 | '../src/utils/debugger/SkDrawCommand.cpp', |
| 94 | '../src/utils/debugger/SkObjectParser.h', |
| 95 | '../src/utils/debugger/SkObjectParser.cpp', |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 96 | ], |
| 97 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 98 | 'skia_lib.gyp:skia_lib', |
robertphillips@google.com | 2bde91d | 2012-11-15 14:57:57 +0000 | [diff] [blame] | 99 | 'tools.gyp:picture_renderer', |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 100 | 'tools.gyp:timer', |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 101 | ], |
borenet@google.com | 327b9b2 | 2013-03-07 15:33:28 +0000 | [diff] [blame] | 102 | 'conditions': [ |
| 103 | [ 'skia_os == "nacl"', { |
borenet@google.com | 327b9b2 | 2013-03-07 15:33:28 +0000 | [diff] [blame] | 104 | 'include_dirs': [ |
| 105 | '../src/utils', |
| 106 | ], |
| 107 | 'sources': [ |
borenet@google.com | 6a98b8c | 2013-05-06 12:50:00 +0000 | [diff] [blame] | 108 | '../platform_tools/nacl/src/nacl_debugger.cpp', |
borenet@google.com | 327b9b2 | 2013-03-07 15:33:28 +0000 | [diff] [blame] | 109 | ], |
| 110 | }, { # skia_os != "nacl" |
| 111 | 'include_dirs': [ |
| 112 | '../debugger/QT', # For all the QT UI Goodies |
| 113 | '<@(qt_includes)', |
| 114 | ], |
| 115 | 'sources': [ |
| 116 | '../debugger/debuggermain.cpp', |
| 117 | '../debugger/QT/SkDebuggerGUI.cpp', |
| 118 | '../debugger/QT/SkDebuggerGUI.h', |
| 119 | '../debugger/QT/SkCanvasWidget.cpp', |
| 120 | '../debugger/QT/SkCanvasWidget.h', |
| 121 | '../debugger/QT/SkInspectorWidget.h', |
| 122 | '../debugger/QT/SkInspectorWidget.cpp', |
| 123 | '../debugger/QT/SkListWidget.h', |
| 124 | '../debugger/QT/SkListWidget.cpp', |
| 125 | '../debugger/QT/SkSettingsWidget.h', |
| 126 | '../debugger/QT/SkSettingsWidget.cpp', |
| 127 | '../debugger/QT/SkGLWidget.h', |
| 128 | '../debugger/QT/SkGLWidget.cpp', |
| 129 | '../debugger/QT/SkRasterWidget.h', |
| 130 | '../debugger/QT/SkRasterWidget.cpp', |
| 131 | '../debugger/QT/SkImageWidget.h', |
| 132 | '../debugger/QT/SkImageWidget.cpp', |
skia.committer@gmail.com | 754a3eb | 2013-03-08 07:01:25 +0000 | [diff] [blame] | 133 | |
borenet@google.com | 327b9b2 | 2013-03-07 15:33:28 +0000 | [diff] [blame] | 134 | # To update this file edit SkIcons.qrc and rerun rcc to generate cpp |
| 135 | '../debugger/QT/qrc_SkIcons.cpp', |
skia.committer@gmail.com | 754a3eb | 2013-03-08 07:01:25 +0000 | [diff] [blame] | 136 | |
borenet@google.com | 327b9b2 | 2013-03-07 15:33:28 +0000 | [diff] [blame] | 137 | # Generated MOC files |
| 138 | '<(moc_gen_dir)/moc_SkCanvasWidget.cpp', |
| 139 | '<(moc_gen_dir)/moc_SkDebuggerGUI.cpp', |
| 140 | '<(moc_gen_dir)/moc_SkInspectorWidget.cpp', |
| 141 | '<(moc_gen_dir)/moc_SkSettingsWidget.cpp', |
| 142 | '<(moc_gen_dir)/moc_SkRasterWidget.cpp', |
| 143 | '<(moc_gen_dir)/moc_SkImageWidget.cpp', |
| 144 | '<(moc_gen_dir)/moc_SkGLWidget.cpp', |
| 145 | ], |
commit-bot@chromium.org | d08d23b | 2014-01-08 21:16:14 +0000 | [diff] [blame] | 146 | 'cflags': [ |
| 147 | # Clang gets confused by QWeakPointer, see http://llvm.org/bugs/show_bug.cgi?id=13127 |
| 148 | '-Wno-uninitialized', |
| 149 | ], |
borenet@google.com | 327b9b2 | 2013-03-07 15:33:28 +0000 | [diff] [blame] | 150 | 'dependencies': [ |
| 151 | 'debugger_qt_mocs', |
| 152 | ], |
| 153 | 'link_settings': { |
| 154 | 'libraries': [ |
| 155 | '<@(qt_libs)', |
| 156 | ], |
| 157 | }, |
| 158 | }], |
| 159 | ], |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 160 | }, |
borenet@google.com | 327b9b2 | 2013-03-07 15:33:28 +0000 | [diff] [blame] | 161 | ], |
| 162 | 'conditions': [ |
| 163 | [ 'skia_os != "nacl"', { |
| 164 | 'targets': [ |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 165 | { |
borenet@google.com | 327b9b2 | 2013-03-07 15:33:28 +0000 | [diff] [blame] | 166 | 'target_name': 'debugger_qt_mocs', |
| 167 | 'type': 'none', |
| 168 | 'sources': [ |
| 169 | '<(moc_src_dir)/SkCanvasWidget.h', |
| 170 | '<(moc_src_dir)/SkDebuggerGUI.h', |
| 171 | '<(moc_src_dir)/SkInspectorWidget.h', |
| 172 | '<(moc_src_dir)/SkSettingsWidget.h', |
| 173 | '<(moc_src_dir)/SkRasterWidget.h', |
| 174 | '<(moc_src_dir)/SkImageWidget.h', |
| 175 | '<(moc_src_dir)/SkGLWidget.h', |
| 176 | ], |
| 177 | 'rules': [ |
| 178 | { |
| 179 | 'rule_name': 'generate_moc', |
| 180 | 'extension': 'h', |
| 181 | 'outputs': [ '<(moc_gen_dir)/moc_<(RULE_INPUT_ROOT).cpp' ], |
| 182 | 'action': [ '<(qt_moc)', '-DSK_SUPPORT_GPU=<(skia_gpu)', |
| 183 | '<(RULE_INPUT_PATH)', |
| 184 | '-o', '<(moc_gen_dir)/moc_<(RULE_INPUT_ROOT).cpp' ], |
| 185 | 'message': 'Generating <(RULE_INPUT_ROOT).cpp.', |
| 186 | }, |
| 187 | ], |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 188 | }, |
| 189 | ], |
borenet@google.com | 327b9b2 | 2013-03-07 15:33:28 +0000 | [diff] [blame] | 190 | }], |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 191 | ], |
| 192 | } |