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