2015-03-25 17:22:41 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
2012-06-29 14:21:22 +00:00
|
|
|
{
|
2012-09-27 13:34:34 +00:00
|
|
|
'variables': {
|
2014-12-17 19:27:47 +00:00
|
|
|
'skia_warnings_as_errors': 0,
|
2012-09-27 13:34:34 +00:00
|
|
|
'conditions': [
|
2016-04-29 21:01:34 +00:00
|
|
|
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
|
2012-09-27 13:34:34 +00:00
|
|
|
# Use the systemwide Qt libs by default
|
|
|
|
'variables': {
|
|
|
|
'qt_sdk%': '/usr',
|
|
|
|
},
|
|
|
|
'qt_sdk': '<(qt_sdk)',
|
|
|
|
'qt_moc%': 'moc',
|
|
|
|
'qt_includes': [
|
|
|
|
'<(qt_sdk)/include',
|
|
|
|
'<(qt_sdk)/include/QtCore',
|
|
|
|
'<(qt_sdk)/include/QtGui',
|
|
|
|
'<(qt_sdk)/include/QtOpenGL',
|
|
|
|
|
|
|
|
# Systemwide Qt libs are not contained under a single tree,
|
|
|
|
# so we're adding package-qualified paths as a fallback.
|
|
|
|
'<(qt_sdk)/include/qt4',
|
|
|
|
'<(qt_sdk)/include/qt4/QtCore',
|
|
|
|
'<(qt_sdk)/include/qt4/QtGui',
|
|
|
|
'<(qt_sdk)/include/qt4/QtOpenGL',
|
|
|
|
],
|
|
|
|
'qt_libs': [
|
|
|
|
'-lQtCore',
|
|
|
|
'-lQtGui',
|
|
|
|
'-lQtOpenGL'
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os == "mac"', {
|
|
|
|
# Use the systemwide Qt libs by default
|
|
|
|
'variables': {
|
|
|
|
'qt_sdk%': '/Library/Frameworks',
|
|
|
|
},
|
|
|
|
'qt_sdk': '<(qt_sdk)',
|
|
|
|
'qt_moc%': 'moc',
|
|
|
|
'qt_includes': [
|
|
|
|
'<(qt_sdk)/QtCore.framework/Headers/',
|
|
|
|
'<(qt_sdk)/QtGui.framework/Headers/',
|
|
|
|
'<(qt_sdk)/QtOpenGL.framework/Headers/',
|
|
|
|
],
|
|
|
|
'qt_libs': [
|
|
|
|
'<(qt_sdk)/QtCore.framework',
|
|
|
|
'<(qt_sdk)/QtGui.framework',
|
|
|
|
'<(qt_sdk)/QtOpenGL.framework',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os == "win"', {
|
|
|
|
'variables': {
|
2012-10-11 14:33:10 +00:00
|
|
|
# This is the default location for the version of Qt current on 10/11/12
|
2016-03-01 17:34:38 +00:00
|
|
|
'qt_sdk%': 'C:/Qt/4.8.6/',
|
2012-09-27 13:34:34 +00:00
|
|
|
},
|
|
|
|
'qt_sdk': '<(qt_sdk)',
|
|
|
|
'qt_moc%': '<(qt_sdk)/bin/moc',
|
|
|
|
'qt_includes': [
|
|
|
|
'<(qt_sdk)/include',
|
|
|
|
'<(qt_sdk)/include/QtCore',
|
|
|
|
'<(qt_sdk)/include/QtGui',
|
|
|
|
'<(qt_sdk)/include/QtOpenGL',
|
|
|
|
],
|
|
|
|
'qt_libs': [
|
|
|
|
'<(qt_sdk)/lib/QtCore4.lib',
|
|
|
|
'<(qt_sdk)/lib/QtGui4.lib',
|
2012-10-11 14:33:10 +00:00
|
|
|
'<(qt_sdk)/lib/QtOpenGL4.lib',
|
2012-09-27 13:34:34 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'moc_src_dir': '../debugger/QT',
|
2012-10-15 14:31:29 +00:00
|
|
|
'moc_gen_dir': '<(SHARED_INTERMEDIATE_DIR)/debugger/QT',
|
2012-09-27 13:34:34 +00:00
|
|
|
},
|
2012-06-29 14:21:22 +00:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'debugger',
|
|
|
|
'type': 'executable',
|
2012-09-27 13:34:34 +00:00
|
|
|
'mac_bundle': 1,
|
|
|
|
'mac_framework_dirs': [
|
|
|
|
'/Library/Frameworks',
|
|
|
|
],
|
2012-06-29 14:21:22 +00:00
|
|
|
'include_dirs' : [
|
2015-07-28 15:55:14 +00:00
|
|
|
'../include/private',
|
2012-06-29 14:21:22 +00:00
|
|
|
'../src/core',
|
2016-02-09 20:44:06 +00:00
|
|
|
'../tools/debugger',
|
2012-09-27 13:34:34 +00:00
|
|
|
'../debugger', # To pull SkDebugger.h
|
|
|
|
'../src/gpu', # To pull gl/GrGLUtil.h
|
2013-01-07 15:48:19 +00:00
|
|
|
'../src/ports', # To pull SkFontDescriptor.h
|
2012-11-15 14:57:57 +00:00
|
|
|
'../bench',
|
|
|
|
'../tools',
|
2015-04-02 19:16:36 +00:00
|
|
|
'../debugger/QT', # For all the QT UI Goodies
|
|
|
|
'<@(qt_includes)',
|
2012-06-29 14:21:22 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../debugger/SkDebugger.cpp',
|
2016-02-09 20:44:06 +00:00
|
|
|
'../tools/debugger/SkDebugCanvas.h',
|
|
|
|
'../tools/debugger/SkDebugCanvas.cpp',
|
|
|
|
'../tools/debugger/SkDrawCommand.h',
|
|
|
|
'../tools/debugger/SkDrawCommand.cpp',
|
2016-05-04 18:06:28 +00:00
|
|
|
'../tools/debugger/SkJsonWriteBuffer.h',
|
|
|
|
'../tools/debugger/SkJsonWriteBuffer.cpp',
|
2016-02-09 20:44:06 +00:00
|
|
|
'../tools/debugger/SkObjectParser.h',
|
|
|
|
'../tools/debugger/SkObjectParser.cpp',
|
|
|
|
'../tools/debugger/SkOverdrawMode.h',
|
|
|
|
'../tools/debugger/SkOverdrawMode.cpp',
|
2015-04-02 19:16:36 +00:00
|
|
|
'../debugger/debuggermain.cpp',
|
|
|
|
'../debugger/QT/SkDebuggerGUI.cpp',
|
|
|
|
'../debugger/QT/SkDebuggerGUI.h',
|
|
|
|
'../debugger/QT/SkDrawCommandGeometryWidget.h',
|
|
|
|
'../debugger/QT/SkDrawCommandGeometryWidget.cpp',
|
|
|
|
'../debugger/QT/SkCanvasWidget.cpp',
|
|
|
|
'../debugger/QT/SkCanvasWidget.h',
|
|
|
|
'../debugger/QT/SkInspectorWidget.h',
|
|
|
|
'../debugger/QT/SkInspectorWidget.cpp',
|
|
|
|
'../debugger/QT/SkListWidget.h',
|
|
|
|
'../debugger/QT/SkListWidget.cpp',
|
|
|
|
'../debugger/QT/SkSettingsWidget.h',
|
|
|
|
'../debugger/QT/SkSettingsWidget.cpp',
|
|
|
|
'../debugger/QT/SkGLWidget.h',
|
|
|
|
'../debugger/QT/SkGLWidget.cpp',
|
|
|
|
'../debugger/QT/SkRasterWidget.h',
|
|
|
|
'../debugger/QT/SkRasterWidget.cpp',
|
|
|
|
|
|
|
|
# To update this file edit SkIcons.qrc and rerun rcc to generate cpp
|
|
|
|
'../debugger/QT/qrc_SkIcons.cpp',
|
|
|
|
|
|
|
|
# Generated MOC files
|
|
|
|
'<(moc_gen_dir)/moc_SkCanvasWidget.cpp',
|
|
|
|
'<(moc_gen_dir)/moc_SkDebuggerGUI.cpp',
|
|
|
|
'<(moc_gen_dir)/moc_SkDrawCommandGeometryWidget.cpp',
|
|
|
|
'<(moc_gen_dir)/moc_SkInspectorWidget.cpp',
|
|
|
|
'<(moc_gen_dir)/moc_SkSettingsWidget.cpp',
|
|
|
|
'<(moc_gen_dir)/moc_SkRasterWidget.cpp',
|
|
|
|
'<(moc_gen_dir)/moc_SkGLWidget.cpp',
|
2012-06-29 14:21:22 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
2015-04-02 19:16:36 +00:00
|
|
|
'debugger_qt_mocs',
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2016-02-10 13:40:46 +00:00
|
|
|
'jsoncpp.gyp:jsoncpp',
|
2016-03-21 17:19:39 +00:00
|
|
|
'libpng.gyp:libpng',
|
2016-02-12 19:29:23 +00:00
|
|
|
'tools.gyp:url_data_manager',
|
2012-09-27 13:34:34 +00:00
|
|
|
],
|
2015-04-02 19:16:36 +00:00
|
|
|
'cflags': [
|
|
|
|
# Clang gets confused by QWeakPointer, see http://llvm.org/bugs/show_bug.cgi?id=13127
|
|
|
|
'-Wno-uninitialized',
|
2012-09-27 13:34:34 +00:00
|
|
|
],
|
2015-04-02 19:16:36 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'<@(qt_libs)',
|
|
|
|
],
|
|
|
|
},
|
2013-03-07 15:33:28 +00:00
|
|
|
},
|
2015-04-02 19:16:36 +00:00
|
|
|
{
|
|
|
|
'target_name': 'debugger_qt_mocs',
|
|
|
|
'type': 'none',
|
|
|
|
'sources': [
|
|
|
|
'<(moc_src_dir)/SkCanvasWidget.h',
|
|
|
|
'<(moc_src_dir)/SkDebuggerGUI.h',
|
|
|
|
'<(moc_src_dir)/SkDrawCommandGeometryWidget.h',
|
|
|
|
'<(moc_src_dir)/SkInspectorWidget.h',
|
|
|
|
'<(moc_src_dir)/SkSettingsWidget.h',
|
|
|
|
'<(moc_src_dir)/SkRasterWidget.h',
|
|
|
|
'<(moc_src_dir)/SkGLWidget.h',
|
|
|
|
],
|
|
|
|
'rules': [
|
2012-09-27 13:34:34 +00:00
|
|
|
{
|
2015-04-02 19:16:36 +00:00
|
|
|
'rule_name': 'generate_moc',
|
|
|
|
'extension': 'h',
|
|
|
|
'outputs': [ '<(moc_gen_dir)/moc_<(RULE_INPUT_ROOT).cpp' ],
|
|
|
|
'action': [ '<(qt_moc)', '-DSK_SUPPORT_GPU=<(skia_gpu)',
|
|
|
|
'<(RULE_INPUT_PATH)',
|
|
|
|
'-o', '<(moc_gen_dir)/moc_<(RULE_INPUT_ROOT).cpp' ],
|
|
|
|
'message': 'Generating <(RULE_INPUT_ROOT).cpp.',
|
2012-09-27 13:34:34 +00:00
|
|
|
},
|
2012-06-29 14:21:22 +00:00
|
|
|
],
|
2015-04-02 19:16:36 +00:00
|
|
|
},
|
2012-06-29 14:21:22 +00:00
|
|
|
],
|
|
|
|
}
|