Loading CMakeSettings.json +9 −14 Changes for CMakeSettings.json: 9 added lines, 14 removed lines. Original line number Diff line number Diff line Loading @@ -11,16 +11,6 @@ "buildCommandArgs": "", "ctestCommandArgs": "", "variables": [ { "name": "Hiredis_INCLUDE_DIRS", "value": "C:/Users/jan.koester/source/repos/hiredis/out/install/x64-Debug/include", "type": "PATH" }, { "name": "Hiredis_LIBRARIES", "value": "C:/Users/jan.koester/source/repos/hiredis/out/install/x64-Debug/lib/hiredisd.lib", "type": "FILEPATH" }, { "name": "BROTLICOMMON_LIBRARY", "value": "C:/Users/jan.koester/source/repos/brotli/out/install/x64-Debug/lib/brotlicommon.lib", Loading @@ -47,14 +37,19 @@ "type": "PATH" }, { "name": "Hiredis_DIR", "value": "C:/Users/jan.koester/source/repos/hiredis/out/install/x64-Debug/share/hiredis", "name": "gameinfoplus_DIR", "value": "C:/Users/jan.koester/source/repos/libgameinfoplus/out/install/x64-Debug/lib/cmake/gameinfoplus", "type": "PATH" }, { "name": "gameinfoplus_DIR", "value": "C:/Users/jan.koester/source/repos/libgameinfoplus/out/install/x64-Debug/lib/cmake/gameinfoplus", "name": "HIREDIS_INCLUDE_DIRS", "value": "C:/Users/jan.koester/source/repos/hiredis/out/install/x64-Debug/include", "type": "PATH" }, { "name": "HIREDIS_LIBRARIES", "value": "C:/Users/jan.koester/source/repos/hiredis/out/install/x64-Debug/lib/hiredisd.lib", "type": "FILEPATH" } ] } Loading plugins/media/CMakeLists.txt +4 −1 Changes for plugins/media/CMakeLists.txt: 4 added lines, 1 removed line. Original line number Diff line number Diff line find_package(Hiredis 1.2 REQUIRED) if(${HIREDIS_FOUND}) add_library(media SHARED media.cpp redis.cpp) add_dependencies(media blogidev) if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows") target_link_libraries(media PUBLIC uuidp::uuidp kernel32.lib blogidev hiredis::hiredis) target_include_directories(media PRIVATE ${HIREDIS_INCLUDE_DIRS}) target_link_libraries(media PUBLIC uuidp::uuidp kernel32.lib blogidev ${HIREDIS_LIBRARIES}) else() target_link_libraries(media PUBLIC uuidp::uuidp dl blogidev hiredis::hiredis) endif() install (TARGETS media DESTINATION lib/blogi/plugins) endif() No newline at end of file src/blogi.cpp +2 −2 Changes for src/blogi.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -797,7 +797,7 @@ int _tmain(int argc, TCHAR* argv[]) { if (!config) return -1; const std::shared_ptr<Config> Blogi::Cfg=std::make_shared<blogi::Config>(config); blogi::Blogi::Cfg = std::shared_ptr<blogi::Config>(new blogi::Config(config)); HttpConD blogiD(debug); } Loading Loading @@ -873,7 +873,7 @@ VOID WINAPI ServiceMain(DWORD dwArgc, LPTSTR* lpszArgv) { try { try { blogi::Blogi::Cfg = std::make_shared<blogi::Config>(CFGPATH); blogi::Blogi::Cfg = std::shared_ptr<blogi::Config>(new blogi::Config(CFGPATH)); } catch (const std::exception& ex) { std::cerr << "Failed to load config: " << ex.what() << std::endl; ReportSvcStatus(SERVICE_STOPPED, ERROR_INVALID_DATA, 0); Loading Loading
CMakeSettings.json +9 −14 Changes for CMakeSettings.json: 9 added lines, 14 removed lines. Original line number Diff line number Diff line Loading @@ -11,16 +11,6 @@ "buildCommandArgs": "", "ctestCommandArgs": "", "variables": [ { "name": "Hiredis_INCLUDE_DIRS", "value": "C:/Users/jan.koester/source/repos/hiredis/out/install/x64-Debug/include", "type": "PATH" }, { "name": "Hiredis_LIBRARIES", "value": "C:/Users/jan.koester/source/repos/hiredis/out/install/x64-Debug/lib/hiredisd.lib", "type": "FILEPATH" }, { "name": "BROTLICOMMON_LIBRARY", "value": "C:/Users/jan.koester/source/repos/brotli/out/install/x64-Debug/lib/brotlicommon.lib", Loading @@ -47,14 +37,19 @@ "type": "PATH" }, { "name": "Hiredis_DIR", "value": "C:/Users/jan.koester/source/repos/hiredis/out/install/x64-Debug/share/hiredis", "name": "gameinfoplus_DIR", "value": "C:/Users/jan.koester/source/repos/libgameinfoplus/out/install/x64-Debug/lib/cmake/gameinfoplus", "type": "PATH" }, { "name": "gameinfoplus_DIR", "value": "C:/Users/jan.koester/source/repos/libgameinfoplus/out/install/x64-Debug/lib/cmake/gameinfoplus", "name": "HIREDIS_INCLUDE_DIRS", "value": "C:/Users/jan.koester/source/repos/hiredis/out/install/x64-Debug/include", "type": "PATH" }, { "name": "HIREDIS_LIBRARIES", "value": "C:/Users/jan.koester/source/repos/hiredis/out/install/x64-Debug/lib/hiredisd.lib", "type": "FILEPATH" } ] } Loading
plugins/media/CMakeLists.txt +4 −1 Changes for plugins/media/CMakeLists.txt: 4 added lines, 1 removed line. Original line number Diff line number Diff line find_package(Hiredis 1.2 REQUIRED) if(${HIREDIS_FOUND}) add_library(media SHARED media.cpp redis.cpp) add_dependencies(media blogidev) if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows") target_link_libraries(media PUBLIC uuidp::uuidp kernel32.lib blogidev hiredis::hiredis) target_include_directories(media PRIVATE ${HIREDIS_INCLUDE_DIRS}) target_link_libraries(media PUBLIC uuidp::uuidp kernel32.lib blogidev ${HIREDIS_LIBRARIES}) else() target_link_libraries(media PUBLIC uuidp::uuidp dl blogidev hiredis::hiredis) endif() install (TARGETS media DESTINATION lib/blogi/plugins) endif() No newline at end of file
src/blogi.cpp +2 −2 Changes for src/blogi.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -797,7 +797,7 @@ int _tmain(int argc, TCHAR* argv[]) { if (!config) return -1; const std::shared_ptr<Config> Blogi::Cfg=std::make_shared<blogi::Config>(config); blogi::Blogi::Cfg = std::shared_ptr<blogi::Config>(new blogi::Config(config)); HttpConD blogiD(debug); } Loading Loading @@ -873,7 +873,7 @@ VOID WINAPI ServiceMain(DWORD dwArgc, LPTSTR* lpszArgv) { try { try { blogi::Blogi::Cfg = std::make_shared<blogi::Config>(CFGPATH); blogi::Blogi::Cfg = std::shared_ptr<blogi::Config>(new blogi::Config(CFGPATH)); } catch (const std::exception& ex) { std::cerr << "Failed to load config: " << ex.what() << std::endl; ReportSvcStatus(SERVICE_STOPPED, ERROR_INVALID_DATA, 0); Loading