Commit ee98b0c3 authored by Ghislain MARY's avatar Ghislain MARY

Add option to build source packages for the builders.

parent e50cc61c
......@@ -25,3 +25,4 @@ lcb_git_tag_latest("master")
lcb_git_tag("1.0.2")
lcb_external_source_paths("bcg729")
lcb_groupable(YES)
lcb_package_source(YES)
......@@ -25,6 +25,7 @@ lcb_git_tag_latest("master")
lcb_git_tag("master")
lcb_external_source_paths("bctoolbox")
lcb_groupable(YES)
lcb_package_source(YES)
lcb_spec_file("bctoolbox.spec")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
......
......@@ -25,5 +25,6 @@ lcb_git_tag_latest("master")
lcb_git_tag("master")
lcb_external_source_paths("belcard")
lcb_groupable(YES)
lcb_package_source(YES)
lcb_dependencies("bctoolbox" "belr")
\ No newline at end of file
......@@ -25,6 +25,7 @@ lcb_git_tag_latest("master")
lcb_git_tag("1.5.3")
lcb_external_source_paths("belle-sip")
lcb_groupable(YES)
lcb_package_source(YES)
lcb_spec_file("belle-sip.spec")
lcb_rpmbuild_name("belle-sip")
......
......@@ -25,6 +25,7 @@ lcb_git_tag_latest("master")
lcb_git_tag("master")
lcb_external_source_paths("belr")
lcb_groupable(YES)
lcb_package_source(YES)
lcb_dependencies("bctoolbox")
lcb_cmake_options("-DENABLE_TOOLS=${ENABLE_TOOLS}")
\ No newline at end of file
......@@ -25,6 +25,7 @@ lcb_git_tag_latest("master")
lcb_git_tag("1.0.4")
lcb_external_source_paths("bzrtp")
lcb_groupable(YES)
lcb_package_source(YES)
lcb_dependencies("bctoolbox")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
......
......@@ -25,6 +25,7 @@ lcb_git_tag_latest("master")
lcb_git_tag("3.10.0")
lcb_external_source_paths("linphone")
lcb_groupable(YES)
lcb_package_source(YES)
lcb_dependencies("bctoolbox" "bellesip" "ortp" "ms2")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES AND NOT APPLE)
......
......@@ -25,6 +25,7 @@ lcb_git_tag_latest("master")
lcb_git_tag("2.14.0")
lcb_external_source_paths("mediastreamer2")
lcb_groupable(YES)
lcb_package_source(YES)
lcb_spec_file("mediastreamer2.spec")
lcb_rpmbuild_name("mediastreamer")
......
......@@ -25,6 +25,7 @@ lcb_git_tag_latest("master")
lcb_git_tag("1.1.2")
lcb_external_source_paths("msopenh264")
lcb_groupable(YES)
lcb_package_source(YES)
lcb_plugin(YES)
lcb_dependencies("ms2" "openh264")
......@@ -25,6 +25,7 @@ lcb_git_tag_latest("master")
lcb_git_tag("0.27.0")
lcb_external_source_paths("oRTP" "ortp")
lcb_groupable(YES)
lcb_package_source(YES)
lcb_dependencies("bctoolbox")
lcb_spec_file("ortp.spec")
......
......@@ -815,6 +815,14 @@ macro(linphone_builder_add_external_project PROJNAME)
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
endif()
if(ENABLE_SOURCE_PACKAGING AND EP_${PROJNAME}_PACKAGE_SOURCE)
ExternalProject_Add_Step(EP_${PROJNAME} package_source
COMMAND ${CMAKE_COMMAND} --build ${ep_build} --target package_source
COMMENT "Creating source package for 'EP_${PROJNAME}'"
DEPENDEES install
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
endif()
if(EP_${PROJNAME}_GROUPED_SOURCE_DIRS OR EP_${PROJNAME}_SOURCE_DIR)
if(EP_${PROJNAME}_GROUPED_SOURCE_DIRS)
......@@ -1145,6 +1153,14 @@ macro(lcb_groupable BOOL_VALUE)
lcb_builder_groupable("${LINPHONE_BUILDER_CURRENT_BUILDER}" ${BOOL_VALUE})
endmacro()
macro(lcb_builder_package_source BUILDER BOOL_VALUE)
set(EP_${BUILDER}_PACKAGE_SOURCE ${BOOL_VALUE})
endmacro()
macro(lcb_package_source BOOL_VALUE)
lcb_builder_package_source("${LINPHONE_BUILDER_CURRENT_BUILDER}" ${BOOL_VALUE})
endmacro()
macro(lcb_builder_spec_file BUILDER SPEC_FILE)
set(EP_${BUILDER}_SPEC_FILE "${SPEC_FILE}")
endmacro()
......
......@@ -24,6 +24,7 @@
lcb_add_option("Theora" "Theora video encoding/decoding support." "${DEFAULT_VALUE_ENABLE_THEORA}")
lcb_add_option("Static only" "Enable compilation of libraries in static mode." "${DEFAULT_VALUE_ENABLE_STATIC_ONLY}")
lcb_add_option("Packaging" "Enable packaging" "${DEFAULT_VALUE_ENABLE_PACKAGING}")
lcb_add_option("Source packaging" "Enable source packaging" "${DEFAULT_VALUE_ENABLE_SOURCE_PACKAGING}")
if(ENABLE_STATIC_ONLY)
......
......@@ -104,6 +104,8 @@ class Target:
cmd += ["-DENABLE_PACKAGING=YES"]
if self.packaging_args is not None:
cmd += self.packaging_args
if 'package_source' in vars(args) and args.package_source:
cmd += ["-DENABLE_SOURCE_PACKAGING=YES"]
for arg in self.additional_args:
cmd += [arg]
for arg in additional_args:
......
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