Skip to content

Commit

Permalink
Replace obs-websocket-api copy with CMake target
Browse files Browse the repository at this point in the history
  • Loading branch information
tytan652 authored and RytoEX committed Oct 17, 2024
1 parent 941c48b commit fc946f2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 141 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ target_sources(
cef-headers.hpp
deps/base64/base64.cpp
deps/base64/base64.hpp
deps/obs-websocket-api/obs-websocket-api.h
deps/signal-restore.cpp
deps/signal-restore.hpp
deps/wide-string.cpp
Expand All @@ -44,7 +43,7 @@ target_sources(
target_include_directories(obs-browser PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/deps")

target_compile_features(obs-browser PRIVATE cxx_std_17)
target_link_libraries(obs-browser PRIVATE OBS::libobs OBS::frontend-api nlohmann_json::nlohmann_json)
target_link_libraries(obs-browser PRIVATE OBS::libobs OBS::frontend-api OBS::websocket-api nlohmann_json::nlohmann_json)

if(OS_WINDOWS)
include(cmake/os-windows.cmake)
Expand Down
3 changes: 0 additions & 3 deletions deps/obs-websocket-api/.clang-format

This file was deleted.

135 changes: 0 additions & 135 deletions deps/obs-websocket-api/obs-websocket-api.h

This file was deleted.

2 changes: 1 addition & 1 deletion obs-browser-plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
#include <thread>
#include <mutex>
#include <nlohmann/json.hpp>
#include <obs-websocket-api.h>

#include "obs-browser-source.hpp"
#include "browser-scheme.hpp"
#include "browser-app.hpp"
#include "browser-version.h"

#include "obs-websocket-api/obs-websocket-api.h"
#include "cef-headers.hpp"

#ifdef _WIN32
Expand Down

0 comments on commit fc946f2

Please sign in to comment.