Refresh patches again

This commit is contained in:
Sebastian Ramacher 2018-12-16 18:05:42 +01:00
parent 7dd3ba58b7
commit e80058fcf0
2 changed files with 31 additions and 7 deletions

View file

@ -3,10 +3,34 @@ Date: Wed, 19 Apr 2017 21:45:40 +0200
Subject: Hide internal symbols
---
deps/obs-scripting/CMakeLists.txt | 12 ++++++++++++
libobs/CMakeLists.txt | 4 ++++
libobs/util/c99defs.h | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/deps/obs-scripting/CMakeLists.txt b/deps/obs-scripting/CMakeLists.txt
index 835c1b3..dff5370 100644
--- a/deps/obs-scripting/CMakeLists.txt
+++ b/deps/obs-scripting/CMakeLists.txt
@@ -160,6 +160,18 @@ add_library(obs-scripting SHARED
${SWIG_LUA_RUNTIME}
)
+if(UNIX)
+ set_source_files_properties(${obs-scripting_SOURCES}
+ ${obs-scripting_HEADERS}
+ ${obs-scripting-python_SOURCES}
+ ${obs-scripting-python_HEADERS}
+ ${obs-scripting-lua_SOURCES}
+ ${obs-scripting-lua_HEADERS}
+ ${SWIG_PY_RUNTIME}
+ ${SWIG_LUA_RUNTIME}
+ PROPERTIES COMPILE_FLAGS "-fvisibility=hidden")
+endif()
+
target_link_libraries(obs-scripting
libobs
${LUAJIT_LIBRARIES}
diff --git a/libobs/CMakeLists.txt b/libobs/CMakeLists.txt
index bddfa5c..41ed749 100644
--- a/libobs/CMakeLists.txt

View file

@ -7,12 +7,12 @@ Subject: Add SONAME
1 file changed, 5 insertions(+)
diff --git a/deps/obs-scripting/CMakeLists.txt b/deps/obs-scripting/CMakeLists.txt
index 835c1b3..8aa6441 100644
index dff5370..a79d1f0 100644
--- a/deps/obs-scripting/CMakeLists.txt
+++ b/deps/obs-scripting/CMakeLists.txt
@@ -160,6 +160,11 @@ add_library(obs-scripting SHARED
${SWIG_LUA_RUNTIME}
)
@@ -172,6 +172,11 @@ if(UNIX)
PROPERTIES COMPILE_FLAGS "-fvisibility=hidden")
endif()
+set_target_properties(obs-scripting PROPERTIES
+ OUTPUT_NAME obs-scripting