Commit 382fafcd authored by jan.koester's avatar jan.koester
Browse files

test

parent f48411ef
Loading
Loading
Loading
Loading
+9 −14
Changes for CMakeSettings.json: 9 added lines, 14 removed lines.
Original line number Diff line number Diff line
@@ -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",
@@ -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"
                }
            ]
        }
+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
+2 −2
Changes for src/blogi.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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);
        }
@@ -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);