Allow disabling single external libs.
This commit is contained in:
parent
81e27ccc0e
commit
9477283f34
3 changed files with 29 additions and 23 deletions
49
external/CMakeLists.txt
vendored
49
external/CMakeLists.txt
vendored
|
|
@ -4,32 +4,39 @@
|
|||
# For license and copyright information please follow this link:
|
||||
# https://github.com/desktop-app/legal/blob/master/LEGAL
|
||||
|
||||
add_subdirectory(auto_updates)
|
||||
add_subdirectory(crash_reports)
|
||||
macro(add_checked_subdirectory name)
|
||||
if (NOT DEFINED desktop_app_skip_libs
|
||||
OR NOT ${name} IN_LIST desktop_app_skip_libs)
|
||||
add_subdirectory(${name})
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
add_checked_subdirectory(auto_updates)
|
||||
add_checked_subdirectory(crash_reports)
|
||||
if (LINUX AND NOT DESKTOP_APP_DISABLE_DBUS_INTEGRATION)
|
||||
add_subdirectory(dbusmenu_qt)
|
||||
add_checked_subdirectory(dbusmenu_qt)
|
||||
endif()
|
||||
add_subdirectory(expected)
|
||||
add_subdirectory(ffmpeg)
|
||||
add_subdirectory(gsl)
|
||||
add_checked_subdirectory(expected)
|
||||
add_checked_subdirectory(ffmpeg)
|
||||
add_checked_subdirectory(gsl)
|
||||
if (add_hunspell_library)
|
||||
add_subdirectory(hunspell)
|
||||
add_checked_subdirectory(hunspell)
|
||||
endif()
|
||||
add_subdirectory(iconv)
|
||||
add_subdirectory(lz4)
|
||||
add_subdirectory(openal)
|
||||
add_subdirectory(openssl)
|
||||
add_subdirectory(opus)
|
||||
add_subdirectory(qt)
|
||||
add_subdirectory(qr_code_generator)
|
||||
add_subdirectory(ranges)
|
||||
add_subdirectory(rlottie)
|
||||
add_checked_subdirectory(iconv)
|
||||
add_checked_subdirectory(lz4)
|
||||
add_checked_subdirectory(openal)
|
||||
add_checked_subdirectory(openssl)
|
||||
add_checked_subdirectory(opus)
|
||||
add_checked_subdirectory(qt)
|
||||
add_checked_subdirectory(qr_code_generator)
|
||||
add_checked_subdirectory(ranges)
|
||||
add_checked_subdirectory(rlottie)
|
||||
if (APPLE)
|
||||
add_subdirectory(sp_media_key_tap)
|
||||
add_checked_subdirectory(sp_media_key_tap)
|
||||
endif()
|
||||
if (LINUX AND NOT DESKTOP_APP_DISABLE_DBUS_INTEGRATION)
|
||||
add_subdirectory(statusnotifieritem)
|
||||
add_checked_subdirectory(statusnotifieritem)
|
||||
endif()
|
||||
add_subdirectory(variant)
|
||||
add_subdirectory(xxhash)
|
||||
add_subdirectory(zlib)
|
||||
add_checked_subdirectory(variant)
|
||||
add_checked_subdirectory(xxhash)
|
||||
add_checked_subdirectory(zlib)
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ INTERFACE
|
|||
DbgHelp
|
||||
Rstrtmgr
|
||||
Crypt32
|
||||
Normaliz
|
||||
)
|
||||
|
||||
if (build_winstore)
|
||||
|
|
|
|||
|
|
@ -93,5 +93,3 @@ if (NOT APPLE OR build_osx)
|
|||
else()
|
||||
get_filename_component(libs_loc "../Libraries/macos" REALPATH)
|
||||
endif()
|
||||
get_filename_component(third_party_loc "Telegram/ThirdParty" REALPATH)
|
||||
get_filename_component(submodules_loc "Telegram" REALPATH)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue