Package list mozc / 280e38f
Drop Qt 4 support With this CL, --qtver configure option will be removed and Mozc no longer supports to be built with Qt 4. BUG=#327 TEST= REF_BUG=26887740 REF_CL=141386550 REF_TIME=2016-12-08T11:43:38+09:00 REF_TIME_RAW=1481165018 +0900 Hiroyuki Komatsu 4 years ago
77 changed file(s) with 68 addition(s) and 611 deletion(s). Raw diff Collapse all Expand all
9898 If you don't specify this option, `--target_platform=Linux` will be used implicitly.
9999
100100 #### --noqt (Linux desktop target only)
101 You can use `--noqt` option to build Mozc without depending on Qt 4 library.
101 You can use `--noqt` option to build Mozc without depending on Qt 5 library.
102102
103103 #### --server_dir (Linux desktop target only)
104104 You can use `--server_dir` option to specify the directory name where `mozc_server` will be installed.
105105
106106 ## Compile options
107 In `build_mozc.py build` step, you can specify build types (`Release`` or `Debug`) and one or more build targets. Please find each GYP file to see what build targets are defined.
107 In `build_mozc.py build` step, you can specify build types (`Release` or `Debug`) and one or more build targets. Please find each GYP file to see what build targets are defined.
108108
109109 ```
110110 python build_mozc.py build -c {Release, Debug} [gyp_path_1.gyp:gyp_target_name1] [gyp_path_2.gyp:gyp_target_name2]
271271 parser.add_option('--gypdir', dest='gypdir',
272272 help='Specifies the location of GYP to be used.')
273273 parser.add_option('--noqt', action='store_true', dest='noqt', default=False)
274 parser.add_option('--qtver', dest='qtver', choices=('4', '5'), default='5')
275274 parser.add_option('--version_file', dest='version_file',
276275 help='use the specified version template file',
277276 default='data/version/mozc_version_template.bzl')
504503 if options.noqt or options.target_platform in ['Android', 'NaCl']:
505504 qt_version = ''
506505 else:
507 qt_version = options.qtver
506 qt_version = '5'
508507 GenerateVersionFile(template_path, version_path, options.target_platform,
509508 options.android_application_id,
510509 options.android_arch, qt_version)
590589 gyp_options.extend(['-D', 'qt_dir='])
591590
592591 # Check if Qt libraries are installed.
593 if options.qtver == '5':
594 system_qt_found = PkgExists('Qt5Core', 'Qt5Gui', 'Qt5Widgets')
595 else:
596 system_qt_found = PkgExists('QtCore >= 4.0', 'QtCore < 5.0',
597 'QtGui >= 4.0', 'QtGui < 5.0')
598 if not system_qt_found:
592 if not PkgExists('Qt5Core', 'Qt5Gui', 'Qt5Widgets'):
599593 PrintErrorAndExit('Qt is required to build GUI Tool. '
600594 'Specify --noqt to skip building GUI Tool.')
601595
605599 gyp_options.extend(['-D', 'qt_dir=%s' % os.path.abspath(options.qtdir)])
606600 else:
607601 gyp_options.extend(['-D', 'qt_dir='])
608 gyp_options.extend(['-D', 'qt_ver=%s' % options.qtver])
609602
610603 if target_platform == 'Windows' and options.wix_dir:
611604 gyp_options.extend(['-D', 'use_wix=YES'])
772765 copy_script = os.path.join(
773766 ABS_SCRIPT_DIR, 'build_tools', 'copy_dll_and_symbol.py')
774767 copy_params = []
775 if qt_version == '4':
776 copy_params.append({
777 'basenames': 'QtCored4;QtGuid4',
778 'dll_paths': abs_qt_bin_dir,
779 'pdb_paths': abs_qt_lib_dir,
780 'target_dir': os.path.join(abs_out_win_dir, 'DebugDynamic')})
781 copy_params.append({
782 'basenames': 'QtCore4;QtGui4',
783 'dll_paths': abs_qt_bin_dir,
784 'pdb_paths': abs_qt_lib_dir,
785 'target_dir': os.path.join(abs_out_win_dir, 'ReleaseDynamic')})
786 elif qt_version == '5':
768 if qt_version == '5':
787769 copy_params.append({
788770 'basenames': 'Qt5Cored;Qt5Guid;Qt5Widgetsd',
789771 'dll_paths': abs_qt_bin_dir,
4747 def ParseOption():
4848 """Parse command line options."""
4949 parser = optparse.OptionParser()
50 parser.add_option('--qtver', dest='qtver', choices=('4', '5'), default='4')
5150 parser.add_option('--qtdir', dest='qtdir')
5251 parser.add_option('--target', dest='target')
5352
7978 if not opt.target:
8079 PrintErrorAndExit('--target option is mandatory.')
8180
82 qtver = opt.qtver
8381 qtdir = os.path.abspath(opt.qtdir)
8482 target = os.path.abspath(opt.target)
8583
8684 # Changes the reference to QtCore framework from the target application
87 # From: /path/to/qt/lib/QtCore.framework/Versions/4/QtCore
85 # From: /path/to/qt/lib/QtCore.framework/Versions/5/QtCore
8886 # To: @executable_path/../../../MozcTool.app/Contents/Frameworks/...
89 qtcore_framework = GetFrameworkPath('QtCore', qtver)
87 qtcore_framework = GetFrameworkPath('QtCore', '5')
9088 InstallNameTool(target,
9189 '%s/lib/%s' % (qtdir, qtcore_framework),
9290 GetReferenceTo(qtcore_framework))
9391
9492 # Changes the reference to QtGui framework from the target application
95 qtgui_framework = GetFrameworkPath('QtGui', qtver)
93 qtgui_framework = GetFrameworkPath('QtGui', '5')
9694 InstallNameTool(target,
9795 '%s/lib/%s' % (qtdir, qtgui_framework),
9896 GetReferenceTo(qtgui_framework))
9997
100 if qtver == '5':
101 # Changes the reference to QtWidgets framework from the target application
102 qtwidgets_framework = GetFrameworkPath('QtWidgets', '5')
103 InstallNameTool(target,
104 '%s/lib/%s' % (qtdir, qtwidgets_framework),
105 GetReferenceTo(qtwidgets_framework))
98 # Changes the reference to QtWidgets framework from the target application
99 qtwidgets_framework = GetFrameworkPath('QtWidgets', '5')
100 InstallNameTool(target,
101 '%s/lib/%s' % (qtdir, qtwidgets_framework),
102 GetReferenceTo(qtwidgets_framework))
106103
107104 # Change the reference to $(branding)Tool_lib from the target application
108105 # From: @executable_path/../Frameworks/MozcTool_lib.framework/...
4848 def ParseOption():
4949 """Parse command line options."""
5050 parser = optparse.OptionParser()
51 parser.add_option('--qtver', dest='qtver', choices=('4', '5'), default='4')
5251 parser.add_option('--qtdir', dest='qtdir')
5352 parser.add_option('--target', dest='target')
5453
112111 if not opt.target:
113112 PrintErrorAndExit('--target option is mandatory.')
114113
115 qtver = opt.qtver
116114 qtdir = os.path.abspath(opt.qtdir)
117115 target = os.path.abspath(opt.target)
118116
119117 ref_to = '@executable_path/../../../ConfigDialog.app/Contents/Frameworks'
120 if qtver == '5':
121 CopyQt(qtdir, 'QtCore', '5', target, copy_resources=True)
122 CopyQt(qtdir, 'QtGui', '5', target, copy_resources=True)
123 CopyQt(qtdir, 'QtWidgets', '5', target, copy_resources=True)
124 CopyQt(qtdir, 'QtPrintSupport', '5', target, copy_resources=True)
125118
126 ChangeReferences(qtdir, GetFrameworkPath('QtCore', '5'),
127 '5', target, ref_to)
128 ChangeReferences(qtdir, GetFrameworkPath('QtGui', '5'),
129 '5', target, ref_to,
130 references=['QtCore'])
131 ChangeReferences(qtdir, GetFrameworkPath('QtWidgets', '5'),
132 '5', target, ref_to,
133 references=['QtCore', 'QtGui'])
134 ChangeReferences(qtdir, GetFrameworkPath('QtPrintSupport', '5'),
135 '5', target, ref_to,
136 references=['QtCore', 'QtGui', 'QtWidgets'])
119 CopyQt(qtdir, 'QtCore', '5', target, copy_resources=True)
120 CopyQt(qtdir, 'QtGui', '5', target, copy_resources=True)
121 CopyQt(qtdir, 'QtWidgets', '5', target, copy_resources=True)
122 CopyQt(qtdir, 'QtPrintSupport', '5', target, copy_resources=True)
137123
138 libqcocoa = 'QtCore.framework/Resources/plugins/platforms/libqcocoa.dylib'
139 CopyFiles(['%s/plugins/platforms/libqcocoa.dylib' % qtdir],
140 '%s/%s' % (target, libqcocoa))
141 ChangeReferences(qtdir, libqcocoa, '5', target, ref_to,
142 references=['QtCore', 'QtGui',
143 'QtWidgets', 'QtPrintSupport'])
144 else:
145 CopyQt(qtdir, 'QtCore', '4', target)
146 CopyQt(qtdir, 'QtGui', '4', target, copy_resources=True)
124 ChangeReferences(qtdir, GetFrameworkPath('QtCore', '5'),
125 '5', target, ref_to)
126 ChangeReferences(qtdir, GetFrameworkPath('QtGui', '5'),
127 '5', target, ref_to,
128 references=['QtCore'])
129 ChangeReferences(qtdir, GetFrameworkPath('QtWidgets', '5'),
130 '5', target, ref_to,
131 references=['QtCore', 'QtGui'])
132 ChangeReferences(qtdir, GetFrameworkPath('QtPrintSupport', '5'),
133 '5', target, ref_to,
134 references=['QtCore', 'QtGui', 'QtWidgets'])
147135
148 ChangeReferences(qtdir, GetFrameworkPath('QtCore', '4'),
149 '4', target, ref_to)
150 ChangeReferences(qtdir, GetFrameworkPath('QtGui', '4'),
151 '4', target, ref_to, references=['QtCore'])
136 libqcocoa = 'QtCore.framework/Resources/plugins/platforms/libqcocoa.dylib'
137 CopyFiles(['%s/plugins/platforms/libqcocoa.dylib' % qtdir],
138 '%s/%s' % (target, libqcocoa))
139 ChangeReferences(qtdir, libqcocoa, '5', target, ref_to,
140 references=['QtCore', 'QtGui',
141 'QtWidgets', 'QtPrintSupport'])
152142
153143
154144 if __name__ == '__main__':
2929
3030 MAJOR=2
3131 MINOR=20
32 BUILD=2672
32 BUILD=2673
3333 REVISION=102
3434 # This version represents the version of Mozc IME engine (converter, predictor,
3535 # etc.). This version info is included both in the Mozc server and in the Mozc
3131 #ifndef MOZC_GUI_ABOUT_DIALOG_ABOUT_DIALOG_H_
3232 #define MOZC_GUI_ABOUT_DIALOG_ABOUT_DIALOG_H_
3333
34 #ifdef MOZC_USE_QT5
3534 #include <QtWidgets/QDialog>
36 #else
37 #include <QtGui/QDialog>
38 #endif
3935
4036 #include <memory>
4137
2626 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
29 #ifdef MOZC_USE_QT5
3029 #include <QtGui/QGuiApplication>
31 #else
32 #include <QtGui/QApplication>
33 #endif
3430 #include <QtGui/QtGui>
3531 #include "base/system_util.h"
3632 #include "gui/about_dialog/about_dialog.h"
2828
2929 #include "gui/administration_dialog/administration_dialog.h"
3030
31 #ifdef MOZC_USE_QT5
3231 #include <QtWidgets/QMessageBox>
33 #else
34 #include <QtGui/QMessageBox>
35 #endif
32
3633 #include "base/run_level.h"
3734 #include "config/stats_config_util.h"
3835 #include "server/cache_service_manager.h"
3030 #define MOZC_GUI_ADMINISTRATION_DIALOG_H_
3131
3232 #include <QtGui/QtGui>
33 #ifdef MOZC_USE_QT5
3433 #include <QtWidgets/QDialog>
35 #else
36 #include <QtGui/QDialog>
37 #endif
34
3835 #include <string>
3936 #include "gui/administration_dialog/ui_administration_dialog.h"
4037
2626 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
29 #ifdef MOZC_USE_QT5
3029 #include <QtGui/QGuiApplication>
31 #else
32 #include <QtGui/QApplication>
33 #endif
3430 #include <QtGui/QtGui>
31
3532 #include "base/system_util.h"
3633 #include "gui/administration_dialog/administration_dialog.h"
3734 #include "gui/base/locale_util.h"
3535 namespace mozc {
3636 namespace gui {
3737
38 #ifdef MOZC_USE_QT5
3938 void DebugUtil::MessageHandler(QtMsgType type,
4039 const QMessageLogContext &context,
4140 const QString &q_msg) {
5655 break;
5756 }
5857 }
59 #else // ! MOZC_USE_QT5
60 void DebugUtil::MessageHandler(QtMsgType type, const char *msg) {
61 switch (type) {
62 case QtDebugMsg:
63 LOG(INFO) << msg;
64 break;
65 case QtWarningMsg:
66 LOG(WARNING) << msg;
67 break;
68 case QtCriticalMsg:
69 LOG(ERROR) << msg;
70 break;
71 case QtFatalMsg:
72 LOG(FATAL) << msg;
73 break;
74 }
75 }
76 #endif // ! MOZC_USE_QT5
7758
7859 } // namespace gui
7960 } // namespace mozc
3232 #define MOZC_GUI_BASE_DEBUG_UTIL_H_
3333
3434 #include <string>
35 #ifdef MOZC_USE_QT5
3635 #include <QtGui/QGuiApplication>
37 #else
38 #include <QtGui/QApplication>
39 #endif
4036
4137 namespace mozc {
4238 namespace gui {
4541 public:
4642 // Callback function used as a Qt message handler which is called when Qt
4743 // message functions (qDebug, qWarning, qCritical and qFatal) are called.
48 #ifdef MOZC_USE_QT5
4944 static void MessageHandler(QtMsgType type,
5045 const QMessageLogContext &context,
5146 const QString &q_msg);
52 #else
53 static void MessageHandler(QtMsgType type, const char *msg);
54 #endif
5547
5648 private:
5749 DebugUtil() {}
4343 #include <CommCtrl.h> // for CCSIZEOF_STRUCT
4444 #endif
4545
46 #ifdef MOZC_USE_QT5
4746 #include <QtGui/QGuiApplication>
48 #else
49 #include <QtCore/QTextCodec>
50 #include <QtGui/QApplication>
51 #endif
5247
5348 #include <QtGui/QtGui>
5449 #include <map>
113108 if (loaded) {
114109 qApp->installTranslator(&default_translator_);
115110 }
116
117 #ifndef MOZC_USE_QT5
118 // Set default encoding for multi-byte string to be UTF8
119 QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
120 QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
121 #endif
122111 }
123112
124113 void TranslationDataImpl::InstallTranslationMessageAndFont(
2828
2929 #include "gui/base/table_util.h"
3030
31 #ifdef MOZC_USE_QT5
3231 #include <QtWidgets/QTableWidget>
33 #else
34 #include <QtGui/QTableWidget>
35 #endif
3632
3733 namespace mozc {
3834 namespace gui {
2828
2929 #include <QtCore/QObject>
3030 #include <QtCore/QString>
31 #ifdef MOZC_USE_QT5
3231 #include <QtGui/QGuiApplication>
3332 #include <QtWidgets/QApplication>
3433 #include <QtWidgets/QWidget>
35 #else
36 #include <QtGui/QApplication>
37 #include <QtGui/QWidget>
38 #endif
3934
4035 #include "base/version.h"
4136 #include "gui/base/window_title_modifier.h"
4439 namespace gui {
4540 bool WindowTitleModifier::eventFilter(QObject *obj,
4641 QEvent *event) {
47 #ifdef MOZC_USE_QT5
4842 QWidget *w = QApplication::activeWindow();
49 #else
50 QWidget *w = qApp->activeWindow();
51 #endif
5243 if (w != NULL && obj != NULL && w == obj &&
5344 QEvent::WindowActivate == event->type() &&
5445 w->windowTitle().indexOf(prefix_) == -1) {
3030 #include <windows.h>
3131 #endif
3232
33 #ifdef MOZC_USE_QT5
3433 #include <QtGui/QGuiApplication>
35 #else
36 #include <QtGui/QApplication>
37 #endif
3834 #include <QtCore/QFile>
3935
4036 #include <memory>
2929 #include "gui/character_pad/character_palette.h"
3030
3131 #include <QtGui/QtGui>
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QMessageBox>
34 #else
35 #include <QtGui/QMessageBox>
36 #endif
3733
3834 #ifdef OS_WIN
3935 #include <Windows.h>
3030 #define MOZC_GUI_CHARACTER_PAD_CHARACTER_PALETTE_H_
3131
3232 #include <QtCore/QMap>
33 #ifdef MOZC_USE_QT5
3433 #include <QtWidgets/QMainWindow>
35 #else
36 #include <QtGui/QMainWindow>
37 #endif
3834
3935 #include <memory>
4036
3030
3131 #include <QtGui/QtGui>
3232 #include <QtCore/QTextCodec>
33 #ifdef MOZC_USE_QT5
3433 #include <QtWidgets/QToolTip>
35 #endif
3634
3735 #include "gui/character_pad/selection_handler.h"
3836 #include "gui/character_pad/unicode_util.h"
2929 #ifndef MOZC_GUI_CHARACTER_PAD_CHARACTER_PALETTE_TABLE_WIDGET_H_
3030 #define MOZC_GUI_CHARACTER_PAD_CHARACTER_PALETTE_TABLE_WIDGET_H_
3131
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QTableWidget>
34 #else
35 #include <QtGui/QTableWidget>
36 #endif
3733
3834 class QTextCodec;
3935 class QTableWidgetItem;
2828
2929 #include "gui/character_pad/hand_writing.h"
3030
31 #ifdef MOZC_USE_QT5
3231 #ifdef ENABLE_CLOUD_HANDWRITING
3332 #include <QtGui/QGuiApplication>
3433 #endif // ENABLE_CLOUD_HANDWRITING
34
3535 #include <QtGui/QtGui>
3636 #include <QtWidgets/QMessageBox>
37 #else // ! MOZC_USE_QT5
38 #ifdef ENABLE_CLOUD_HANDWRITING
39 #include <QtGui/QApplication>
40 #endif // ENABLE_CLOUD_HANDWRITING
41 #include <QtGui/QtGui>
42 #include <QtGui/QMessageBox>
43 #endif // ! MOZC_USE_QT5
37
4438 #ifdef OS_WIN
4539 #include <windows.h>
4640 #include <windowsx.h>
2929 #ifndef MOZC_GUI_CHARACTER_PAD_HAND_WRITING_H_
3030 #define MOZC_GUI_CHARACTER_PAD_HAND_WRITING_H_
3131
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QMainWindow>
34 #else
35 #include <QtGui/QMainWindow>
36 #endif
3733
3834 #include <memory>
3935
2929 #ifndef MOZC_GUI_CHARACTER_PAD_HAND_WRITING_CANVAS_H_
3030 #define MOZC_GUI_CHARACTER_PAD_HAND_WRITING_CANVAS_H_
3131
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QWidget>
34 #else
35 #include <QtGui/QWidget>
36 #endif
3733 #include <QtCore/QVector>
3834 #include <QtCore/QPair>
3935
3131 // MutexLocker locks in the constructor and unlocks in the destructor.
3232 #include <QtCore/QMutexLocker>
3333 #include <QtGui/QtGui>
34 #ifdef MOZC_USE_QT5
3534 #include <QtWidgets/QListWidgetItem>
36 #endif
3735
3836 #include "base/clock.h"
3937 #include "base/logging.h"
3030
3131 #include <QtCore/QStringList>
3232 #include <QtGui/QtGui>
33 #ifdef MOZC_USE_QT5
3433 #include <QtWidgets/QToolTip>
35 #endif
3634
3735 #include "gui/character_pad/selection_handler.h"
3836 #include "gui/character_pad/unicode_util.h"
3030 #define MOZC_GUI_CHARACTER_PAD_RESULT_LIST_H_
3131
3232 #include <QtCore/QStringList>
33 #ifdef MOZC_USE_QT5
3433 #include <QtWidgets/QWidget>
3534 #include <QtWidgets/QListWidget>
36 #else
37 #include <QtGui/QWidget>
38 #include <QtGui/QListWidget>
39 #endif
4035
4136 namespace mozc {
4237 namespace gui {
2828
2929 #include "gui/character_pad/selection_handler.h"
3030
31 #ifdef MOZC_USE_QT5
3231 #include <QtGui/QGuiApplication>
3332 #include <QtGui/QClipboard>
3433 #include <QtWidgets/QApplication>
3534 #include <QtWidgets/QMessageBox>
36 #else
37 #include <QtGui/QApplication>
38 #include <QtGui/QClipboard>
39 #include <QtGui/QMessageBox>
40 #endif
4135
4236 #include "base/singleton.h"
4337
201201 }
202202
203203 QString toHtmlEscaped(const QString &text) {
204 #ifdef MOZC_USE_QT5
205204 return text.toHtmlEscaped();
206 #else
207 return Qt::escape(text);
208 #endif
209205 }
210206 } // namespace
211207
2929 #include "gui/config_dialog/character_form_editor.h"
3030
3131 #include <QtGui/QtGui>
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QHeaderView>
34 #endif
3533
3634 #include <memory>
3735
2929 #ifndef MOZC_GUI_CONFIG_DIALOG_CHARACTER_FORM_EDITOR_H_
3030 #define MOZC_GUI_CONFIG_DIALOG_CHARACTER_FORM_EDITOR_H_
3131
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QTableWidget>
34 #else
35 #include <QtGui/QTableWidget>
36 #endif
3733
3834 #include <memory>
3935
2929 #include "gui/config_dialog/combobox_delegate.h"
3030
3131 #include <QtGui/QtGui>
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QComboBox>
34 #else
35 #include <QtGui/QComboBox>
36 #endif
3733
3834 namespace mozc {
3935 namespace gui {
3232 #include <QtCore/QModelIndex>
3333 #include <QtCore/QObject>
3434 #include <QtCore/QStringList>
35 #ifdef MOZC_USE_QT5
3635 #include <QtWidgets/QComboBox>
3736 #include <QtWidgets/QItemDelegate>
38 #else
39 #include <QtGui/QComboBox>
40 #include <QtGui/QItemDelegate>
41 #endif
4237
4338 class QMouseEvent;
4439
3434 #endif // OS_ANDROID || OS_NACL
3535
3636 #ifdef OS_WIN
37 #ifdef MOZC_USE_QT5
3837 #include <QtGui/QGuiApplication>
39 #else
40 #include <QtGui/QApplication>
41 #endif
4238 #include <windows.h>
4339 #endif
4440
45 #ifdef MOZC_USE_QT5
4641 #include <QtWidgets/QMessageBox>
47 #else
48 #include <QtGui/QMessageBox>
49 #endif
5042
5143 #include <algorithm>
5244 #include <cstdlib>
3030
3131 #include <QtCore/QStringList>
3232 #include <QtCore/QTextCodec>
33 #ifdef MOZC_USE_QT5
3433 #include <QtGui/QtGui>
3534 #include <QtWidgets/QApplication>
3635 #include <QtWidgets/QDialog>
37 #else
38 #include <QtGui/QApplication>
39 #include <QtGui/QDialog>
40 #include <QtGui/QtGui>
41 #endif
36
4237 #include "base/system_util.h"
4338 #include "gui/base/locale_util.h"
4439 #include "gui/base/singleton_window_helper.h"
2929 #include "gui/config_dialog/generic_table_editor.h"
3030
3131 #include <QtCore/QFile>
32 #ifdef MOZC_USE_QT5
3332 #include <QtGui/QtGui>
3433 #include <QtWidgets/QFileDialog>
3534 #include <QtWidgets/QMenu>
3635 #include <QtWidgets/QMessageBox>
37 #else
38 #include <QtGui/QFileDialog>
39 #include <QtGui/QtGui>
40 #endif
4136
4237 #include <algorithm> // for unique
4338 #include <cctype>
120115 QAbstractItemView::SelectedClicked);
121116 editorTableWidget->setSortingEnabled(true);
122117
123 #ifdef MOZC_USE_QT5
124118 editorTableWidget->verticalHeader()->setSectionResizeMode(QHeaderView::Fixed);
125 #else
126 editorTableWidget->verticalHeader()->setResizeMode(QHeaderView::Fixed);
127 #endif
128119 editorTableWidget->verticalHeader()->setDefaultSectionSize(
129120 GetTableHeight(editorTableWidget));
130121
2929 #ifndef MOZC_GUI_CONFIG_DIALOG_GENERIC_TABLE_EDITOR_H_
3030 #define MOZC_GUI_CONFIG_DIALOG_GENERIC_TABLE_EDITOR_H_
3131
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QWidget>
34 #else
35 #include <QtGui/QWidget>
36 #endif
3733 #include <string>
3834 #include "gui/config_dialog/ui_generic_table_editor.h"
3935
4242 #endif
4343
4444 #include <QtCore/QString>
45 #ifdef MOZC_USE_QT5
4645 #include <QtWidgets/QMessageBox>
4746 #include <QtWidgets/QMenu>
4847 #include <QtWidgets/QPushButton>
4948 #include <QtWidgets/QTableWidget>
50 #else
51 #include <QtGui/QMessageBox>
52 #endif
5349
5450 #include "base/logging.h"
5551 #include "base/util.h"
287283 result_state = KeyBindingFilter::DENY_KEY;
288284 }
289285
290 #ifdef MOZC_USE_QT5
291286 const char key = modifier_required_key_.isEmpty() ?
292287 0 : modifier_required_key_[0].toLatin1();
293 #else
294 const char key = modifier_required_key_.isEmpty() ?
295 0 : modifier_required_key_[0].toAscii();
296 #endif
297288
298289 // Alt or Ctrl or these combinations
299290 if ((alt_pressed_ || ctrl_pressed_) &&
3030 #define MOZC_GUI_CONFIG_DIALOG_KEYBINDING_EDITOR_H_
3131
3232 #include <QtGui/QtGui>
33 #ifdef MOZC_USE_QT5
3433 #include <QtGui/QGuiApplication>
35 #else
36 #include <QtGui/QDialog>
37 #endif
3834
3935 #include <memory>
4036 #include <string>
2929 #include "gui/config_dialog/keybinding_editor_delegate.h"
3030
3131 #include <QtGui/QtGui>
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QPushButton>
34 #else
35 #include <QtGui/QPushButton>
36 #endif
3733
3834 #include <memory>
3935
3131
3232 #include <QtCore/QModelIndex>
3333 #include <QtCore/QObject>
34 #ifdef MOZC_USE_QT5
3534 #include <QtWidgets/QItemDelegate>
36 #else
37 #include <QtGui/QItemDelegate>
38 #endif
3935
4036 namespace mozc {
4137 namespace gui {
3333 #endif // OS_ANDROID || OS_NACL
3434
3535 #include <QtCore/QFile>
36 #ifdef MOZC_USE_QT5
3736 #include <QtGui/QtGui>
3837 #include <QtWidgets/QFileDialog>
3938 #include <QtWidgets/QMenu>
4039 #include <QtWidgets/QMessageBox>
41 #else
42 #include <QtGui/QFileDialog>
43 #include <QtGui/QtGui>
44 #endif
4540
4641 #include <algorithm> // for unique
4742 #include <cctype>
2929 #ifndef MOZC_GUI_CONFIG_DIALOG_KEYMAP_EDITOR_H_
3030 #define MOZC_GUI_CONFIG_DIALOG_KEYMAP_EDITOR_H_
3131
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QWidget>
34 #else
35 #include <QtGui/QWidget>
36 #endif
3733
3834 #include <memory>
3935 #include <set>
2929 #include "gui/config_dialog/roman_table_editor.h"
3030
3131 #include <QtGui/QtGui>
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QMenu>
3433 #include <QtWidgets/QMessageBox>
35 #endif
3634
3735 #include <cctype>
3836 #include <memory>
2929 #ifndef MOZC_GUI_CONFIG_DIALOG_ROMAN_TABLE_EDITOR_H_
3030 #define MOZC_GUI_CONFIG_DIALOG_ROMAN_TABLE_EDITOR_H_
3131
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QWidget>
34 #else
35 #include <QtGui/QWidget>
36 #endif
3733
3834 #include <memory>
3935 #include <string>
2929 #include "gui/confirmation_dialog/confirmation_dialog.h"
3030
3131 #include <QtGui/QtGui>
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QAbstractButton>
3433 #include <QtWidgets/QMessageBox>
35 #else
36 #include <QtGui/QMessageBox>
37 #endif
3834
3935 #include "base/flags.h"
4036
3030 #define MOZC_GUI_CONFIRMATION_DIALOG_H_
3131
3232 #include <QtCore/QObject>
33 #ifdef MOZC_USE_QT5
3433 #include <QtWidgets/QMessageBox>
35 #else
36 #include <QtGui/QMessageBox>
37 #endif
3834
3935 namespace mozc {
4036 namespace gui {
2626 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
29 #ifdef MOZC_USE_QT5
3029 #include <QtGui/QGuiApplication>
3130 #include <QtGui/QtGui>
3231 #include <QtWidgets/QApplication>
33 #else
34 #include <QtGui/QApplication>
35 #include <QtGui/QtGui>
36 #endif
3732
3833 #include "base/flags.h"
3934 #include "base/logging.h"
2929 #ifndef MOZC_GUI_DICTIONARY_TOOL_DICTIONARY_CONTENT_TABLE_WIDGET_H_
3030 #define MOZC_GUI_DICTIONARY_TOOL_DICTIONARY_CONTENT_TABLE_WIDGET_H_
3131
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QTableWidget>
34 #else
35 #include <QtGui/QTableWidget>
36 #endif
3733
3834 namespace mozc {
3935 namespace gui {
3434
3535 #include <QtCore/QTimer>
3636 #include <QtGui/QtGui>
37 #ifdef MOZC_USE_QT5
3837 #include <QtWidgets/QProgressDialog>
3938 #include <QtWidgets/QMessageBox>
4039 #include <QtWidgets/QFileDialog>
4140 #include <QtWidgets/QMenu>
4241 #include <QtWidgets/QInputDialog>
4342 #include <QtWidgets/QShortcut>
44 #else
45 #include <QtGui/QProgressDialog>
46 #endif
4743
4844 #ifdef OS_WIN
4945 #include <Windows.h>
393389
394390 // We fix the row height so that paint() is executed faster.
395391 // This changes allows DictionaryTool handle about 1M words.
396 #ifdef MOZC_USE_QT5
397392 dic_content_->verticalHeader()->setSectionResizeMode(QHeaderView::Fixed);
398 #else
399 dic_content_->verticalHeader()->setResizeMode(QHeaderView::Fixed);
400 #endif
401393 dic_content_->verticalHeader()->setDefaultSectionSize(
402394 GetTableHeight(dic_content_));
403395
2929 #ifndef MOZC_GUI_DICTIONARY_TOOL_DICTIONARY_TOOL_H_
3030 #define MOZC_GUI_DICTIONARY_TOOL_DICTIONARY_TOOL_H_
3131
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QLabel>
3433 #include <QtWidgets/QPushButton>
3534 #include <QtWidgets/QSplitterHandle>
3635 #include <QtWidgets/QSplitter>
37 #else
38 #include <QtGui/QLabel>
39 #include <QtGui/QPushButton>
40 #include <QtGui/QSplitterHandle>
41 #include <QtGui/QSplitter>
42 #endif
4336
4437 #include <memory>
4538 #include <string>
2828
2929 #include <QtCore/QTextCodec>
3030 #include <QtCore/QTranslator>
31 #ifdef MOZC_USE_QT5
3231 #include <QtGui/QGuiApplication>
33 #else
34 #include <QtGui/QApplication>
35 #endif
32
3633 #include <string>
3734 #include "base/logging.h"
3835 #include "base/system_util.h"
2929 #include "gui/dictionary_tool/find_dialog.h"
3030
3131 #include <QtGui/QtGui>
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QTableWidget>
3433 #include <QtWidgets/QMessageBox>
35 #endif
3634
3735 #include "base/logging.h"
3836
2929 #ifndef MOZC_GUI_DICTIONARY_TOOL_FIND_DIALOG_H_
3030 #define MOZC_GUI_DICTIONARY_TOOL_FIND_DIALOG_H_
3131
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QDialog>
34 #else
35 #include <QtGui/QDialog>
36 #endif
33
3734 #include "gui/dictionary_tool/ui_find_dialog.h"
3835
3936 class QTableWidget;
2929 #include "gui/dictionary_tool/import_dialog.h"
3030
3131 #include <QtGui/QtGui>
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QFileDialog>
34 #endif
3533
3634 #include "base/util.h"
3735 #include "dictionary/user_dictionary_storage.h"
3434 #ifndef MOZC_GUI_DICTIONARY_TOOL_IMPORT_DIALOG_H_
3535 #define MOZC_GUI_DICTIONARY_TOOL_IMPORT_DIALOG_H_
3636
37 #ifdef MOZC_USE_QT5
3837 #include <QtWidgets/QDialog>
39 #else
40 #include <QtGui/QDialog>
41 #endif
38
4239 #include "dictionary/user_dictionary_importer.h"
4340 #include "gui/dictionary_tool/ui_import_dialog.h"
4441
2929 #include "gui/dictionary_tool/zero_width_splitter.h"
3030
3131 #include <QtGui/QtGui>
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QSplitter>
34 #else
35 #include <QtGui/QSplitter>
36 #endif
3733
3834 void ZeroWidthSplitterHandle::paintEvent(QPaintEvent *event) {
3935 #ifdef OS_MACOSX
2929 #ifndef MOZC_GUI_DICTIONARY_TOOL_ZERO_WIDTH_SPLITTER_H_
3030 #define MOZC_GUI_DICTIONARY_TOOL_ZERO_WIDTH_SPLITTER_H_
3131
32 #ifdef MOZC_USE_QT5
3332 #include <QtWidgets/QSplitter>
34 #else
35 #include <QtGui/QSplitter>
36 #endif
3733
3834 // Special QSplitter whose handle size is only 1px.
3935 // This line is drawed with a proper colour corresponding to
3030
3131 #include <QtCore/QTimer>
3232 #include <QtGui/QtGui>
33 #ifdef MOZC_USE_QT5
3433 #include <QtWidgets/QAbstractButton>
3534 #include <QtWidgets/QMessageBox>
36 #else
37 #include <QtGui/QMessageBox>
38 #endif
3935
4036 #include "base/flags.h"
4137
3030 #define MOZC_GUI_ERROR_MESSAGE_DIALOG_H_
3131
3232 #include <QtCore/QObject>
33 #ifdef MOZC_USE_QT5
3433 #include <QtWidgets/QMessageBox>
35 #else
36 #include <QtGui/QMessageBox>
37 #endif
3834
3935 namespace mozc {
4036 namespace gui {
2626 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
29 #ifdef MOZC_USE_QT5
3029 #include <QtGui/QGuiApplication>
3130 #include <QtGui/QtGui>
3231 #include <QtWidgets/QApplication>
33 #else
34 #include <QtGui/QApplication>
35 #include <QtGui/QtGui>
36 #endif
32
3733 #include "base/logging.h"
3834 #include "base/process_mutex.h"
3935 #include "base/system_util.h"
10301030 'postbuild_name': 'Change the reference to frameworks.',
10311031 'action': [
10321032 'python', '../build_tools/change_reference_mac.py',
1033 '--qtver', '<(qt_ver)',
10341033 '--qtdir', '<(qt_dir)',
10351034 '--target',
10361035 '${BUILT_PRODUCTS_DIR}/GuiTool_lib.framework/Versions/A/GuiTool_lib',
12781277 ],
12791278 'conditions': [
12801279 ['use_qt=="YES"', {
1281 'conditions': [
1282 ['qt_ver==5', {
1283 'mac_bundle_resources': ['../data/mac/qt.conf'],
1284 }],
1285 ],
1280 'mac_bundle_resources': ['../data/mac/qt.conf'],
12861281 'sources': [
12871282 'tool/mozc_tool_main.cc',
12881283 ],
12971292 'postbuild_name': 'Change the reference to frameworks',
12981293 'action': [
12991294 'python', '../build_tools/change_reference_mac.py',
1300 '--qtver', '<(qt_ver)',
13011295 '--qtdir', '<(qt_dir)',
13021296 '--target',
13031297 '${BUILT_PRODUCTS_DIR}/<(product_name).app/Contents/MacOS/<(product_name)',
13071301 'postbuild_name': 'Copy Qt frameworks to the frameworks directory.',
13081302 'action': [
13091303 'python', '../build_tools/copy_qt_frameworks_mac.py',
1310 '--qtver', '<(qt_ver)',
13111304 '--qtdir', '<(qt_dir)',
13121305 '--target', '${BUILT_PRODUCTS_DIR}/<(product_name).app/Contents/Frameworks/',
13131306 ],
3434 'sources': [
3535 'tool/mozc_tool_main.cc',
3636 ],
37 'conditions': [
38 ['qt_ver==5', {
39 'mac_bundle_resources': ['../data/mac/qt.conf'],
40 }],
41 ],
37 'mac_bundle_resources': ['../data/mac/qt.conf'],
4238 'dependencies': [
4339 'config_dialog_mac',
4440 'gen_mozc_tool_info_plist',
4945 'postbuild_name': 'Change the reference to frameworks',
5046 'action': [
5147 'python', '../build_tools/change_reference_mac.py',
52 '--qtver', '<(qt_ver)',
5348 '--qtdir', '<(qt_dir)',
5449 '--target',
5550 '${BUILT_PRODUCTS_DIR}/<(product_name).app/Contents/MacOS/<(product_name)',
3030 #include <windows.h>
3131 #endif
3232
33 #ifdef MOZC_USE_QT5
3433 #include <QtGui/QGuiApplication>
35 #else
36 #include <QtGui/QApplication>
37 #endif
3834 #include <QtGui/QtGui>
35
3936 #include "base/logging.h"
4037 #include "base/process_mutex.h"
4138 #include "base/system_util.h"
4646 'AdditionalLibraryDirectories': [
4747 '<(qt_dir)/lib',
4848 ],
49 'conditions': [
50 ['qt_ver==5', {
51 'AdditionalDependencies': [
52 'Qt5Cored.lib',
53 'Qt5Guid.lib',
54 'Qt5Widgetsd.lib',
55 ],
56 }, {
57 'AdditionalDependencies': [
58 'QtCored4.lib',
59 'QtGuid4.lib',
60 ],
61 }],
49 'AdditionalDependencies': [
50 'Qt5Cored.lib',
51 'Qt5Guid.lib',
52 'Qt5Widgetsd.lib',
6253 ],
6354 },
6455 },
6960 'AdditionalLibraryDirectories': [
7061 '<(qt_dir)/lib',
7162 ],
72 'conditions': [
73 ['qt_ver==5', {
74 'AdditionalDependencies': [
75 'Qt5Core.lib',
76 'Qt5Gui.lib',
77 'Qt5Widgets.lib',
78 ],
79 }, {
80 'AdditionalDependencies': [
81 'QtCore4.lib',
82 'QtGui4.lib',
83 ],
84 }],
63 'AdditionalDependencies': [
64 'Qt5Core.lib',
65 'Qt5Gui.lib',
66 'Qt5Widgets.lib',
8567 ],
8668 },
8769 },
10385 'mac_framework_dirs': [
10486 '<(qt_dir)/lib',
10587 ],
106 'conditions': [
107 ['qt_ver==5', {
108 'libraries': [
109 '<(qt_dir)/lib/QtCore.framework',
110 '<(qt_dir)/lib/QtGui.framework',
111 '<(qt_dir)/lib/QtWidgets.framework',
112 ]
113 }, {
114 'libraries': [
115 '<(qt_dir)/lib/QtCore.framework',
116 '<(qt_dir)/lib/QtGui.framework',
117 ]
118 }],
119 ],
88 'libraries': [
89 '<(qt_dir)/lib/QtCore.framework',
90 '<(qt_dir)/lib/QtGui.framework',
91 '<(qt_dir)/lib/QtWidgets.framework',
92 ]
12093 },
12194 }],
12295 ],
12598 ]
12699 }],
127100 ['target_platform=="Linux"', {
128 'conditions': [
129 ['qt_ver==5', {
130 'cflags': ['<!@(pkg-config --cflags Qt5Widgets Qt5Gui Qt5Core)'],
131 'libraries': ['<!@(pkg-config --libs Qt5Widgets Qt5Gui Qt5Core)'],
132 }, {
133 'cflags': ['<!@(pkg-config --cflags QtGui QtCore)'],
134 'libraries': ['<!@(pkg-config --libs QtGui QtCore)'],
135 }],
136 ],
101 'cflags': ['<!@(pkg-config --cflags Qt5Widgets Qt5Gui Qt5Core)'],
102 'libraries': ['<!@(pkg-config --libs Qt5Widgets Qt5Gui Qt5Core)'],
137103 }],
138104 # Workarounds related with clang.
139105 ['(_toolset=="target" and compiler_target=="clang") or '
3333 'variables': {
3434 'conditions': [
3535 ['target_platform=="Linux"', {
36 'conditions': [
37 ['qt_ver==5', {
38 'moc_path': '<!(pkg-config --variable=host_bins Qt5Core)/moc',
39 }, {
40 'moc_path': '<!(pkg-config --variable=moc_location QtGui)',
41 }],
42 ],
36 'moc_path': '<!(pkg-config --variable=host_bins Qt5Core)/moc',
4337 }, 'qt_dir', {
4438 'moc_path': '<(qt_dir)/bin/moc<(EXECUTABLE_SUFFIX)',
4539 }, {
3333 'variables': {
3434 'conditions': [
3535 ['target_platform=="Linux"', {
36 'conditions': [
37 ['qt_ver==5', {
38 'rcc_path': '<!(pkg-config --variable=host_bins Qt5Core)/rcc',
39 }, {
40 # seems that --variable=rcc_location is not supported
41 'rcc_path': '<!(pkg-config --variable=exec_prefix QtGui)/bin/rcc',
42 }],
43 ],
36 'rcc_path': '<!(pkg-config --variable=host_bins Qt5Core)/rcc',
4437 }, 'qt_dir', {
4538 'rcc_path': '<(qt_dir)/bin/rcc<(EXECUTABLE_SUFFIX)',
4639 }, {
3333 'variables': {
3434 'conditions': [
3535 ['target_platform=="Linux"', {
36 'conditions': [
37 ['qt_ver==5', {
38 'uic_path': '<!(pkg-config --variable=host_bins Qt5Core)/uic',
39 }, {
40 'uic_path': '<!(pkg-config --variable=uic_location QtGui)',
41 }],
42 ],
36 'uic_path': '<!(pkg-config --variable=host_bins Qt5Core)/uic',
4337 }, 'qt_dir', {
4438 'uic_path': '<(qt_dir)/bin/uic<(EXECUTABLE_SUFFIX)',
4539 }, {
3030 #include <windows.h>
3131 #endif
3232
33 #ifdef MOZC_USE_QT5
3433 #include <QtGui/QGuiApplication>
35 #else
36 #include <QtGui/QApplication>
37 #endif
3834 #include <QtGui/QtGui>
35
3936 #include "base/logging.h"
4037 #include "base/process_mutex.h"
4138 #include "base/system_util.h"
143143 }
144144
145145 // install Qt debug handler
146 #ifdef MOZC_USE_QT5
147146 qInstallMessageHandler(mozc::gui::DebugUtil::MessageHandler);
148 #else
149 qInstallMsgHandler(mozc::gui::DebugUtil::MessageHandler);
150 #endif
151147
152148 #ifdef OS_WIN
153149 // Update JumpList if available.
3838 #endif // OS_WIN
3939
4040 #include <QtGui/QtGui>
41 #ifdef MOZC_USE_QT5
4241 #include <QtWidgets/QMessageBox>
43 #endif
4442 #include <cstdlib>
4543 #ifdef OS_WIN
4644 #include <memory> // for std::unique_ptr
8785 const DWORD num_copied =
8886 ::GetEnvironmentVariable(wenvname.c_str(), buffer.get(), buffer_size);
8987 if (num_copied > 0) {
90 #ifdef MOZC_USE_QT5
9188 return QString::fromUtf16(buffer.get());
92 #else
93 return QString::fromWCharArray(buffer.get());
94 #endif
9589 }
9690 return "";
9791 #endif // OS_WIN
3131
3232 #include <QtCore/QString>
3333 #include <QtGui/QtGui>
34 #ifdef MOZC_USE_QT5
3534 #include <QtWidgets/QDialog>
36 #else
37 #include <QtGui/QDialog>
38 #endif
3935
4036 #include <memory>
4137
2626 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
29 #ifdef MOZC_USE_QT5
3029 #include <QtGui/QGuiApplication>
3130 #include <QtWidgets/QDialog>
32 #else
33 #include <QtGui/QApplication>
34 #include <QtGui/QDialog>
35 #endif
3631 #include <QtGui/QtGui>
32
3733 #include "base/system_util.h"
3834 #include "gui/base/locale_util.h"
3935 #include "gui/base/singleton_window_helper.h"
5555 # use_qt is 'YES' only if you want to use GUI binaries.
5656 'use_qt%': 'YES',
5757
58 # Qt version. It should be either of 4 or 5.
59 'qt_ver%' : '4',
60
6158 # use_libprotobuf represents if protobuf library is used or not.
6259 # This option is only for Linux.
6360 # You should not set this flag if you want to use "dlopen" to
9289 ['enable_gtk_renderer==1', {
9390 'defines': ['ENABLE_GTK_RENDERER'],
9491 }],
95 ['qt_ver==5', {
96 'defines': ['MOZC_USE_QT5'],
97 }],
9892 ]
9993 }
10094 }
5959 'release_crt_merge_module_id_prefix': 'CRT140',
6060 'debug_crt_merge_module_path': 'C:/Program Files (x86)/Common Files/Merge Modules/Microsoft_VC140_DebugCRT_x86.msm',
6161 'release_crt_merge_module_path': 'C:/Program Files (x86)/Common Files/Merge Modules/Microsoft_VC140_CRT_x86.msm',
62 'qtcore4_dll_path': '',
63 'qtcored4_dll_path': '',
64 'qtgui4_dll_path': '',
65 'qtguid4_dll_path': '',
6662 'qt5core_dll_path': '',
6763 'qt5cored_dll_path': '',
6864 'qt5gui_dll_path': '',
7773 ['use_qt=="YES"', {
7874 'mozc_zinnia_model_data_path': '<(DEPTH)/third_party/zinnia/tomoe/handwriting-light-ja.model',
7975 'mozc_tool_path': '<(outdir32_dynamic)/GoogleIMEJaTool.exe',
80 }],
81 ['use_qt=="YES" and qt_ver==4', {
82 'qtcore4_dll_path': '<(qt_dir)/bin/QtCore4.dll',
83 'qtcored4_dll_path': '<(qt_dir)/bin/QtCored4.dll',
84 'qtgui4_dll_path': '<(qt_dir)/bin/QtGui4.dll',
85 'qtguid4_dll_path': '<(qt_dir)/bin/QtGuid4.dll',
86 }],
87 ['use_qt=="YES" and qt_ver==5', {
8876 'qt5core_dll_path': '<(qt_dir)/bin/Qt5Core.dll',
8977 'qt5cored_dll_path': '<(qt_dir)/bin/Qt5Cored.dll',
9078 'qt5gui_dll_path': '<(qt_dir)/bin/Qt5Gui.dll',
10088 'release_crt_merge_module_id_prefix': '<(release_crt_merge_module_id_prefix)',
10189 'debug_crt_merge_module_path': '<(debug_crt_merge_module_path)',
10290 'release_crt_merge_module_path': '<(release_crt_merge_module_path)',
103 'qtcore4_dll_path': '<(qtcore4_dll_path)',
104 'qtcored4_dll_path': '<(qtcored4_dll_path)',
105 'qtgui4_dll_path': '<(qtgui4_dll_path)',
106 'qtguid4_dll_path': '<(qtguid4_dll_path)',
10791 'qt5core_dll_path': '<(qt5core_dll_path)',
10892 'qt5cored_dll_path': '<(qt5cored_dll_path)',
10993 'qt5gui_dll_path': '<(qt5gui_dll_path)',
5454 <?endif?>
5555 <?ifndef ReleaseCrtMergeModulePath ?>
5656 <?define ReleaseCrtMergeModulePath="" ?>
57 <?endif?>
58 <?ifndef QtCore4DllPath ?>
59 <?define QtCore4DllPath="" ?>
60 <?endif?>
61 <?ifndef QtCored4DllPath ?>
62 <?define QtCored4DllPath="" ?>
63 <?endif?>
64 <?ifndef QtGui4DllPath ?>
65 <?define QtGui4DllPath="" ?>
66 <?endif?>
67 <?ifndef QtGuid4DllPath ?>
68 <?define QtGuid4DllPath="" ?>
6957 <?endif?>
7058 <?ifndef Qt5CoreDllPath ?>
7159 <?define Qt5CoreDllPath="" ?>
386374 </Component>
387375 <?endif?>
388376 <?if $(var.VSConfigurationName) = "Debug" ?>
389 <?if $(var.QtCored4DllPath) != "" ?>
390 <Component Id='QtCored4Dll' Guid='*'>
391 <!-- Always overwrite: b/31845781 -->
392 <RemoveFile Id='QtCored4.dll' Name='QtCored4.dll' On="install" />
393 <File Id='QtCored4.dll'
394 Name='QtCored4.dll' DiskId='1' Vital='yes'
395 Checksum='yes' Source='$(var.QtCored4DllPath)' />
396 </Component>
397 <?endif?>
398 <?if $(var.QtGuid4DllPath) != "" ?>
399 <Component Id='QtGuid4Dll' Guid='*'>
400 <!-- Always overwrite: b/31845781 -->
401 <RemoveFile Id='QtGuid4.dll' Name='QtGuid4.dll' On="install" />
402 <File Id='QtGuid4.dll'
403 Name='QtGuid4.dll' DiskId='1' Vital='yes'
404 Checksum='yes' Source='$(var.QtGuid4DllPath)' />
405 </Component>
406 <?endif?>
407377 <?if $(var.Qt5CoredDllPath) != "" ?>
408378 <Component Id='Qt5CoredDll' Guid='*'>
409379 <!-- Always overwrite: b/31845781 -->
432402 </Component>
433403 <?endif?>
434404 <?else?>
435 <?if $(var.QtCore4DllPath) != "" ?>
436 <Component Id='QtCore4Dll' Guid='*'>
437 <!-- Always overwrite: b/31845781 -->
438 <RemoveFile Id='QtCore4.dll' Name='QtCore4.dll' On="install" />
439 <File Id='QtCore4.dll'
440 Name='QtCore4.dll' DiskId='1' Vital='yes'
441 Checksum='yes' Source='$(var.QtCore4DllPath)' />
442 </Component>
443 <?endif?>
444 <?if $(var.QtGui4DllPath) != "" ?>
445 <Component Id='QtGui4Dll' Guid='*'>
446 <!-- Always overwrite: b/31845781 -->
447 <RemoveFile Id='QtGui4.dll' Name='QtGui4.dll' On="install" />
448 <File Id='QtGui4.dll'
449 Name='QtGui4.dll' DiskId='1' Vital='yes'
450 Checksum='yes' Source='$(var.QtGui4DllPath)' />
451 </Component>
452 <?endif?>
453405 <?if $(var.Qt5CoreDllPath) != "" ?>
454406 <Component Id='Qt5CoreDll' Guid='*'>
455407 <!-- Always overwrite: b/31845781 -->
694646 <ComponentRef Id='ZinniaModelData' />
695647 <?endif?>
696648 <?if $(var.VSConfigurationName) = "Debug" ?>
697 <?if $(var.QtCored4DllPath) != "" ?>
698 <ComponentRef Id='QtCored4Dll' />
699 <?endif?>
700 <?if $(var.QtGuid4DllPath) != "" ?>
701 <ComponentRef Id='QtGuid4Dll' />
702 <?endif?>
703649 <?if $(var.Qt5CoredDllPath) != "" ?>
704650 <ComponentRef Id='Qt5CoredDll' />
705651 <?endif?>
713659 <ComponentRef Id='QWindowsdDll' />
714660 <?endif?>
715661 <?else?>
716 <?if $(var.QtCore4DllPath) != "" ?>
717 <ComponentRef Id='QtCore4Dll' />
718 <?endif?>
719 <?if $(var.QtGui4DllPath) != "" ?>
720 <ComponentRef Id='QtGui4Dll' />
721 <?endif?>
722662 <?if $(var.Qt5CoreDllPath) != "" ?>
723663 <ComponentRef Id='Qt5CoreDll' />
724664 <?endif?>
5454 <?endif?>
5555 <?ifndef ReleaseCrtMergeModulePath ?>
5656 <?define ReleaseCrtMergeModulePath="" ?>
57 <?endif?>
58 <?ifndef QtCore4DllPath ?>
59 <?define QtCore4DllPath="" ?>
60 <?endif?>
61 <?ifndef QtCored4DllPath ?>
62 <?define QtCored4DllPath="" ?>
63 <?endif?>
64 <?ifndef QtGui4DllPath ?>
65 <?define QtGui4DllPath="" ?>
66 <?endif?>
67 <?ifndef QtGuid4DllPath ?>
68 <?define QtGuid4DllPath="" ?>
6957 <?endif?>
7058 <?ifndef Qt5CoreDllPath ?>
7159 <?define Qt5CoreDllPath="" ?>
403391 </Component>
404392 <?endif?>
405393 <?if $(var.VSConfigurationName) = "Debug" ?>
406 <?if $(var.QtCored4DllPath) != "" ?>
407 <Component Id='QtCored4Dll' Guid='*'>
408 <!-- Always overwrite: b/31845781 -->
409 <RemoveFile Id='QtCored4.dll' Name='QtCored4.dll' On="install" />
410 <File Id='QtCored4.dll'
411 Name='QtCored4.dll' DiskId='1' Vital='yes'
412 Checksum='yes' Source='$(var.QtCored4DllPath)' />
413 </Component>
414 <?endif?>
415 <?if $(var.QtGuid4DllPath) != "" ?>
416 <Component Id='QtGuid4Dll' Guid='*'>
417 <!-- Always overwrite: b/31845781 -->
418 <RemoveFile Id='QtGuid4.dll' Name='QtGuid4.dll' On="install" />
419 <File Id='QtGuid4.dll'
420 Name='QtGuid4.dll' DiskId='1' Vital='yes'
421 Checksum='yes' Source='$(var.QtGuid4DllPath)' />
422 </Component>
423 <?endif?>
424394 <?if $(var.Qt5CoredDllPath) != "" ?>
425395 <Component Id='Qt5CoredDll' Guid='*'>
426396 <!-- Always overwrite: b/31845781 -->
449419 </Component>
450420 <?endif?>
451421 <?else?>
452 <?if $(var.QtCore4DllPath) != "" ?>
453 <Component Id='QtCore4Dll' Guid='*'>
454 <!-- Always overwrite: b/31845781 -->
455 <RemoveFile Id='QtCore4.dll' Name='QtCore4.dll' On="install" />
456 <File Id='QtCore4.dll'
457 Name='QtCore4.dll' DiskId='1' Vital='yes'
458 Checksum='yes' Source='$(var.QtCore4DllPath)' />
459 </Component>
460 <?endif?>
461 <?if $(var.QtGui4DllPath) != "" ?>
462 <Component Id='QtGui4Dll' Guid='*'>
463 <!-- Always overwrite: b/31845781 -->
464 <RemoveFile Id='QtGui4.dll' Name='QtGui4.dll' On="install" />
465 <File Id='QtGui4.dll'
466 Name='QtGui4.dll' DiskId='1' Vital='yes'
467 Checksum='yes' Source='$(var.QtGui4DllPath)' />
468 </Component>
469 <?endif?>
470422 <?if $(var.Qt5CoreDllPath) != "" ?>
471423 <Component Id='Qt5CoreDll' Guid='*'>
472424 <!-- Always overwrite: b/31845781 -->
766718 <ComponentRef Id='ZinniaModelData' />
767719 <?endif?>
768720 <?if $(var.VSConfigurationName) = "Debug" ?>
769 <?if $(var.QtCored4DllPath) != "" ?>
770 <ComponentRef Id='QtCored4Dll' />
771 <?endif?>
772 <?if $(var.QtGuid4DllPath) != "" ?>
773 <ComponentRef Id='QtGuid4Dll' />
774 <?endif?>
775721 <?if $(var.Qt5CoredDllPath) != "" ?>
776722 <ComponentRef Id='Qt5CoredDll' />
777723 <?endif?>
785731 <ComponentRef Id='QWindowsdDll' />
786732 <?endif?>
787733 <?else?>
788 <?if $(var.QtCore4DllPath) != "" ?>
789 <ComponentRef Id='QtCore4Dll' />
790 <?endif?>
791 <?if $(var.QtGui4DllPath) != "" ?>
792 <ComponentRef Id='QtGui4Dll' />
793 <?endif?>
794734 <?if $(var.Qt5CoreDllPath) != "" ?>
795735 <ComponentRef Id='Qt5CoreDll' />
796736 <?endif?>
7373 '-dReleaseCrtMergeModulePath=<(release_crt_merge_module_path)',
7474 ],
7575 }],
76 ['qtcore4_dll_path!=""', {
77 'additional_args': [
78 '-dQtCore4DllPath=<(qtcore4_dll_path)',
79 ],
80 }],
81 ['qtcored4_dll_path!=""', {
82 'additional_args': [
83 '-dQtCored4DllPath=<(qtcored4_dll_path)',
84 ],
85 }],
86 ['qtgui4_dll_path!=""', {
87 'additional_args': [
88 '-dQtGui4DllPath=<(qtgui4_dll_path)',
89 ],
90 }],
91 ['qtguid4_dll_path!=""', {
92 'additional_args': [
93 '-dQtGuid4DllPath=<(qtguid4_dll_path)',
94 ],
95 }],
9676 ['qt5core_dll_path!=""', {
9777 'additional_args': [
9878 '-dQt5CoreDllPath=<(qt5core_dll_path)',