diff --git a/Telegram/SourceFiles/qt_static_plugins.cpp b/Telegram/SourceFiles/qt_static_plugins.cpp index b975c7a8..5ad461a4 100644 --- a/Telegram/SourceFiles/qt_static_plugins.cpp +++ b/Telegram/SourceFiles/qt_static_plugins.cpp @@ -30,6 +30,7 @@ Q_IMPORT_PLUGIN(QGenericEnginePlugin) #elif defined Q_OS_LINUX // Q_OS_WIN | Q_OS_MAC Q_IMPORT_PLUGIN(QWebpPlugin) Q_IMPORT_PLUGIN(QXcbIntegrationPlugin) +Q_IMPORT_PLUGIN(QWaylandIntegrationPlugin) Q_IMPORT_PLUGIN(QConnmanEnginePlugin) Q_IMPORT_PLUGIN(QGenericEnginePlugin) Q_IMPORT_PLUGIN(QNetworkManagerEnginePlugin) diff --git a/Telegram/gyp/Telegram.gyp b/Telegram/gyp/Telegram.gyp index 31480945..193690e8 100644 --- a/Telegram/gyp/Telegram.gyp +++ b/Telegram/gyp/Telegram.gyp @@ -87,25 +87,21 @@ ], 'defines': [ - 'AL_LIBTYPE_STATIC', 'AL_ALEXT_PROTOTYPES', 'TGVOIP_USE_CXX11_LIB', ' /dev/null --libs xkbcommon xkbcommon-x11)', + ' /dev/null --libs harfbuzz)', + ' /dev/null --libs libpcre16)', + ' /dev/null --libs zlib)', + ' /dev/null --libs libpng16)', + ' /dev/null --libs libjpeg)', + ' /dev/null --libs libwebp)', + ' /dev/null --libs xcb-shm xcb-xfixes xcb-render xcb-renderutil xcb-sync xcb-randr xcb-xinerama xcb-xkb xcb-icccm xcb-image xcb-shape xcb-keysyms xcb-util)', + ' /dev/null --libs wayland-client wayland-cursor)', + '-lproxy', + '-lGL', ], 'include_dirs': [ '<(qt_loc)/mkspecs/linux-g++', ], 'ldflags': [ - '-static-libstdc++', '-pthread', '-rdynamic', ], diff --git a/Telegram/gyp/settings_linux.gypi b/Telegram/gyp/settings_linux.gypi index b93bace4..0f14aa1f 100644 --- a/Telegram/gyp/settings_linux.gypi +++ b/Telegram/gyp/settings_linux.gypi @@ -24,7 +24,6 @@ 'linux_common_flags': [ '-pipe', '-Wall', - '-Werror', '-W', '-fPIC', '-Wno-unused-variable', diff --git a/Telegram/gyp/telegram_linux.gypi b/Telegram/gyp/telegram_linux.gypi index f6918c22..36ef6ad3 100644 --- a/Telegram/gyp/telegram_linux.gypi +++ b/Telegram/gyp/telegram_linux.gypi @@ -22,11 +22,20 @@ 'variables': { 'not_need_gtk%': ' createPlatformIntegration -> QXcbIntegrationPlugin::create - #'xkbcommon', + 'liblzma', + 'openal', + 'libavformat', + 'libavcodec', + 'libswresample', + 'libswscale', + 'libavutil', + 'opus', + 'libva-x11', + 'libva-drm', + 'libva', + 'vdpau', + 'libdrm', + 'zlib', ], 'linux_path_ffmpeg%': '/usr/local', 'linux_path_openal%': '/usr/local', @@ -37,20 +46,11 @@ 'linux_path_range%': '/usr/local', }, 'include_dirs': [ - '/usr/local/include', - '<(linux_path_ffmpeg)/include', - '<(linux_path_openal)/include', - '<(linux_path_breakpad)/include/breakpad', '<(linux_path_opus_include)', - '<(linux_path_range)/include', + '/usr/include', ], 'library_dirs': [ - '/usr/local/lib', - '<(linux_path_ffmpeg)/lib', - '<(linux_path_openal)/lib', - '<(linux_path_va)/lib', - '<(linux_path_vdpau)/lib', - '<(linux_path_breakpad)/lib', + '/usr/lib', ], 'libraries': [ 'breakpad_client', @@ -58,23 +58,14 @@ 'ibusplatforminputcontextplugin', 'fcitxplatforminputcontextplugin', 'himeplatforminputcontextplugin', - 'liblzma.a', - 'libopenal.a', - 'libavformat.a', - 'libavcodec.a', - 'libswresample.a', - 'libswscale.a', - 'libavutil.a', - 'libopus.a', - 'libva-x11.a', - 'libva-drm.a', - 'libva.a', - 'libvdpau.a', - 'libdrm.a', - 'libz.a', -# ' /dev/null --libs <@(pkgconfig_libs))', + ' /dev/null --libs <@(pkgconfig_libs))', ], 'cflags_cc': [ + ' /dev/null --cflags appindicator-0.1)', + ' /dev/null --cflags gtk+-2.0)', + ' /dev/null --cflags glib-2.0)', + ' /dev/null --cflags dee-1.0)', + ' /dev/null --cflags <@(pkgconfig_libs))', '-Wno-strict-overflow', ], 'ldflags': [