Line 0
Link Here
|
|
|
1 |
--- Telegram/gyp/qt_rcc.gypi.orig 2017-09-05 17:38:38 UTC |
2 |
+++ Telegram/gyp/qt_rcc.gypi |
3 |
@@ -28,7 +28,7 @@ |
4 |
'<(SHARED_INTERMEDIATE_DIR)/<(_target_name)/qrc/qrc_<(RULE_INPUT_ROOT).cpp', |
5 |
], |
6 |
'action': [ |
7 |
- '<(qt_loc)/bin/rcc<(exe_ext)', |
8 |
+ '%%LOCALBASE%%/bin/rcc', |
9 |
'-name', '<(RULE_INPUT_ROOT)', |
10 |
'-no-compress', |
11 |
'<(RULE_INPUT_PATH)', |
12 |
--- Telegram/gyp/qt.gypi.orig 2017-09-05 17:38:38 UTC |
13 |
+++ Telegram/gyp/qt.gypi |
14 |
@@ -27,25 +27,21 @@ |
15 |
[ 'build_macold', { |
16 |
'qt_version%': '5.3.2', |
17 |
}, { |
18 |
- 'qt_version%': '5.6.2', |
19 |
+ 'qt_version%': '%%QT_VERSION%%', |
20 |
}] |
21 |
], |
22 |
}, |
23 |
'qt_libs': [ |
24 |
- 'qwebp', |
25 |
- 'Qt5PrintSupport', |
26 |
- 'Qt5PlatformSupport', |
27 |
'Qt5Network', |
28 |
'Qt5Widgets', |
29 |
'Qt5Gui', |
30 |
- 'qtharfbuzzng', |
31 |
], |
32 |
'qt_version%': '<(qt_version)', |
33 |
'conditions': [ |
34 |
[ 'build_macold', { |
35 |
'linux_path_qt%': '/usr/local/macold/Qt-<(qt_version)', |
36 |
}, { |
37 |
- 'linux_path_qt%': '/usr/local/tdesktop/Qt-<(qt_version)', |
38 |
+ 'linux_path_qt%': '%%LOCALBASE%%/lib/qt', |
39 |
}] |
40 |
] |
41 |
}, |
42 |
@@ -85,32 +81,12 @@ |
43 |
], |
44 |
}], |
45 |
[ 'build_linux', { |
46 |
- 'qt_lib_prefix': 'lib', |
47 |
- 'qt_lib_debug_postfix': '.a', |
48 |
- 'qt_lib_release_postfix': '.a', |
49 |
+ 'qt_lib_prefix': '', |
50 |
+ 'qt_lib_debug_postfix': '', |
51 |
+ 'qt_lib_release_postfix': '', |
52 |
'qt_libs': [ |
53 |
- 'qxcb', |
54 |
- 'Qt5XcbQpa', |
55 |
- 'qconnmanbearer', |
56 |
- 'qgenericbearer', |
57 |
- 'qnmbearer', |
58 |
'<@(qt_libs)', |
59 |
- 'Qt5DBus', |
60 |
'Qt5Core', |
61 |
- 'qtpcre', |
62 |
- 'Xi', |
63 |
- 'Xext', |
64 |
- 'Xfixes', |
65 |
- 'SM', |
66 |
- 'ICE', |
67 |
- 'fontconfig', |
68 |
- 'expat', |
69 |
- 'freetype', |
70 |
- 'z', |
71 |
- 'xcb-shm', |
72 |
- 'xcb-xfixes', |
73 |
- 'xcb-render', |
74 |
- 'xcb-static', |
75 |
], |
76 |
}], |
77 |
], |
78 |
@@ -140,11 +116,6 @@ |
79 |
# '<!@(python <(DEPTH)/list_sources.py [sources] <(qt_moc_list_sources_arg))' |
80 |
# where [sources] contains all your source files |
81 |
'qt_moc_list_sources_arg': '--moc-prefix SHARED_INTERMEDIATE_DIR/<(_target_name)/moc/moc_', |
82 |
- |
83 |
- 'linux_path_xkbcommon%': '/usr/local', |
84 |
- 'linux_lib_ssl%': '/usr/local/ssl/lib/libssl.a', |
85 |
- 'linux_lib_crypto%': '/usr/local/ssl/lib/libcrypto.a', |
86 |
- 'linux_lib_icu%': '/usr/lib/libicutu.a /usr/lib/libicui18n.a /usr/lib/libicuuc.a /usr/lib/libicudata.a', |
87 |
}, |
88 |
|
89 |
'configurations': { |
90 |
@@ -193,15 +164,17 @@ |
91 |
}, |
92 |
|
93 |
'include_dirs': [ |
94 |
- '<(qt_loc)/include', |
95 |
- '<(qt_loc)/include/QtCore', |
96 |
- '<(qt_loc)/include/QtGui', |
97 |
- '<(qt_loc)/include/QtCore/<(qt_version)', |
98 |
- '<(qt_loc)/include/QtGui/<(qt_version)', |
99 |
- '<(qt_loc)/include/QtCore/<(qt_version)/QtCore', |
100 |
- '<(qt_loc)/include/QtGui/<(qt_version)/QtGui', |
101 |
+ '%%LOCALBASE%%/include/qt5', |
102 |
+ '%%LOCALBASE%%/include/qt5/QtCore', |
103 |
+ '%%LOCALBASE%%/include/qt5/QtGui', |
104 |
+ '%%LOCALBASE%%/include/qt5/QtCore/<(qt_version)', |
105 |
+ '%%LOCALBASE%%/include/qt5/QtGui/<(qt_version)', |
106 |
+ '%%LOCALBASE%%/include/qt5/QtCore/<(qt_version)/QtCore', |
107 |
+ '%%LOCALBASE%%/include/qt5/QtGui/<(qt_version)/QtGui', |
108 |
], |
109 |
'library_dirs': [ |
110 |
+ '%%LOCALBASE%%/lib', |
111 |
+ '%%LOCALBASE%%/lib/qt5/', |
112 |
'<(qt_loc)/lib', |
113 |
'<(qt_loc)/plugins', |
114 |
'<(qt_loc)/plugins/bearer', |
115 |
@@ -220,25 +193,20 @@ |
116 |
'<(qt_loc)/plugins/platforminputcontexts', |
117 |
], |
118 |
'libraries': [ |
119 |
- '<(linux_path_xkbcommon)/lib/libxkbcommon.a', |
120 |
'<@(qt_libs_release)', |
121 |
- '<(linux_lib_ssl)', |
122 |
- '<(linux_lib_crypto)', |
123 |
- '<!@(python -c "for s in \'<(linux_lib_icu)\'.split(\' \'): print(s)")', |
124 |
+ '-lcrypto', |
125 |
'-lxcb', |
126 |
'-lX11', |
127 |
'-lX11-xcb', |
128 |
'-ldbus-1', |
129 |
- '-ldl', |
130 |
'-lgthread-2.0', |
131 |
'-lglib-2.0', |
132 |
'-lpthread', |
133 |
], |
134 |
'include_dirs': [ |
135 |
- '<(qt_loc)/mkspecs/linux-g++', |
136 |
+ '%%LOCALBASE%%/lib/qt5/mkspecs/freebsd-clang', |
137 |
], |
138 |
'ldflags': [ |
139 |
- '-static-libstdc++', |
140 |
'-pthread', |
141 |
'-g', |
142 |
'-rdynamic', |
143 |
@@ -260,7 +228,7 @@ |
144 |
'<(SHARED_INTERMEDIATE_DIR)/<(_target_name)/moc/moc_<(RULE_INPUT_ROOT).cpp', |
145 |
], |
146 |
'action': [ |
147 |
- '<(qt_loc)/bin/moc<(exe_ext)', |
148 |
+ '%%LOCALBASE%%/bin/moc', |
149 |
|
150 |
# Silence "Note: No relevant classes found. No output generated." |
151 |
'--no-notes', |
152 |
--- Telegram/gyp/telegram_linux.gypi.orig 2017-09-05 17:38:38 UTC |
153 |
+++ Telegram/gyp/telegram_linux.gypi |
154 |
@@ -33,7 +33,7 @@ |
155 |
'linux_path_va%': '/usr/local', |
156 |
'linux_path_vdpau%': '/usr/local', |
157 |
'linux_path_breakpad%': '<(libs_loc)/breakpad', |
158 |
- 'linux_path_opus_include%': '<(libs_loc)/opus/include', |
159 |
+ 'linux_path_opus_include%': '%%LOCALBASE%%/include/opus', |
160 |
}, |
161 |
'include_dirs': [ |
162 |
'/usr/local/include', |
163 |
@@ -52,48 +52,34 @@ |
164 |
'<(linux_path_breakpad)/lib', |
165 |
], |
166 |
'libraries': [ |
167 |
- 'breakpad_client', |
168 |
- 'composeplatforminputcontextplugin', |
169 |
- 'ibusplatforminputcontextplugin', |
170 |
- 'fcitxplatforminputcontextplugin', |
171 |
- 'himeplatforminputcontextplugin', |
172 |
- 'liblzma.a', |
173 |
- 'libopenal.a', |
174 |
- 'libavformat.a', |
175 |
- 'libavcodec.a', |
176 |
- 'libswresample.a', |
177 |
- 'libswscale.a', |
178 |
- 'libavutil.a', |
179 |
- 'libopus.a', |
180 |
- 'libva-x11.a', |
181 |
- 'libva-drm.a', |
182 |
- 'libva.a', |
183 |
- 'libvdpau.a', |
184 |
- 'libdrm.a', |
185 |
- 'libz.a', |
186 |
+ 'openal', |
187 |
+ 'avformat', |
188 |
+ 'avcodec', |
189 |
+ 'swresample', |
190 |
+ 'swscale', |
191 |
+ 'avutil', |
192 |
+ 'minizip', |
193 |
+ 'opus', |
194 |
+ 'z', |
195 |
# '<!(pkg-config 2> /dev/null --libs <@(pkgconfig_libs))', |
196 |
], |
197 |
'cflags_cc': [ |
198 |
- '<!(pkg-config 2> /dev/null --cflags appindicator-0.1)', |
199 |
- '<!(pkg-config 2> /dev/null --cflags gtk+-2.0)', |
200 |
- '<!(pkg-config 2> /dev/null --cflags glib-2.0)', |
201 |
+# '<!(pkg-config 2> /dev/null --cflags appindicator-0.1)', |
202 |
+ '<!(pkg-config 2> /dev/null --cflags gtk+-3.0)', |
203 |
'<!(pkg-config 2> /dev/null --cflags dee-1.0)', |
204 |
], |
205 |
'configurations': { |
206 |
'Release': { |
207 |
'cflags': [ |
208 |
- '-Ofast', |
209 |
- '-flto', |
210 |
+ %%CFLAGS%% |
211 |
'-fno-strict-aliasing', |
212 |
], |
213 |
'cflags_cc': [ |
214 |
- '-Ofast', |
215 |
- '-flto', |
216 |
+ %%CXXFLAGS%% |
217 |
'-fno-strict-aliasing', |
218 |
], |
219 |
'ldflags': [ |
220 |
- '-Ofast', |
221 |
- '-flto', |
222 |
+ %%LDFLAGS%% |
223 |
], |
224 |
}, |
225 |
}, |
226 |
--- Telegram/gyp/Telegram.gyp.orig 2017-09-05 17:38:38 UTC |
227 |
+++ Telegram/gyp/Telegram.gyp |
228 |
@@ -80,12 +80,10 @@ |
229 |
'codegen.gyp:codegen_numbers', |
230 |
'codegen.gyp:codegen_style', |
231 |
'tests/tests.gyp:tests', |
232 |
- 'utils.gyp:Updater', |
233 |
'../ThirdParty/libtgvoip/libtgvoip.gyp:libtgvoip', |
234 |
], |
235 |
|
236 |
'defines': [ |
237 |
- 'AL_LIBTYPE_STATIC', |
238 |
'AL_ALEXT_PROTOTYPES', |
239 |
'TGVOIP_USE_CXX11_LIB', |
240 |
'<!@(python -c "for s in \'<(build_defines)\'.split(\',\'): print(s)")', |
241 |
@@ -94,14 +92,7 @@ |
242 |
'include_dirs': [ |
243 |
'<(src_loc)', |
244 |
'<(SHARED_INTERMEDIATE_DIR)', |
245 |
- '<(libs_loc)/breakpad/src', |
246 |
- '<(libs_loc)/lzma/C', |
247 |
- '<(libs_loc)/libexif-0.6.20', |
248 |
- '<(libs_loc)/zlib-1.2.8', |
249 |
- '<(libs_loc)/ffmpeg', |
250 |
- '<(libs_loc)/openal-soft/include', |
251 |
- '<(libs_loc)/opus/include', |
252 |
- '<(minizip_loc)', |
253 |
+ '%%LOCALBASE%%/include/minizip', |
254 |
'<(sp_media_key_tap_loc)', |
255 |
'<(emoji_suggestions_loc)', |
256 |
'<(submodules_loc)/GSL/include', |
257 |
@@ -113,7 +104,7 @@ |
258 |
'<!@(<(list_sources_command) <(qt_moc_list_sources_arg))', |
259 |
], |
260 |
'sources!': [ |
261 |
- '<!@(<(list_sources_command) <(qt_moc_list_sources_arg) --exclude_for <(build_os))', |
262 |
+ '<!@(<(list_sources_command) <(qt_moc_list_sources_arg) --exclude_for linux)', |
263 |
], |
264 |
'conditions': [ |
265 |
[ '"<(official_build_target)" != ""', { |
266 |
--- Telegram/ThirdParty/libtgvoip/libtgvoip.gyp.orig 2017-07-06 17:16:18 UTC |
267 |
+++ Telegram/ThirdParty/libtgvoip/libtgvoip.gyp |
268 |
@@ -13,11 +13,12 @@ |
269 |
'variables': { |
270 |
'tgvoip_src_loc': '.', |
271 |
'official_build_target%': '', |
272 |
- 'linux_path_opus_include%': '<(DEPTH)/../../../Libraries/opus/include', |
273 |
+ 'linux_path_opus_include%': '%%LOCALBASE%%/include/opus', |
274 |
}, |
275 |
'include_dirs': [ |
276 |
'<(tgvoip_src_loc)/webrtc_dsp', |
277 |
'<(linux_path_opus_include)', |
278 |
+ '%%LOCALBASE%%/include/', |
279 |
], |
280 |
'direct_dependent_settings': { |
281 |
'include_dirs': [ |
282 |
@@ -371,12 +372,13 @@ |
283 |
}, |
284 |
], |
285 |
[ |
286 |
- '"<(OS)" == "linux"', { |
287 |
+ '"<(OS)" == "freebsd"', { |
288 |
'defines': [ |
289 |
'WEBRTC_POSIX', |
290 |
], |
291 |
'cflags_cc': [ |
292 |
'-msse2', |
293 |
+ '-std=c++11', |
294 |
], |
295 |
'direct_dependent_settings': { |
296 |
'libraries': [ |