diff --git a/Telegram/gyp/PrecompiledHeader.cmake b/Telegram/gyp/PrecompiledHeader.cmake index 8b899e4676..fc189e4a1b 100644 --- a/Telegram/gyp/PrecompiledHeader.cmake +++ b/Telegram/gyp/PrecompiledHeader.cmake @@ -102,6 +102,8 @@ function(add_precompiled_header _target _input) OUTPUT "${_pchfile}" COMMAND "${CMAKE_COMMAND}" -E copy "${_pch_header}" "${_pchfile}" DEPENDS "${_pch_header}" + IMPLICIT_DEPENDS CXX "${_pch_header}" + IMPLICIT_DEPENDS C "${_pch_header}" COMMENT "Updating ${_name}") if(_source_for_c_flags) @@ -112,6 +114,7 @@ function(add_precompiled_header _target _input) OUTPUT "${_output_c}" COMMAND "${CMAKE_C_COMPILER}" ${_compiler_FLAGS} -x c-header -o "${_output_c}" -c "${_pchfile}" DEPENDS "${_pchfile}" "${_pch_c_flags_file}" + IMPLICIT_DEPENDS C "${_pch_header}" COMMENT "Precompiling ${_name} for ${_target} (C)") endif() if(_source_for_cpp_flags) @@ -122,6 +125,7 @@ function(add_precompiled_header _target _input) OUTPUT "${_output_cxx}" COMMAND "${CMAKE_CXX_COMPILER}" ${_compiler_FLAGS} -x c++-header -o "${_output_cxx}" -c "${_pchfile}" DEPENDS "${_pchfile}" "${_pch_cpp_flags_file}" + IMPLICIT_DEPENDS CXX "${_pch_header}" COMMENT "Precompiling ${_name} for ${_target} (C++)") endif() diff --git a/Telegram/gyp/qt.gypi b/Telegram/gyp/qt.gypi index ea6f0f55b7..b82f83325a 100644 --- a/Telegram/gyp/qt.gypi +++ b/Telegram/gyp/qt.gypi @@ -101,7 +101,6 @@ 'fontconfig', 'expat', 'freetype', - 'xcb', 'xcb-shm', 'xcb-xfixes', 'xcb-render', @@ -202,12 +201,10 @@ ], 'conditions': [ [ 'build_linux', { - 'library_dirs': [ - '<(qt_loc)/plugins/platforms/xcb/xcb-static', - ], 'libraries': [ '/usr/local/lib/libxkbcommon.a', '<@(qt_libs_release)', + 'xcb', 'X11', 'X11-xcb', 'dbus-1',