...
 
Commits (7)
......@@ -35,15 +35,9 @@ if(NOT CMAKE_INSTALL_RPATH AND CMAKE_INSTALL_PREFIX)
message(STATUS "Setting install rpath to ${CMAKE_INSTALL_RPATH}")
endif()
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
include("${EP_ms2_CONFIG_DIR}/Mediastreamer2Config.cmake")
include("${EP_bctoolbox_CONFIG_DIR}/BcToolboxConfig.cmake")
include("${EP_ortp_CONFIG_DIR}/OrtpConfig.cmake")
else()
find_package(Mediastreamer2 REQUIRED)
find_package(BcToolbox REQUIRED)
find_package(ORTP REQUIRED)
endif()
find_package(Mediastreamer2 CONFIG REQUIRED)
find_package(bctoolbox CONFIG REQUIRED)
find_package(ortp CONFIG REQUIRED)
set(FLAVOUR "FIX")
file(GLOB SILK_SOURCE_FILES "sdk/SILK_SDK_SRC_v1.0.9/SILK_SDK_SRC_${FLAVOUR}_v1.0.9/src/*.c")
......@@ -67,12 +61,14 @@ set(SOURCE_FILES
silk_enc.c
)
set(MS2_PLUGINS_DIR "${MEDIASTREAMER2_PLUGINS_LOCATION}")
if(ENABLE_STATIC)
add_library(mssilk-static STATIC ${SOURCE_FILES})
set_target_properties(mssilk-static PROPERTIES OUTPUT_NAME mssilk)
target_link_libraries(mssilk-static ${LIBS})
install(TARGETS mssilk-static
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/mediastreamer/plugins
ARCHIVE DESTINATION "${MS2_PLUGINS_DIR}"
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
endif()
......@@ -94,7 +90,7 @@ if(ENABLE_SHARED)
endif()
if(MSVC)
if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/libmssilk.pdb
install(FILES $<TARGET_PDB_FILE:mssilk>
DESTINATION ${CMAKE_INSTALL_BINDIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
......@@ -102,9 +98,9 @@ if(ENABLE_SHARED)
set_target_properties(mssilk PROPERTIES PREFIX "lib")
endif()
install(TARGETS mssilk
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/mediastreamer/plugins
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/mediastreamer/plugins
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/mediastreamer/plugins
RUNTIME DESTINATION ${MS2_PLUGINS_DIR}
LIBRARY DESTINATION ${MS2_PLUGINS_DIR}
ARCHIVE DESTINATION ${MS2_PLUGINS_DIR}
FRAMEWORK DESTINATION Frameworks
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
......