Commit 9efad7c2 authored by Ghislain MARY's avatar Ghislain MARY

Include the list of enabled features in the description of the generated podspec for iOS.

parent 8d73d46c
......@@ -59,14 +59,17 @@ include(cmake-builder/options/ms2.cmake)
include(cmake-builder/options/linphone.cmake)
include(LinphoneSdkPlatform${LINPHONESDK_PLATFORM})
# Give a feature summary
include(FeatureSummary)
feature_summary(FILENAME "${CMAKE_BINARY_DIR}/enabled_features.txt" WHAT ENABLED_FEATURES DESCRIPTION "Enabled features:")
feature_summary(WHAT ENABLED_FEATURES DESCRIPTION "Enabled features:")
feature_summary(FILENAME "${CMAKE_BINARY_DIR}/disabled_features.txt" WHAT ENABLED_FEATURES DESCRIPTION "Enabled features:")
feature_summary(WHAT DISABLED_FEATURES DESCRIPTION "Disabled features:")
include(LinphoneSdkPlatform${LINPHONESDK_PLATFORM})
if(ENABLE_GPL_THIRD_PARTIES)
message(WARNING "
***************************************************************************
......
......@@ -33,4 +33,5 @@ execute_process(
# Generate podspec file
file(READ "${LINPHONESDK_ENABLED_FEATURES_FILENAME}" LINPHONESDK_ENABLED_FEATURES)
configure_file("${LINPHONESDK_DIR}/cmake/IOS/linphone-sdk.podspec.cmake" "${LINPHONESDK_BUILD_DIR}/linphone-sdk.podspec" @ONLY)
......@@ -3,6 +3,8 @@ Pod::Spec.new do |s|
s.name = "linphone-sdk"
s.version = "@LINPHONESDK_VERSION@"
s.summary = "This is the linphone SDK, a free (GPL) video voip library based on the SIP protocol"
s.description = <<-PODSPEC_DESC
@LINPHONESDK_ENABLED_FEATURES@PODSPEC_DESC
s.homepage = "https://github.com/BelledonneCommunications/linphone-iphone"
s.license = "GNU GPL 2"
s.author = "employees@belledonne-communications.com"
......
......@@ -103,7 +103,7 @@ add_custom_target(lipo ALL
)
add_custom_target(sdk
"${CMAKE_COMMAND}" "-DLINPHONESDK_DIR=${LINPHONESDK_DIR}" "-DLINPHONESDK_BUILD_DIR=${CMAKE_BINARY_DIR}" "-DLINPHONESDK_VERSION=${LINPHONESDK_VERSION}" "-DLINPHONESDK_IOS_BASE_URL=${LINPHONESDK_IOS_BASE_URL}" "-P" "${LINPHONESDK_DIR}/cmake/IOS/GenerateSDK.cmake"
"${CMAKE_COMMAND}" "-DLINPHONESDK_DIR=${LINPHONESDK_DIR}" "-DLINPHONESDK_BUILD_DIR=${CMAKE_BINARY_DIR}" "-DLINPHONESDK_VERSION=${LINPHONESDK_VERSION}" "-DLINPHONESDK_ENABLED_FEATURES_FILENAME=${CMAKE_BINARY_DIR}/enabled_features.txt" "-DLINPHONESDK_IOS_BASE_URL=${LINPHONESDK_IOS_BASE_URL}" "-P" "${LINPHONESDK_DIR}/cmake/IOS/GenerateSDK.cmake"
COMMENT "Generating the SDK (zip file and podspec)"
DEPENDS lipo
)
......@@ -84,7 +84,6 @@ macro(linphone_sdk_compute_full_version OUTPUT_VERSION)
ERROR_QUIET
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
)
message("${OUTPUT_VERSION}: ${${OUTPUT_VERSION}}")
if(${OUTPUT_VERSION})
execute_process(
COMMAND "${GIT_EXECUTABLE}" "describe" "--abbrev=0"
......
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