diff --git a/Telegram/gyp/Telegram.gyp b/Telegram/gyp/Telegram.gyp index 2503f1e..da2fe9d 100644 --- a/Telegram/gyp/Telegram.gyp +++ b/Telegram/gyp/Telegram.gyp @@ -79,8 +79,11 @@ ], 'defines': [ - 'AL_LIBTYPE_STATIC', ' /dev/null --libs xkbcommon xkbcommon-x11)', + ' /dev/null --libs libpcre16)', + ' /dev/null --libs zlib)', + ' /dev/null --libs libpng16)', + ' /dev/null --libs libwebp)', + ' /dev/null --libs harfbuzz)', + ' /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)', ], 'include_dirs': [ '<(qt_loc)/mkspecs/linux-g++', ], 'ldflags': [ - '-static-libstdc++', '-pthread', '-g', '-rdynamic', diff --git a/Telegram/gyp/telegram_linux.gypi b/Telegram/gyp/telegram_linux.gypi index b42e744..d791379 100644 --- a/Telegram/gyp/telegram_linux.gypi +++ b/Telegram/gyp/telegram_linux.gypi @@ -21,11 +21,20 @@ 'conditions': [[ 'build_linux', { 'variables': { 'pkgconfig_libs': [ -# In order to work libxkbcommon must be linked statically, -# PKGCONFIG links it like "-L/usr/local/lib -lxkbcommon" -# which makes a dynamic link which leads to segfault in -# QApplication() -> createPlatformIntegration -> QXcbIntegrationPlugin::create - #'xkbcommon', + 'liblzma', + 'openal', + 'libavformat', + 'libavcodec', + 'libswresample', + 'libswscale', + 'libavutil', + 'opus', + 'libva-x11', + 'libva-drm', + 'libva', + 'libdrm', + 'zlib', + ], 'linux_path_ffmpeg%': '/usr/local', 'linux_path_openal%': '/usr/local', @@ -35,46 +44,26 @@ 'linux_path_breakpad%': '<(libs_loc)/breakpad', }, 'include_dirs': [ - '/usr/local/include', - '<(linux_path_ffmpeg)/include', - '<(linux_path_openal)/include', + '/usr/include', '<(linux_path_breakpad)/include/breakpad', ], 'library_dirs': [ - '/usr/local/lib', - '<(linux_path_ffmpeg)/lib', - '<(linux_path_openal)/lib', - '<(linux_path_libexif_lib)', - '<(linux_path_va)/lib', - '<(linux_path_vdpau)/lib', - '<(linux_path_breakpad)/lib', + '/usr/lib', + '<(linux_path_breakpad)/src/client/linux', ], 'libraries': [ - 'breakpad_client', 'composeplatforminputcontextplugin', 'ibusplatforminputcontextplugin', 'fcitxplatforminputcontextplugin', - '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))', + 'libbreakpad_client.a', ], '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))', ], 'configurations': { 'Release': {