obs-scripting: Fix crashes introduced by Swig update to 4.1.0

Fixes issues introduced by https://github.com/swig/swig/pull/2238. As
obs-scripting is not compatible with the SWIGPYTHON_BUILTIN, obspython
needs to disable this feature.
master
PatTheMav 2022-07-13 20:26:07 +02:00 committed by Ryan Foster
parent 9145e3063d
commit e27f90fa5a
1 changed files with 3 additions and 7 deletions

View File

@ -21,8 +21,7 @@ endif()
include(UseSWIG)
set_source_files_properties(
obspython.i PROPERTIES USE_TARGET_INCLUDE_DIRECTORIES TRUE SWIG_FLAGS
"-builtin;-py3")
obspython.i PROPERTIES USE_TARGET_INCLUDE_DIRECTORIES TRUE SWIG_FLAGS "-py3")
swig_add_library(
obspython
@ -53,11 +52,8 @@ set_target_properties(obspython PROPERTIES SWIG_COMPILE_DEFINITIONS
if(OS_WINDOWS)
set_target_properties(
obspython
PROPERTIES
SWIG_COMPILE_DEFINITIONS
"SWIG_TYPE_TABLE=obspython;Py_ENABLE_SHARED=1;SWIG_PYTHON_INTERPRETER_NO_DEBUG;MS_NO_COREDLL"
)
obspython PROPERTIES SWIG_COMPILE_DEFINITIONS
"${_SWIG_DEFINITIONS};MS_NO_COREDLL")
target_link_libraries(obspython PRIVATE Python::Python)