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': [ |
| 4 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
| 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', |
| 69 | }, |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 70 | 'targets': [ |
| 71 | { |
| 72 | 'target_name': 'debugger', |
| 73 | 'type': 'executable', |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 74 | 'mac_bundle': 1, |
| 75 | 'mac_framework_dirs': [ |
| 76 | '/Library/Frameworks', |
| 77 | ], |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 78 | 'include_dirs' : [ |
| 79 | '../src/core', |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 80 | '../debugger', # To pull SkDebugger.h |
| 81 | '../debugger/QT', # For all the QT UI Goodies |
| 82 | '../src/gpu', # To pull gl/GrGLUtil.h |
| 83 | '<@(qt_includes)', |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 84 | ], |
| 85 | 'sources': [ |
chudy@google.com | bbad34d | 2012-08-13 14:26:36 +0000 | [diff] [blame] | 86 | '../debugger/debuggermain.cpp', |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 87 | '../debugger/SkDebugCanvas.h', |
| 88 | '../debugger/SkDebugCanvas.cpp', |
| 89 | '../debugger/SkDebugger.cpp', |
| 90 | '../debugger/SkDrawCommand.h', |
| 91 | '../debugger/SkDrawCommand.cpp', |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 92 | '../debugger/SkObjectParser.h', |
| 93 | '../debugger/SkObjectParser.cpp', |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 94 | '../debugger/QT/SkDebuggerGUI.cpp', |
| 95 | '../debugger/QT/SkDebuggerGUI.h', |
| 96 | '../debugger/QT/SkCanvasWidget.cpp', |
| 97 | '../debugger/QT/SkCanvasWidget.h', |
| 98 | '../debugger/QT/SkInspectorWidget.h', |
| 99 | '../debugger/QT/SkInspectorWidget.cpp', |
| 100 | '../debugger/QT/SkListWidget.h', |
| 101 | '../debugger/QT/SkListWidget.cpp', |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 102 | '../debugger/QT/SkSettingsWidget.h', |
| 103 | '../debugger/QT/SkSettingsWidget.cpp', |
chudy@google.com | ea5488b | 2012-07-26 19:38:22 +0000 | [diff] [blame] | 104 | '../debugger/QT/SkGLWidget.h', |
| 105 | '../debugger/QT/SkGLWidget.cpp', |
| 106 | '../debugger/QT/SkRasterWidget.h', |
| 107 | '../debugger/QT/SkRasterWidget.cpp', |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 108 | |
| 109 | # To update this file edit SkIcons.qrc and rerun rcc to generate cpp |
| 110 | '../debugger/QT/qrc_SkIcons.cpp', |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 111 | |
| 112 | # Generated MOC files |
| 113 | '<(moc_src_dir)/moc_SkCanvasWidget.cpp', |
| 114 | '<(moc_src_dir)/moc_SkDebuggerGUI.cpp', |
| 115 | '<(moc_src_dir)/moc_SkInspectorWidget.cpp', |
| 116 | '<(moc_src_dir)/moc_SkSettingsWidget.cpp', |
| 117 | '<(moc_src_dir)/moc_SkRasterWidget.cpp', |
| 118 | '<(moc_src_dir)/moc_SkGLWidget.cpp', |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 119 | ], |
| 120 | 'dependencies': [ |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 121 | 'skia_base_libs.gyp:skia_base_libs', |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 122 | 'images.gyp:images', |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 123 | 'effects.gyp:effects', |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 124 | 'debugger_mocs', |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 125 | ], |
fmalita@google.com | bacfcfb | 2012-09-27 13:34:34 +0000 | [diff] [blame] | 126 | 'link_settings': { |
| 127 | 'libraries': [ |
| 128 | '<@(qt_libs)', |
| 129 | ], |
| 130 | }, |
| 131 | }, |
| 132 | { |
| 133 | 'target_name': 'debugger_mocs', |
| 134 | 'type': 'none', |
| 135 | 'sources': [ |
| 136 | '<(moc_src_dir)/SkCanvasWidget.h', |
| 137 | '<(moc_src_dir)/SkDebuggerGUI.h', |
| 138 | '<(moc_src_dir)/SkInspectorWidget.h', |
| 139 | '<(moc_src_dir)/SkSettingsWidget.h', |
| 140 | '<(moc_src_dir)/SkRasterWidget.h', |
| 141 | '<(moc_src_dir)/SkGLWidget.h', |
| 142 | ], |
| 143 | 'rules': [ |
| 144 | { |
| 145 | 'rule_name': 'generate_moc', |
| 146 | 'extension': 'h', |
| 147 | 'outputs': [ '<(RULE_INPUT_DIRNAME)/moc_<(RULE_INPUT_ROOT).cpp' ], |
| 148 | 'action': [ '<(qt_moc)', '<(RULE_INPUT_PATH)', '-o', '<(moc_src_dir)/moc_<(RULE_INPUT_ROOT).cpp' ], |
| 149 | 'message': 'Generating <(RULE_INPUT_ROOT).cpp.', |
| 150 | }, |
| 151 | ], |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 152 | }, |
| 153 | ], |
| 154 | } |
| 155 | |
| 156 | # Local Variables: |
| 157 | # tab-width:2 |
| 158 | # indent-tabs-mode:nil |
| 159 | # End: |
chudy@google.com | d3058f5 | 2012-07-19 13:41:27 +0000 | [diff] [blame] | 160 | # vim: set expandtab tabstop=2 shiftwidth=2: |