Просмотр исходного кода

libobs: Fix leaking obs-internal.h

Removes prior attempt to expose libcaption headers which really shouldnt
have public. This instead moves the obs-internal include out of the
public obs-scene.h and into it's implementation.
Kurt Kartaltepe 4 лет назад
Родитель
Сommit
5efb10a5e2
3 измененных файлов с 1 добавлено и 2 удалено
  1. 0 1
      deps/libcaption/CMakeLists.txt
  2. 1 0
      libobs/obs-scene.c
  3. 0 1
      libobs/obs-scene.h

+ 0 - 1
deps/libcaption/CMakeLists.txt

@@ -36,7 +36,6 @@ set(CAPTION_HEADERS
 )
 
 add_library(caption STATIC ${CAPTION_SOURCES})
-install_obs_headers("caption/caption.h")
 set_target_properties(caption PROPERTIES
 	FOLDER "deps"
 	POSITION_INDEPENDENT_CODE ON)

+ 1 - 0
libobs/obs-scene.c

@@ -20,6 +20,7 @@
 #include "util/util_uint64.h"
 #include "graphics/math-defs.h"
 #include "obs-scene.h"
+#include "obs-internal.h"
 
 const struct obs_source_info group_info;
 

+ 0 - 1
libobs/obs-scene.h

@@ -18,7 +18,6 @@
 #pragma once
 
 #include "obs.h"
-#include "obs-internal.h"
 #include "graphics/matrix4.h"
 
 /* how obs scene! */