From 2aedaaec5105d598f6ba20f2f58119b459a2c200 Mon Sep 17 00:00:00 2001 From: tytan652 Date: Sun, 6 Oct 2024 12:55:44 +0200 Subject: [PATCH] win-update: Remove legacy CMake file --- UI/win-update/updater/cmake/legacy.cmake | 50 ------------------------ 1 file changed, 50 deletions(-) delete mode 100644 UI/win-update/updater/cmake/legacy.cmake diff --git a/UI/win-update/updater/cmake/legacy.cmake b/UI/win-update/updater/cmake/legacy.cmake deleted file mode 100644 index f394e8d92..000000000 --- a/UI/win-update/updater/cmake/legacy.cmake +++ /dev/null @@ -1,50 +0,0 @@ -project(updater) - -option(ENABLE_UPDATER "Build with Windows updater" ON) - -if(NOT ENABLE_UPDATER) - message(STATUS "OBS: DISABLED Windows updater") - return() -endif() - -find_package(zstd) -find_package(nlohmann_json 3 REQUIRED) - -add_executable(updater WIN32) - -target_sources( - updater - PRIVATE updater.cpp - updater.hpp - patch.cpp - http.cpp - hash.cpp - resource.h - updater.rc - init-hook-files.c - updater.manifest - helpers.cpp - helpers.hpp) - -target_include_directories(updater PRIVATE ${CMAKE_SOURCE_DIR}/libobs) - -target_compile_definitions(updater PRIVATE NOMINMAX "PSAPI_VERSION=2") - -if(MSVC) - target_compile_options(updater PRIVATE $,/MTd,/MT>) - target_compile_options(updater PRIVATE "/utf-8") - target_link_options(updater PRIVATE "LINKER:/IGNORE:4098") -endif() - -target_link_libraries( - updater - PRIVATE OBS::blake2 - nlohmann_json::nlohmann_json - zstd::libzstd_static - comctl32 - shell32 - version - winhttp - wintrust) - -set_target_properties(updater PROPERTIES FOLDER "frontend")