summarylogtreecommitdiffstats
path: root/Reduce-number-of-libraries.patch
blob: a782e1c730c404208332c2af3bbfdf0d3dd0e19c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
Description: Remove linking of unused libraries
Author: Nicholas Guriev <guriev-ns@ya.ru>
Last-Update: 2017-02-18

diff --git a/Telegram/gyp/Telegram.gyp b/Telegram/gyp/Telegram.gyp
index 603264b..830df69 100644
--- a/Telegram/gyp/Telegram.gyp
+++ b/Telegram/gyp/Telegram.gyp
@@ -76,7 +76,6 @@
       'codegen.gyp:codegen_style',
       'codegen.gyp:codegen_numbers',
       'codegen.gyp:MetaLang',
-      'utils.gyp:Updater',
     ],
 
     'defines': [
diff --git a/Telegram/gyp/qt.gypi b/Telegram/gyp/qt.gypi
index 1db05de..d322153 100644
--- a/Telegram/gyp/qt.gypi
+++ b/Telegram/gyp/qt.gypi
@@ -32,6 +32,5 @@
             ],
           },
           'qt_libs': [
-            'Qt5PrintSupport',
             'Qt5Network',
             'Qt5Widgets',
@@ -81,21 +80,8 @@
             'qt_lib_debug_postfix': '',
             'qt_lib_release_postfix': '',
             'qt_libs': [
-              'Qt5XcbQpa',
               '<@(qt_libs)',
-              'Qt5DBus',
               'Qt5Core',
-              'Xi',
-              'Xext',
-              'Xfixes',
-              'SM',
-              'ICE',
-              'fontconfig',
-              'expat',
-              'freetype',
-              'xcb-shm',
-              'xcb-xfixes',
-              'xcb-render',
             ],
           }],
         ],
@@ -120,11 +106,6 @@
         'qt_loc': '<(qt_loc_unix)',
       }],
     ],
-
-    'linux_path_xkbcommon%': '/usr/local',
-    'linux_lib_ssl%': 'ssl',
-    'linux_lib_crypto%': 'crypto',
-    'linux_lib_icu%': 'icutu icui18n icuuc icudata',
   },
 
   'configurations': {
@@ -200,17 +181,9 @@
         '<(qt_loc)/plugins/platforminputcontexts',
       ],
       'libraries': [
-        'xkbcommon',
         '<@(qt_libs_release)',
-        '<(linux_lib_ssl)',
-        '<(linux_lib_crypto)',
-        '<!@(python -c "for s in \'<(linux_lib_icu)\'.split(\' \'): print(s)")',
-        'xcb',
+        'crypto',
         'X11',
-        'X11-xcb',
-        'dbus-1',
-        'dl',
-        'gthread-2.0',
         'glib-2.0',
         'pthread',
       ],
diff --git a/Telegram/gyp/telegram_linux.gypi b/Telegram/gyp/telegram_linux.gypi
index 29386a9..63d26e4 100644
--- a/Telegram/gyp/telegram_linux.gypi
+++ b/Telegram/gyp/telegram_linux.gypi
@@ -50,19 +50,12 @@
       '<(linux_path_breakpad)/lib',
     ],
     'libraries': [
-      'lzma',
       'openal',
       'avformat',
       'avcodec',
       'swresample',
       'swscale',
       'avutil',
-      'opus',
-      'va-x11',
-      'va-drm',
-      'va',
-      'vdpau',
-      'drm',
       'z',
       'minizip',
 #      '<!(pkg-config 2> /dev/null --libs <@(pkgconfig_libs))',