1
0
Fork 0

Add a check for DESKTOP_APP_DISABLE_AUTOUPDATE in external_auto_updates

Like that done for external_crash_reports
This commit is contained in:
Ilya Fedin 2021-09-07 22:34:23 +04:00 committed by John Preston
parent 95ee188c7b
commit 98c52815e9
2 changed files with 15 additions and 12 deletions

View file

@ -7,16 +7,18 @@
add_library(external_auto_updates INTERFACE IMPORTED GLOBAL) add_library(external_auto_updates INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_auto_updates ALIAS external_auto_updates) add_library(desktop-app::external_auto_updates ALIAS external_auto_updates)
if (WIN32 AND NOT DESKTOP_APP_USE_PACKAGED) if (NOT DESKTOP_APP_DISABLE_AUTOUPDATE)
add_subdirectory(lzma) if (WIN32 AND NOT DESKTOP_APP_USE_PACKAGED)
target_link_libraries(external_auto_updates add_subdirectory(lzma)
INTERFACE target_link_libraries(external_auto_updates
desktop-app::external_lzma INTERFACE
) desktop-app::external_lzma
else() )
add_subdirectory(xz) else()
target_link_libraries(external_auto_updates add_subdirectory(xz)
INTERFACE target_link_libraries(external_auto_updates
desktop-app::external_xz INTERFACE
) desktop-app::external_xz
)
endif()
endif() endif()

View file

@ -64,6 +64,7 @@ else()
if (LINUX) if (LINUX)
target_link_static_libraries(external_ffmpeg target_link_static_libraries(external_ffmpeg
INTERFACE INTERFACE
lzma
va-x11 va-x11
va-drm va-drm
va va