From 47b3ff5e6406ea28a270c51b1f8b685f7154b000 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Wed, 13 Jul 2022 20:30:59 +0200 Subject: [PATCH] obs-scripting: Switch swig to stable ABI usage --- deps/obs-scripting/CMakeLists.txt | 6 ++++-- deps/obs-scripting/obspython/CMakeLists.txt | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/deps/obs-scripting/CMakeLists.txt b/deps/obs-scripting/CMakeLists.txt index 93188cb4c..579d0eba5 100644 --- a/deps/obs-scripting/CMakeLists.txt +++ b/deps/obs-scripting/CMakeLists.txt @@ -125,8 +125,10 @@ if(TARGET Python::Python) OUTPUT swig/swigpyrun.h WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} PRE_BUILD - COMMAND ${CMAKE_COMMAND} -E env "SWIG_LIB=${SWIG_DIR}" ${SWIG_EXECUTABLE} - -python -external-runtime swig/swigpyrun.h + COMMAND + ${CMAKE_COMMAND} -E env "SWIG_LIB=${SWIG_DIR}" ${SWIG_EXECUTABLE} -python + $,-py3,-py3-stable-abi> -external-runtime + swig/swigpyrun.h COMMENT "obs-scripting - generating Python 3 SWIG interface headers") set_source_files_properties(swig/swigpyrun.h PROPERTIES GENERATED ON) diff --git a/deps/obs-scripting/obspython/CMakeLists.txt b/deps/obs-scripting/obspython/CMakeLists.txt index 046e521b1..135d776cd 100644 --- a/deps/obs-scripting/obspython/CMakeLists.txt +++ b/deps/obs-scripting/obspython/CMakeLists.txt @@ -21,7 +21,9 @@ endif() include(UseSWIG) set_source_files_properties( - obspython.i PROPERTIES USE_TARGET_INCLUDE_DIRECTORIES TRUE SWIG_FLAGS "-py3") + obspython.i + PROPERTIES USE_TARGET_INCLUDE_DIRECTORIES TRUE + SWIG_FLAGS "$,-py3,-py3-stable-abi>") swig_add_library( obspython