Commit 1a13aa54 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Only add ffmpeg libraries to Python module if building with ffmpeg.

parent 345deb58
......@@ -165,5 +165,5 @@ ExternalProject_Add(TARGET_pylinphone
DOWNLOAD_COMMAND ""
PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "copy_directory" "${CMAKE_CURRENT_LIST_DIR}/python" "<SOURCE_DIR>"
CMAKE_GENERATOR ${CMAKE_GENERATOR}
CMAKE_ARGS ${LINPHONE_BUILDER_EP_ARGS} -DENABLE_OPENH264:BOOL=${ENABLE_OPENH264}
CMAKE_ARGS ${LINPHONE_BUILDER_EP_ARGS} -DENABLE_FFMPEG:BOOL=${ENABLE_FFMPEG} -DENABLE_OPENH264:BOOL=${ENABLE_OPENH264}
)
......@@ -86,18 +86,23 @@ if(WIN32)
else()
set(PACKAGES_TO_BUILD "zip" "wheel")
set(PY_MODULE_EXT ".so")
set(LINPHONE_DYNAMIC_LIBRARIES_TO_INSTALL )
if(APPLE)
set(LINPHONE_DYNAMIC_LIBRARIES_TO_INSTALL
"${CMAKE_INSTALL_PREFIX}/lib/libavcodec.53.61.100.dylib"
"${CMAKE_INSTALL_PREFIX}/lib/libavutil.51.35.100.dylib"
"${CMAKE_INSTALL_PREFIX}/lib/libswscale.2.1.100.dylib"
)
if(ENABLE_FFMPEG)
list(APPEND LINPHONE_DYNAMIC_LIBRARIES_TO_INSTALL
"${CMAKE_INSTALL_PREFIX}/lib/libavcodec.53.61.100.dylib"
"${CMAKE_INSTALL_PREFIX}/lib/libavutil.51.35.100.dylib"
"${CMAKE_INSTALL_PREFIX}/lib/libswscale.2.1.100.dylib"
)
endif()
else()
set(LINPHONE_DYNAMIC_LIBRARIES_TO_INSTALL
"${CMAKE_INSTALL_PREFIX}/lib/libavcodec.so.53.61.100"
"${CMAKE_INSTALL_PREFIX}/lib/libavutil.so.51.35.100"
"${CMAKE_INSTALL_PREFIX}/lib/libswscale.so.2.1.100"
)
if(ENABLE_FFMPEG)
list(APPEND LINPHONE_DYNAMIC_LIBRARIES_TO_INSTALL
"${CMAKE_INSTALL_PREFIX}/lib/libavcodec.so.53.61.100"
"${CMAKE_INSTALL_PREFIX}/lib/libavutil.so.51.35.100"
"${CMAKE_INSTALL_PREFIX}/lib/libswscale.so.2.1.100"
)
endif()
endif()
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment