mirror of https://github.com/procxx/kepka.git
Fixed build under Fedora using rpmbuild and mock. Thanks to AUR packagers for this.
From: Vitaly Zaitsev <vitaly@easycoding.org> Date: Wed, 1 Feb 2017 15:53:16 +0100 Source: RussianFedora/telegram-desktop
This commit is contained in:
parent
63669c1612
commit
dd0fa1c33e
|
@ -89,19 +89,17 @@
|
|||
'AL_LIBTYPE_STATIC',
|
||||
'AL_ALEXT_PROTOTYPES',
|
||||
'TGVOIP_USE_CXX11_LIB',
|
||||
'<!@(python -c "for s in \'<(build_defines)\'.split(\',\'): print(s)")',
|
||||
'__STDC_FORMAT_MACROS',
|
||||
'TDESKTOP_DISABLE_AUTOUPDATE',
|
||||
'TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME',
|
||||
'TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION',
|
||||
'TDESKTOP_DISABLE_CRASH_REPORTS',
|
||||
],
|
||||
|
||||
'include_dirs': [
|
||||
'<(src_loc)',
|
||||
'<(SHARED_INTERMEDIATE_DIR)',
|
||||
'<(libs_loc)/breakpad/src',
|
||||
'<(libs_loc)/lzma/C',
|
||||
'<(libs_loc)/libexif-0.6.20',
|
||||
'<(libs_loc)/zlib',
|
||||
'<(libs_loc)/ffmpeg',
|
||||
'<(libs_loc)/openal-soft/include',
|
||||
'<(libs_loc)/opus/include',
|
||||
'<(minizip_loc)',
|
||||
'<(sp_media_key_tap_loc)',
|
||||
'<(emoji_suggestions_loc)',
|
||||
|
|
|
@ -38,14 +38,13 @@
|
|||
'Qt5Network',
|
||||
'Qt5Widgets',
|
||||
'Qt5Gui',
|
||||
'qtharfbuzzng',
|
||||
],
|
||||
'qt_version%': '<(qt_version)',
|
||||
'conditions': [
|
||||
[ 'build_macold', {
|
||||
'linux_path_qt%': '/usr/local/macold/Qt-<(qt_version)',
|
||||
}, {
|
||||
'linux_path_qt%': '/usr/local/tdesktop/Qt-<(qt_version)',
|
||||
'linux_path_qt%': '../../../qt',
|
||||
}]
|
||||
]
|
||||
},
|
||||
|
@ -97,20 +96,6 @@
|
|||
'<@(qt_libs)',
|
||||
'Qt5DBus',
|
||||
'Qt5Core',
|
||||
'qtpcre',
|
||||
'Xi',
|
||||
'Xext',
|
||||
'Xfixes',
|
||||
'SM',
|
||||
'ICE',
|
||||
'fontconfig',
|
||||
'expat',
|
||||
'freetype',
|
||||
'z',
|
||||
'xcb-shm',
|
||||
'xcb-xfixes',
|
||||
'xcb-render',
|
||||
'xcb-static',
|
||||
],
|
||||
}],
|
||||
],
|
||||
|
@ -140,11 +125,6 @@
|
|||
# '<!@(python <(DEPTH)/list_sources.py [sources] <(qt_moc_list_sources_arg))'
|
||||
# where [sources] contains all your source files
|
||||
'qt_moc_list_sources_arg': '--moc-prefix SHARED_INTERMEDIATE_DIR/<(_target_name)/moc/moc_',
|
||||
|
||||
'linux_path_xkbcommon%': '/usr/local',
|
||||
'linux_lib_ssl%': '/usr/local/ssl/lib/libssl.a',
|
||||
'linux_lib_crypto%': '/usr/local/ssl/lib/libcrypto.a',
|
||||
'linux_lib_icu%': '/usr/lib/libicutu.a /usr/lib/libicui18n.a /usr/lib/libicuuc.a /usr/lib/libicudata.a',
|
||||
},
|
||||
|
||||
'configurations': {
|
||||
|
@ -221,25 +201,41 @@
|
|||
'<(qt_loc)/plugins/platforminputcontexts',
|
||||
],
|
||||
'libraries': [
|
||||
'<(linux_path_xkbcommon)/lib/libxkbcommon.a',
|
||||
'<@(qt_libs_release)',
|
||||
'<(linux_lib_ssl)',
|
||||
'<(linux_lib_crypto)',
|
||||
'<!@(python -c "for s in \'<(linux_lib_icu)\'.split(\' \'): print(s)")',
|
||||
'-lxcb',
|
||||
'-lX11',
|
||||
'-lX11-xcb',
|
||||
'-ldbus-1',
|
||||
'-ldl',
|
||||
'-lgthread-2.0',
|
||||
'-lglib-2.0',
|
||||
'-lpthread',
|
||||
'z',
|
||||
'pcre16',
|
||||
'harfbuzz',
|
||||
'icuuc',
|
||||
'icutu',
|
||||
'icui18n',
|
||||
'png16',
|
||||
'jpeg',
|
||||
'xcb',
|
||||
'xcb-shm',
|
||||
'xcb-xfixes',
|
||||
'xcb-render',
|
||||
'X11',
|
||||
'X11-xcb',
|
||||
'GL',
|
||||
'dbus-1',
|
||||
'dl',
|
||||
'gthread-2.0',
|
||||
'glib-2.0',
|
||||
'pthread',
|
||||
'ssl',
|
||||
'crypto',
|
||||
'Xi',
|
||||
'Xext',
|
||||
'SM',
|
||||
'ICE',
|
||||
'fontconfig',
|
||||
'expat',
|
||||
'freetype',
|
||||
],
|
||||
'include_dirs': [
|
||||
'<(qt_loc)/mkspecs/linux-g++',
|
||||
],
|
||||
'ldflags': [
|
||||
'-static-libstdc++',
|
||||
'-pthread',
|
||||
'-g',
|
||||
'-rdynamic',
|
||||
|
|
|
@ -28,29 +28,19 @@
|
|||
# QApplication() -> createPlatformIntegration -> QXcbIntegrationPlugin::create
|
||||
#'xkbcommon',
|
||||
],
|
||||
'linux_path_ffmpeg%': '/usr/local',
|
||||
'linux_path_openal%': '/usr/local',
|
||||
'linux_path_libexif_lib%': '<(libs_loc)/libexif-0.6.20/libexif/.libs',
|
||||
'linux_path_va%': '/usr/local',
|
||||
'linux_path_vdpau%': '/usr/local',
|
||||
'linux_path_breakpad%': '<(libs_loc)/breakpad',
|
||||
'linux_path_opus_include%': '<(libs_loc)/opus/include',
|
||||
},
|
||||
'include_dirs': [
|
||||
'/usr/local/include',
|
||||
'<(linux_path_ffmpeg)/include',
|
||||
'<(linux_path_openal)/include',
|
||||
'/usr/include',
|
||||
'/usr/include/ffmpeg',
|
||||
'<(linux_path_breakpad)/include/breakpad',
|
||||
'<(linux_path_opus_include)',
|
||||
],
|
||||
'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/lib64',
|
||||
'/usr/lib',
|
||||
'<(linux_path_breakpad)/src/client/linux',
|
||||
],
|
||||
'libraries': [
|
||||
'breakpad_client',
|
||||
|
@ -58,20 +48,34 @@
|
|||
'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',
|
||||
'xkbcommon',
|
||||
'xkbcommon-x11',
|
||||
'xcb-randr',
|
||||
'xcb-xinerama',
|
||||
'xcb-xkb',
|
||||
'xcb-shape',
|
||||
'xcb-icccm',
|
||||
'xcb-sync',
|
||||
'xcb-keysyms',
|
||||
'xcb-image',
|
||||
'xcb-render-util',
|
||||
'wayland-client',
|
||||
'wayland-cursor',
|
||||
'proxy',
|
||||
'lzma',
|
||||
'openal',
|
||||
'avformat',
|
||||
'avcodec',
|
||||
'swresample',
|
||||
'swscale',
|
||||
'avutil',
|
||||
'opus',
|
||||
'va-x11',
|
||||
'va-drm',
|
||||
'va',
|
||||
'vdpau',
|
||||
'z',
|
||||
'webp',
|
||||
# '<!(pkg-config 2> /dev/null --libs <@(pkgconfig_libs))',
|
||||
],
|
||||
'conditions': [['not_need_gtk!="True"', {
|
||||
|
|
|
@ -130,11 +130,11 @@
|
|||
],
|
||||
}, {
|
||||
'include_dirs': [
|
||||
'/usr/local/include',
|
||||
'<(libs_loc)/openssl-xcode/include'
|
||||
'/usr/include',
|
||||
],
|
||||
'library_dirs': [
|
||||
'/usr/local/lib',
|
||||
'/usr/lib64',
|
||||
'/usr/lib',
|
||||
],
|
||||
}]
|
||||
],
|
||||
|
@ -152,11 +152,11 @@
|
|||
],
|
||||
}, {
|
||||
'include_dirs': [
|
||||
'/usr/local/include',
|
||||
'<(libs_loc)/openssl-xcode/include'
|
||||
'/usr/include',
|
||||
],
|
||||
'library_dirs': [
|
||||
'/usr/local/lib',
|
||||
'/usr/lib64',
|
||||
'/usr/lib',
|
||||
],
|
||||
}]
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue