33 | 33 |
{
|
34 | 34 |
'conditions': [['use_qt=="YES"', {
|
35 | 35 |
|
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)'],
|
60 | 36 |
# link settings
|
61 | 37 |
# TODO(yukawa): Use 'link_settings' so that linker settings can be passed
|
62 | 38 |
# to executables and loadable modules.
|
63 | 39 |
'conditions': [
|
64 | 40 |
['qt_dir and target_platform=="Windows"', {
|
|
41 |
'include_dirs': ['<(qt_dir)/include'],
|
65 | 42 |
'configurations': {
|
66 | 43 |
'Debug_Base': {
|
67 | 44 |
'msvs_settings': {
|
|
114 | 91 |
['target_platform=="Mac"', {
|
115 | 92 |
'conditions': [
|
116 | 93 |
['qt_dir', {
|
|
94 |
'include_dirs': ['<(qt_dir)/include'],
|
|
95 |
'xcode_settings': {
|
|
96 |
'WARNING_CFLAGS': ['-Wno-inconsistent-missing-override'],
|
|
97 |
},
|
117 | 98 |
# Supposing Qt libraries in qt_dir will be built as static libraries.
|
118 | 99 |
'link_settings': {
|
119 | 100 |
'xcode_settings': {
|
120 | |
'LIBRARY_SEARCH_PATHS': [
|
121 | |
'<(qt_dir)/lib',
|
122 | |
],
|
|
101 |
'LIBRARY_SEARCH_PATHS': ['<(qt_dir)/lib'],
|
123 | 102 |
},
|
124 | 103 |
'mac_framework_dirs': [
|
125 | 104 |
'<(qt_dir)/lib',
|
|
148 | 127 |
['target_platform=="Linux"', {
|
149 | 128 |
'conditions': [
|
150 | 129 |
['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)'],
|
154 | 132 |
}, {
|
155 | |
'libraries': [
|
156 | |
'<!@(pkg-config --libs QtGui QtCore)',
|
157 | |
],
|
|
133 |
'cflags': ['<!@(pkg-config --cflags QtGui QtCore)'],
|
|
134 |
'libraries': ['<!@(pkg-config --libs QtGui QtCore)'],
|
158 | 135 |
}],
|
159 | 136 |
],
|
160 | 137 |
}],
|