Codebase list mozc / 95350e1
Suppress warning of Qt headers on Mac / Linux Qt 5.4.1 does not use the 'override' keyword, but Mozc uses it. It causes a lot of warnings. BUG=#327 TEST= REF_BUG= REF_CL=136792367,136796122 REF_TIME=2016-10-21T12:12:55+09:00 REF_TIME_RAW=1477019575 +0900 Hiroyuki Komatsu 7 years ago
2 changed file(s) with 11 addition(s) and 34 deletion(s). Raw diff Collapse all Expand all
2929
3030 MAJOR=2
3131 MINOR=19
32 BUILD=2645
32 BUILD=2646
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
3333 {
3434 'conditions': [['use_qt=="YES"', {
3535
36 'variables': {
37 'conditions': [
38 ['target_platform=="Linux"', {
39 'conditions': [
40 ['qt_ver==5', {
41 'qt_cflags': ['<!@(pkg-config --cflags Qt5Widgets Qt5Gui Qt5Core)'],
42 'qt_include_dirs': [],
43 }, {
44 'qt_cflags': ['<!@(pkg-config --cflags QtGui QtCore)'],
45 'qt_include_dirs': [],
46 }],
47 ],
48 }, 'qt_dir', {
49 'qt_cflags': [],
50 'qt_include_dirs': ['<(qt_dir)/include'],
51 }, {
52 'qt_cflags': [],
53 'qt_include_dirs': [],
54 }],
55 ],
56 },
57 # compilation settings
58 'cflags': ['<@(qt_cflags)'],
59 'include_dirs': ['<@(qt_include_dirs)'],
6036 # link settings
6137 # TODO(yukawa): Use 'link_settings' so that linker settings can be passed
6238 # to executables and loadable modules.
6339 'conditions': [
6440 ['qt_dir and target_platform=="Windows"', {
41 'include_dirs': ['<(qt_dir)/include'],
6542 'configurations': {
6643 'Debug_Base': {
6744 'msvs_settings': {
11491 ['target_platform=="Mac"', {
11592 'conditions': [
11693 ['qt_dir', {
94 'include_dirs': ['<(qt_dir)/include'],
95 'xcode_settings': {
96 'WARNING_CFLAGS': ['-Wno-inconsistent-missing-override'],
97 },
11798 # Supposing Qt libraries in qt_dir will be built as static libraries.
11899 'link_settings': {
119100 'xcode_settings': {
120 'LIBRARY_SEARCH_PATHS': [
121 '<(qt_dir)/lib',
122 ],
101 'LIBRARY_SEARCH_PATHS': ['<(qt_dir)/lib'],
123102 },
124103 'mac_framework_dirs': [
125104 '<(qt_dir)/lib',
148127 ['target_platform=="Linux"', {
149128 'conditions': [
150129 ['qt_ver==5', {
151 'libraries': [
152 '<!@(pkg-config --libs Qt5Widgets Qt5Gui Qt5Core)',
153 ],
130 'cflags': ['<!@(pkg-config --cflags Qt5Widgets Qt5Gui Qt5Core)'],
131 'libraries': ['<!@(pkg-config --libs Qt5Widgets Qt5Gui Qt5Core)'],
154132 }, {
155 'libraries': [
156 '<!@(pkg-config --libs QtGui QtCore)',
157 ],
133 'cflags': ['<!@(pkg-config --cflags QtGui QtCore)'],
134 'libraries': ['<!@(pkg-config --libs QtGui QtCore)'],
158135 }],
159136 ],
160137 }],