1 { 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': { 50 # This is the default location for the version of Qt current on 10/11/12 51 'qt_sdk%': 'C:/Qt/4.8.3/', 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', 64 '<(qt_sdk)/lib/QtOpenGL4.lib', 65 ], 66 }], 67 ], 68 'moc_src_dir': '../debugger/QT', 69 'moc_gen_dir': '<(SHARED_INTERMEDIATE_DIR)/debugger/QT', 70 }, 71 'targets': [ 72 { 73 'target_name': 'debugger', 74 'type': 'executable', 75 'mac_bundle': 1, 76 'mac_framework_dirs': [ 77 '/Library/Frameworks', 78 ], 79 'include_dirs' : [ 80 '../src/core', 81 '../debugger', # To pull SkDebugger.h 82 '../debugger/QT', # For all the QT UI Goodies 83 '../src/gpu', # To pull gl/GrGLUtil.h 84 '../src/ports', # To pull SkFontDescriptor.h 85 '../bench', 86 '../tools', 87 '<@(qt_includes)', 88 ], 89 'sources': [ 90 '../debugger/debuggermain.cpp', 91 '../debugger/SkDebugCanvas.h', 92 '../debugger/SkDebugCanvas.cpp', 93 '../debugger/SkDebugger.cpp', 94 '../debugger/SkDrawCommand.h', 95 '../debugger/SkDrawCommand.cpp', 96 '../debugger/SkObjectParser.h', 97 '../debugger/SkObjectParser.cpp', 98 '../debugger/QT/SkDebuggerGUI.cpp', 99 '../debugger/QT/SkDebuggerGUI.h', 100 '../debugger/QT/SkCanvasWidget.cpp', 101 '../debugger/QT/SkCanvasWidget.h', 102 '../debugger/QT/SkInspectorWidget.h', 103 '../debugger/QT/SkInspectorWidget.cpp', 104 '../debugger/QT/SkListWidget.h', 105 '../debugger/QT/SkListWidget.cpp', 106 '../debugger/QT/SkSettingsWidget.h', 107 '../debugger/QT/SkSettingsWidget.cpp', 108 '../debugger/QT/SkGLWidget.h', 109 '../debugger/QT/SkGLWidget.cpp', 110 '../debugger/QT/SkRasterWidget.h', 111 '../debugger/QT/SkRasterWidget.cpp', 112 '../debugger/QT/SkImageWidget.h', 113 '../debugger/QT/SkImageWidget.cpp', 114 115 # To update this file edit SkIcons.qrc and rerun rcc to generate cpp 116 '../debugger/QT/qrc_SkIcons.cpp', 117 118 # Generated MOC files 119 '<(moc_gen_dir)/moc_SkCanvasWidget.cpp', 120 '<(moc_gen_dir)/moc_SkDebuggerGUI.cpp', 121 '<(moc_gen_dir)/moc_SkInspectorWidget.cpp', 122 '<(moc_gen_dir)/moc_SkSettingsWidget.cpp', 123 '<(moc_gen_dir)/moc_SkRasterWidget.cpp', 124 '<(moc_gen_dir)/moc_SkImageWidget.cpp', 125 '<(moc_gen_dir)/moc_SkGLWidget.cpp', 126 ], 127 'dependencies': [ 128 'skia_base_libs.gyp:skia_base_libs', 129 'images.gyp:images', 130 'effects.gyp:effects', 131 'bench.gyp:bench_timer', 132 'tools.gyp:picture_renderer', 133 'debugger_mocs', 134 ], 135 'link_settings': { 136 'libraries': [ 137 '<@(qt_libs)', 138 ], 139 }, 140 }, 141 { 142 'target_name': 'debugger_mocs', 143 'type': 'none', 144 'sources': [ 145 '<(moc_src_dir)/SkCanvasWidget.h', 146 '<(moc_src_dir)/SkDebuggerGUI.h', 147 '<(moc_src_dir)/SkInspectorWidget.h', 148 '<(moc_src_dir)/SkSettingsWidget.h', 149 '<(moc_src_dir)/SkRasterWidget.h', 150 '<(moc_src_dir)/SkImageWidget.h', 151 '<(moc_src_dir)/SkGLWidget.h', 152 ], 153 'rules': [ 154 { 155 'rule_name': 'generate_moc', 156 'extension': 'h', 157 'outputs': [ '<(moc_gen_dir)/moc_<(RULE_INPUT_ROOT).cpp' ], 158 'action': [ '<(qt_moc)', '<(RULE_INPUT_PATH)', '-o', '<(moc_gen_dir)/moc_<(RULE_INPUT_ROOT).cpp' ], 159 'message': 'Generating <(RULE_INPUT_ROOT).cpp.', 160 }, 161 ], 162 }, 163 ], 164 } 165 166 # Local Variables: 167 # tab-width:2 168 # indent-tabs-mode:nil 169 # End: 170 # vim: set expandtab tabstop=2 shiftwidth=2: 171