Commit dab99a97 authored by Ghislain MARY's avatar Ghislain MARY

Improve builder infrastructure.

- Define build configurations
- Generate autotools config sites dynamically
parent 64c6173d
......@@ -22,84 +22,26 @@
cmake_minimum_required(VERSION 2.8)
if(WIN32)
set(LIB_INSTALL_DIR "bin")
else(WIN32)
set(LIB_INSTALL_DIR "lib")
endif(WIN32)
set(PKG_CONFIG_LIBDIR "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
set(GENERAL_EP_VARS)
macro(_expand_external_project_vars)
set(GENERAL_EP_ARGS "")
set(GENERAL_EP_VARNAMES "")
foreach(arg ${GENERAL_EP_VARS})
string(REPLACE ":" ";" varname_and_vartype ${arg})
set(target_info_list ${target_info_list})
list(GET varname_and_vartype 0 _varname)
list(GET varname_and_vartype 1 _vartype)
list(APPEND GENERAL_EP_ARGS -D${_varname}:${_vartype}=${${_varname}})
list(APPEND GENERAL_EP_VARNAMES ${_varname})
endforeach()
endmacro()
list(APPEND GENERAL_EP_VARS
CMAKE_SKIP_RPATH:BOOL
CMAKE_MODULE_PATH:PATH
CMAKE_BUILD_TYPE:STRING
CMAKE_CXX_COMPILER:PATH
CMAKE_CXX_FLAGS:STRING
CMAKE_CXX_FLAGS_DEBUG:STRING
CMAKE_CXX_FLAGS_MINSIZEREL:STRING
CMAKE_CXX_FLAGS_RELEASE:STRING
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING
CMAKE_C_COMPILER:PATH
CMAKE_C_FLAGS:STRING
CMAKE_C_FLAGS_DEBUG:STRING
CMAKE_C_FLAGS_MINSIZEREL:STRING
CMAKE_C_FLAGS_RELEASE:STRING
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING
CMAKE_EXE_LINKER_FLAGS:STRING
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING
CMAKE_MODULE_LINKER_FLAGS:STRING
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING
CMAKE_SHARED_LINKER_FLAGS:STRING
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING
CMAKE_TOOLCHAIN_FILE:STRING
CMAKE_GENERATOR:STRING
CMAKE_EXTRA_GENERATOR:STRING
CMAKE_INSTALL_PREFIX:PATH
CMAKE_LIBRARY_OUTPUT_DIRECTORY:PATH
CMAKE_ARCHIVE_OUTPUT_DIRECTORY:PATH
CMAKE_RUNTIME_OUTPUT_DIRECTORY:PATH
CMAKE_BUNDLE_OUTPUT_DIRECTORY:PATH
CMAKE_SHARED_LINKER_FLAGS:STRING
CMAKE_EXE_LINKER_FLAGS:STRING
CMAKE_MODULE_LINKER_FLAGS:STRING
LIB_INSTALL_DIR:STRING
PKG_CONFIG_LIBDIR:STRING
AUTOTOOLS_CONFIG_SITE:STRING
)
if(APPLE)
list(APPEND GENERAL_EP_VARS
CMAKE_OSX_DEPLOYMENT_TARGET:STRING
CMAKE_OSX_ARCHITECTURES:STRING
)
endif(APPLE)
_expand_external_project_vars()
set(LINPHONE_BUILDER_TOOLCHAIN "" CACHE STRING "Toolchain to use for the build.")
# Include macros definition to be used by builders
include(cmake/LinphoneCMakeBuilder.cmake)
# Include toolchain definition if needed
if(NOT "${LINPHONE_BUILDER_TOOLCHAIN}" STREQUAL "")
message("-- Using toolchain '${LINPHONE_BUILDER_TOOLCHAIN}'")
include(toolchains/toolchain-${LINPHONE_BUILDER_TOOLCHAIN}.cmake)
linphone_builder_apply_toolchain_flags()
endif(NOT "${LINPHONE_BUILDER_TOOLCHAIN}" STREQUAL "")
# Include project configuration according to the toolchain
include(configs/config-default.cmake)
if(NOT "${LINPHONE_BUILDER_TOOLCHAIN}" STREQUAL "")
include(configs/config-${LINPHONE_BUILDER_TOOLCHAIN}.cmake)
else(NOT "${LINPHONE_BUILDER_TOOLCHAIN}" STREQUAL "")
# Include the desktop configuration by default
include(configs/config-desktop.cmake)
endif(NOT "${LINPHONE_BUILDER_TOOLCHAIN}" STREQUAL "")
# Include builders definitions
include(builders/CMakeLists.txt)
......@@ -20,21 +20,45 @@
#
############################################################################
build-bb10-sdk:
export TOOLCHAIN=bb10-i486 && ./scripts/build.sh
export TOOLCHAIN=bb10-arm && ./scripts/build.sh
.PHONY: build-bb10-i486 build-bb10-arm build-bb10
generate-bb10-sdk: build-bb10-sdk
cd .. && \
zip -r liblinphone-bb10-sdk.zip \
liblinphonesdk/bb10-arm \
liblinphonesdk/bb10-i486
build-bb10-i486:
mkdir -p liblinphonesdk && \
mkdir -p build-bb10-i486 && \
cd build-bb10-i486 && \
cmake .. -DLINPHONE_BUILDER_TOOLCHAIN=bb10-i486 -DCMAKE_INSTALL_PREFIX=../liblinphonesdk/bb10-i486 $(filter -D%,$(MAKEFLAGS)) && \
make
build-bb10-arm:
mkdir -p liblinphonesdk && \
mkdir -p build-bb10-arm && \
cd build-bb10-arm && \
cmake .. -DLINPHONE_BUILDER_TOOLCHAIN=bb10-arm -DCMAKE_INSTALL_PREFIX=../liblinphonesdk/bb10-arm $(filter -D%,$(MAKEFLAGS)) && \
make
build-bb10: build-bb10-i486 build-bb10-arm
clean-bb10-i486:
cd build-bb10-i486 && \
make clean
clean-bb10-arm:
cd build-bb10-arm && \
make clean
clean-bb10-sdk:
export TOOLCHAIN=bb10-i486 && ./scripts/clean.sh
export TOOLCHAIN=bb10-arm && ./scripts/clean.sh
clean-bb10: clean-bb10-i486 clean-bb10-arm
veryclean-bb10-sdk:
veryclean-bb10-i486:
rm -rf build-bb10-i486
veryclean-bb10-arm:
rm -rf build-bb10-arm
rm -rf ../liblinphonesdk
veryclean-bb10: veryclean-bb10-i486 veryclean-bb10-arm
rm -rf liblinphonesdk
generate-bb10-sdk: build-bb10
cd .. && \
zip -r liblinphone-bb10-sdk.zip \
liblinphonesdk/bb10-arm \
liblinphonesdk/bb10-i486
......@@ -22,22 +22,8 @@
cmake_minimum_required(VERSION 2.8)
include(ExternalProject)
# Include builders
set(BUILDERS
cunit
xml2
antlr3c
polarssl
belle-sip
srtp
gsm
speex
opus
linphone
)
foreach(builder ${BUILDERS})
message("-- Including builder ${builder}")
include(${CMAKE_CURRENT_SOURCE_DIR}/builders/${builder}.cmake)
endforeach(builder)
foreach(BUILDER ${LINPHONE_BUILDER_BUILDERS})
message("-- Including builder ${BUILDER}")
include(${CMAKE_CURRENT_SOURCE_DIR}/builders/${BUILDER}.cmake)
endforeach(BUILDER)
......@@ -20,21 +20,4 @@
#
############################################################################
set(AUTOGEN_COMMAND "./autogen.sh")
set(CONFIGURE_OPTIONS
"--prefix=${CMAKE_INSTALL_PREFIX}"
"--host=$ENV{HOST}"
"--disable-static"
"--enable-shared"
)
set(CONFIGURE_COMMAND "PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}" "CONFIG_SITE=${AUTOTOOLS_CONFIG_SITE}" "./configure" "${CONFIGURE_OPTIONS}")
set(BUILD_COMMAND "PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}" "CONFIG_SITE=${AUTOTOOLS_CONFIG_SITE}" "make" "-C" "<SOURCE_DIR>/runtime/C/")
ExternalProject_Add(EP_antlr3c
GIT_REPOSITORY git://git.linphone.org/antlr3.git
GIT_TAG linphone
CONFIGURE_COMMAND cd <SOURCE_DIR>/runtime/C/ && ${AUTOGEN_COMMAND} COMMAND cd <SOURCE_DIR>/runtime/C/ && ${CONFIGURE_COMMAND}
BUILD_COMMAND ${BUILD_COMMAND}
INSTALL_COMMAND make -C <SOURCE_DIR>/runtime/C/ install
BUILD_IN_SOURCE 1
)
linphone_builder_add_cmake_project(antlr3c)
############################################################################
# bb10-i486.site
# belle-sip.cmake
# Copyright (C) 2014 Belledonne Communications, Grenoble France
#
############################################################################
......@@ -20,17 +20,4 @@
#
############################################################################
HOST=i486-pc-nto-qnx8.0.0
CC="${HOST}-gcc"
CXX="${HOST}-g++"
LD="${HOST}-ld"
AR="${HOST}-ar"
RANLIB="${HOST}-ranlib"
STRIP="${HOST}-strip"
NM="${HOST}-nm"
CPPFLAGS="-D_REENTRANT -D__QNXNTO__ -Dasm=__asm"
#-D__PLAYBOOK__
CFLAGS=" -g -fPIC -fstack-protector-strong"
LDFLAGS="-L${QNX_TARGET}/x86/lib -Wl,-z,relro -Wl,-z,now -pie -lbps -lsocket"
linphone_builder_add_autotools_project(bellesip)
#!/bin/sh
export CC=@LINPHONE_BUILDER_TOOLCHAIN_CC@
export CXX=@LINPHONE_BUILDER_TOOLCHAIN_CXX@
export LD=@LINPHONE_BUILDER_TOOLCHAIN_LD@
export AR=@LINPHONE_BUILDER_TOOLCHAIN_AR@
export RANLIB=@LINPHONE_BUILDER_TOOLCHAIN_RANLIB@
export STRIP=@LINPHONE_BUILDER_TOOLCHAIN_STRIP@
export NM=@LINPHONE_BUILDER_TOOLCHAIN_NM@
export CPPFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS@ @EP_bellesip_EXTRA_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CFLAGS@ @EP_bellesip_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @EP_bellesip_EXTRA_CXXFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS@ @EP_bellesip_EXTRA_LDFLAGS@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
make V=@CMAKE_VERBOSE_MAKEFILE@
#!/bin/sh
export CC=@LINPHONE_BUILDER_TOOLCHAIN_CC@
export CXX=@LINPHONE_BUILDER_TOOLCHAIN_CXX@
export LD=@LINPHONE_BUILDER_TOOLCHAIN_LD@
export AR=@LINPHONE_BUILDER_TOOLCHAIN_AR@
export RANLIB=@LINPHONE_BUILDER_TOOLCHAIN_RANLIB@
export STRIP=@LINPHONE_BUILDER_TOOLCHAIN_STRIP@
export NM=@LINPHONE_BUILDER_TOOLCHAIN_NM@
export CPPFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS@ @EP_bellesip_EXTRA_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CFLAGS@ @EP_bellesip_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @EP_bellesip_EXTRA_CXXFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS@ @EP_bellesip_EXTRA_LDFLAGS@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
if [ ! -f config.h ]; then
./autogen.sh
./configure "--prefix=@CMAKE_INSTALL_PREFIX@" "--host=@LINPHONE_BUILDER_TOOLCHAIN_HOST@" @EP_bellesip_CONFIGURE_OPTIONS@
fi
#!/bin/sh
export CC=@LINPHONE_BUILDER_TOOLCHAIN_CC@
export CXX=@LINPHONE_BUILDER_TOOLCHAIN_CXX@
export LD=@LINPHONE_BUILDER_TOOLCHAIN_LD@
export AR=@LINPHONE_BUILDER_TOOLCHAIN_AR@
export RANLIB=@LINPHONE_BUILDER_TOOLCHAIN_RANLIB@
export STRIP=@LINPHONE_BUILDER_TOOLCHAIN_STRIP@
export NM=@LINPHONE_BUILDER_TOOLCHAIN_NM@
export CPPFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS@ @EP_bellesip_EXTRA_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CFLAGS@ @EP_bellesip_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @EP_bellesip_EXTRA_CXXFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS@ @EP_bellesip_EXTRA_LDFLAGS@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
make V=@CMAKE_VERBOSE_MAKEFILE@ install
......@@ -20,20 +20,4 @@
#
############################################################################
set(AUTOGEN_COMMAND "./autogen.sh")
set(CONFIGURE_OPTIONS
"--prefix=${CMAKE_INSTALL_PREFIX}"
"--host=$ENV{HOST}"
"--disable-static"
"--enable-shared"
)
set(CONFIGURE_COMMAND "PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}" "CONFIG_SITE=${AUTOTOOLS_CONFIG_SITE}" "./configure" "${CONFIGURE_OPTIONS}")
set(BUILD_COMMAND "PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}" "CONFIG_SITE=${AUTOTOOLS_CONFIG_SITE}" "make")
ExternalProject_Add(EP_cunit
GIT_REPOSITORY git://git.linphone.org/cunit.git
GIT_TAG linphone
CONFIGURE_COMMAND ${AUTOGEN_COMMAND} COMMAND ${CONFIGURE_COMMAND}
BUILD_COMMAND ${BUILD_COMMAND}
BUILD_IN_SOURCE 1
)
linphone_builder_add_autotools_project(cunit)
#!/bin/sh
export CC=@LINPHONE_BUILDER_TOOLCHAIN_CC@
export CXX=@LINPHONE_BUILDER_TOOLCHAIN_CXX@
export LD=@LINPHONE_BUILDER_TOOLCHAIN_LD@
export AR=@LINPHONE_BUILDER_TOOLCHAIN_AR@
export RANLIB=@LINPHONE_BUILDER_TOOLCHAIN_RANLIB@
export STRIP=@LINPHONE_BUILDER_TOOLCHAIN_STRIP@
export NM=@LINPHONE_BUILDER_TOOLCHAIN_NM@
export CPPFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS@ @EP_cunit_EXTRA_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CFLAGS@ @EP_cunit_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @EP_cunit_EXTRA_CXXFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS@ @EP_cunit_EXTRA_LDFLAGS@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
make V=@CMAKE_VERBOSE_MAKEFILE@
#!/bin/sh
export CC=@LINPHONE_BUILDER_TOOLCHAIN_CC@
export CXX=@LINPHONE_BUILDER_TOOLCHAIN_CXX@
export LD=@LINPHONE_BUILDER_TOOLCHAIN_LD@
export AR=@LINPHONE_BUILDER_TOOLCHAIN_AR@
export RANLIB=@LINPHONE_BUILDER_TOOLCHAIN_RANLIB@
export STRIP=@LINPHONE_BUILDER_TOOLCHAIN_STRIP@
export NM=@LINPHONE_BUILDER_TOOLCHAIN_NM@
export CPPFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS@ @EP_cunit_EXTRA_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CFLAGS@ @EP_cunit_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @EP_cunit_EXTRA_CXXFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS@ @EP_cunit_EXTRA_LDFLAGS@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
if [ ! -f config.h ]; then
./autogen.sh
./configure "--prefix=@CMAKE_INSTALL_PREFIX@" "--host=@LINPHONE_BUILDER_TOOLCHAIN_HOST@" @EP_cunit_CONFIGURE_OPTIONS@
fi
#!/bin/sh
export CC=@LINPHONE_BUILDER_TOOLCHAIN_CC@
export CXX=@LINPHONE_BUILDER_TOOLCHAIN_CXX@
export LD=@LINPHONE_BUILDER_TOOLCHAIN_LD@
export AR=@LINPHONE_BUILDER_TOOLCHAIN_AR@
export RANLIB=@LINPHONE_BUILDER_TOOLCHAIN_RANLIB@
export STRIP=@LINPHONE_BUILDER_TOOLCHAIN_STRIP@
export NM=@LINPHONE_BUILDER_TOOLCHAIN_NM@
export CPPFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS@ @EP_cunit_EXTRA_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CFLAGS@ @EP_cunit_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @EP_cunit_EXTRA_CXXFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS@ @EP_cunit_EXTRA_LDFLAGS@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
make V=@CMAKE_VERBOSE_MAKEFILE@ install
......@@ -20,9 +20,4 @@
#
############################################################################
ExternalProject_Add(EP_gsm
GIT_REPOSITORY git://git.linphone.org/gsm.git
GIT_TAG linphone
PATCH_COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/builders/gsm/CMakeLists.txt <SOURCE_DIR>
CMAKE_ARGS ${GENERAL_EP_ARGS}
)
linphone_builder_add_cmake_project(gsm)
......@@ -51,7 +51,9 @@ set(GSM_SOURCE_FILES
add_library(gsm SHARED ${GSM_SOURCE_FILES})
install(TARGETS gsm
DESTINATION ${LIB_INSTALL_DIR}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
......
......@@ -20,38 +20,4 @@
#
############################################################################
set(AUTOGEN_COMMAND "./autogen.sh")
set(CONFIGURE_OPTIONS
"--prefix=${CMAKE_INSTALL_PREFIX}"
"--host=$ENV{HOST}"
"--disable-static"
"--enable-shared"
"--disable-strict"
"--disable-nls"
"--with-readline=none"
"--enable-gtk_ui=no"
"--enable-console_ui=no"
"--disable-theora"
"--disable-sdl"
"--disable-x11"
"--enable-bellesip"
"--disable-tutorials"
"--disable-tools"
"--disable-msg-storage"
"--disable-video"
"--disable-zrtp"
"--enable-broken-srtp"
"--disable-alsa"
)
set(CONFIGURE_COMMAND "PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}" "CONFIG_SITE=${AUTOTOOLS_CONFIG_SITE}" "./configure" "${CONFIGURE_OPTIONS}")
set(BUILD_COMMAND "PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}" "CONFIG_SITE=${AUTOTOOLS_CONFIG_SITE}" "make")
set(DEPENDENCIES_EP_linphone EP_bellesip EP_xml2 EP_gsm EP_speex EP_opus EP_srtp)
ExternalProject_Add(EP_linphone
DEPENDS ${DEPENDENCIES_EP_linphone}
GIT_REPOSITORY git://git.linphone.org/linphone.git
GIT_TAG master
CONFIGURE_COMMAND ${AUTOGEN_COMMAND} COMMAND ${CONFIGURE_COMMAND}
BUILD_COMMAND ${BUILD_COMMAND}
BUILD_IN_SOURCE 1
)
linphone_builder_add_autotools_project(linphone)
#!/bin/sh
export CC=@LINPHONE_BUILDER_TOOLCHAIN_CC@
export CXX=@LINPHONE_BUILDER_TOOLCHAIN_CXX@
export LD=@LINPHONE_BUILDER_TOOLCHAIN_LD@
export AR=@LINPHONE_BUILDER_TOOLCHAIN_AR@
export RANLIB=@LINPHONE_BUILDER_TOOLCHAIN_RANLIB@
export STRIP=@LINPHONE_BUILDER_TOOLCHAIN_STRIP@
export NM=@LINPHONE_BUILDER_TOOLCHAIN_NM@
export CPPFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS@ @EP_linphone_EXTRA_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CFLAGS@ @EP_linphone_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @EP_linphone_EXTRA_CXXFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS@ @EP_linphone_EXTRA_LDFLAGS@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
make V=@CMAKE_VERBOSE_MAKEFILE@
#!/bin/sh
export CC=@LINPHONE_BUILDER_TOOLCHAIN_CC@
export CXX=@LINPHONE_BUILDER_TOOLCHAIN_CXX@
export LD=@LINPHONE_BUILDER_TOOLCHAIN_LD@
export AR=@LINPHONE_BUILDER_TOOLCHAIN_AR@
export RANLIB=@LINPHONE_BUILDER_TOOLCHAIN_RANLIB@
export STRIP=@LINPHONE_BUILDER_TOOLCHAIN_STRIP@
export NM=@LINPHONE_BUILDER_TOOLCHAIN_NM@
export CPPFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS@ @EP_linphone_EXTRA_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CFLAGS@ @EP_linphone_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @EP_linphone_EXTRA_CXXFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS@ @EP_linphone_EXTRA_LDFLAGS@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
if [ ! -f config.h ]; then
./autogen.sh
./configure "--prefix=@CMAKE_INSTALL_PREFIX@" "--host=@LINPHONE_BUILDER_TOOLCHAIN_HOST@" @EP_linphone_CONFIGURE_OPTIONS@
fi
#!/bin/sh
export CC=@LINPHONE_BUILDER_TOOLCHAIN_CC@
export CXX=@LINPHONE_BUILDER_TOOLCHAIN_CXX@
export LD=@LINPHONE_BUILDER_TOOLCHAIN_LD@
export AR=@LINPHONE_BUILDER_TOOLCHAIN_AR@
export RANLIB=@LINPHONE_BUILDER_TOOLCHAIN_RANLIB@
export STRIP=@LINPHONE_BUILDER_TOOLCHAIN_STRIP@
export NM=@LINPHONE_BUILDER_TOOLCHAIN_NM@
export CPPFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS@ @EP_linphone_EXTRA_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CFLAGS@ @EP_linphone_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @EP_linphone_EXTRA_CXXFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS@ @EP_linphone_EXTRA_LDFLAGS@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
make V=@CMAKE_VERBOSE_MAKEFILE@ install
......@@ -20,24 +20,4 @@
#
############################################################################
set(AUTOGEN_COMMAND "./autogen.sh")
set(CONFIGURE_OPTIONS
"--prefix=${CMAKE_INSTALL_PREFIX}"
"--host=$ENV{HOST}"
"--disable-static"
"--enable-shared"
"--disable-extra-programs"
"--disable-doc"
"--enable-fixed-point"
"--disable-asm"
)
set(CONFIGURE_COMMAND "PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}" "CONFIG_SITE=${AUTOTOOLS_CONFIG_SITE}" "./configure" "${CONFIGURE_OPTIONS}")
set(BUILD_COMMAND "PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}" "CONFIG_SITE=${AUTOTOOLS_CONFIG_SITE}" "make")
ExternalProject_Add(EP_opus
GIT_REPOSITORY git://git.opus-codec.org/opus.git
GIT_TAG v1.0.3
CONFIGURE_COMMAND ${AUTOGEN_COMMAND} COMMAND ${CONFIGURE_COMMAND}
BUILD_COMMAND ${BUILD_COMMAND}
BUILD_IN_SOURCE 1
)
linphone_builder_add_autotools_project(opus)
#!/bin/sh
export CC=@LINPHONE_BUILDER_TOOLCHAIN_CC@
export CXX=@LINPHONE_BUILDER_TOOLCHAIN_CXX@
export LD=@LINPHONE_BUILDER_TOOLCHAIN_LD@
export AR=@LINPHONE_BUILDER_TOOLCHAIN_AR@
export RANLIB=@LINPHONE_BUILDER_TOOLCHAIN_RANLIB@
export STRIP=@LINPHONE_BUILDER_TOOLCHAIN_STRIP@
export NM=@LINPHONE_BUILDER_TOOLCHAIN_NM@
export CPPFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS@ @EP_opus_EXTRA_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CFLAGS@ @EP_opus_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @EP_opus_EXTRA_CXXFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS@ @EP_opus_EXTRA_LDFLAGS@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
make V=@CMAKE_VERBOSE_MAKEFILE@
#!/bin/sh
export CC=@LINPHONE_BUILDER_TOOLCHAIN_CC@
export CXX=@LINPHONE_BUILDER_TOOLCHAIN_CXX@
export LD=@LINPHONE_BUILDER_TOOLCHAIN_LD@
export AR=@LINPHONE_BUILDER_TOOLCHAIN_AR@
export RANLIB=@LINPHONE_BUILDER_TOOLCHAIN_RANLIB@
export STRIP=@LINPHONE_BUILDER_TOOLCHAIN_STRIP@
export NM=@LINPHONE_BUILDER_TOOLCHAIN_NM@
export CPPFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS@ @EP_opus_EXTRA_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CFLAGS@ @EP_opus_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @EP_opus_EXTRA_CXXFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS@ @EP_opus_EXTRA_LDFLAGS@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
if [ ! -f config.h ]; then
./autogen.sh
./configure "--prefix=@CMAKE_INSTALL_PREFIX@" "--host=@LINPHONE_BUILDER_TOOLCHAIN_HOST@" @EP_opus_CONFIGURE_OPTIONS@
fi
#!/bin/sh
export CC=@LINPHONE_BUILDER_TOOLCHAIN_CC@
export CXX=@LINPHONE_BUILDER_TOOLCHAIN_CXX@
export LD=@LINPHONE_BUILDER_TOOLCHAIN_LD@
export AR=@LINPHONE_BUILDER_TOOLCHAIN_AR@
export RANLIB=@LINPHONE_BUILDER_TOOLCHAIN_RANLIB@
export STRIP=@LINPHONE_BUILDER_TOOLCHAIN_STRIP@
export NM=@LINPHONE_BUILDER_TOOLCHAIN_NM@
export CPPFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS@ @EP_opus_EXTRA_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CFLAGS@ @EP_opus_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @EP_opus_EXTRA_CXXFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS@ @EP_opus_EXTRA_LDFLAGS@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
make V=@CMAKE_VERBOSE_MAKEFILE@ install
......@@ -20,8 +20,4 @@
#
############################################################################
ExternalProject_Add(EP_polarssl
GIT_REPOSITORY git://git.linphone.org/polarssl.git
GIT_TAG linphone
CMAKE_ARGS ${GENERAL_EP_ARGS}
)
linphone_builder_add_cmake_project(polarssl)
......@@ -20,28 +20,4 @@
#
############################################################################
set(AUTOGEN_COMMAND "./autogen.sh")
set(CONFIGURE_OPTIONS
"--prefix=${CMAKE_INSTALL_PREFIX}"
"--host=$ENV{HOST}"
"--disable-static"
"--enable-shared"
"--disable-ogg"
)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "arm")
list(APPEND CONFIGURE_OPTIONS
"--enable-fixed-point"
"--disable-float-api"
)
#"--enable-armv7neon-asm"
endif()
set(CONFIGURE_COMMAND "PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}" "CONFIG_SITE=${AUTOTOOLS_CONFIG_SITE}" "./configure" "${CONFIGURE_OPTIONS}")
set(BUILD_COMMAND "PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}" "CONFIG_SITE=${AUTOTOOLS_CONFIG_SITE}" "make")
ExternalProject_Add(EP_speex
GIT_REPOSITORY git://git.linphone.org/speex.git
GIT_TAG linphone
CONFIGURE_COMMAND ${AUTOGEN_COMMAND} COMMAND ${CONFIGURE_COMMAND}
BUILD_COMMAND ${BUILD_COMMAND}
BUILD_IN_SOURCE 1
)
linphone_builder_add_cmake_project(speex)
......@@ -20,18 +20,4 @@
#
############################################################################
set(AUTOGEN_COMMAND "autoconf")
set(CONFIGURE_OPTIONS
"--prefix=${CMAKE_INSTALL_PREFIX}"
"--host=$ENV{HOST}"
)
set(CONFIGURE_COMMAND "PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}" "CONFIG_SITE=${AUTOTOOLS_CONFIG_SITE}" "./configure" "${CONFIGURE_OPTIONS}")
set(BUILD_COMMAND "PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}" "CONFIG_SITE=${AUTOTOOLS_CONFIG_SITE}" "make" "libsrtp.so")
ExternalProject_Add(EP_srtp
GIT_REPOSITORY git://git.linphone.org/srtp.git
GIT_TAG master
CONFIGURE_COMMAND ${AUTOGEN_COMMAND} COMMAND ${CONFIGURE_COMMAND}
BUILD_COMMAND ${BUILD_COMMAND}
BUILD_IN_SOURCE 1
)
linphone_builder_add_autotools_project(srtp)
#!/bin/sh
export CC=@LINPHONE_BUILDER_TOOLCHAIN_CC@
export CXX=@LINPHONE_BUILDER_TOOLCHAIN_CXX@
export LD=@LINPHONE_BUILDER_TOOLCHAIN_LD@
export AR=@LINPHONE_BUILDER_TOOLCHAIN_AR@
export RANLIB=@LINPHONE_BUILDER_TOOLCHAIN_RANLIB@
export STRIP=@LINPHONE_BUILDER_TOOLCHAIN_STRIP@
export NM=@LINPHONE_BUILDER_TOOLCHAIN_NM@
export CPPFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS@ @EP_srtp_EXTRA_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CFLAGS@ @EP_srtp_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @EP_srtp_EXTRA_CXXFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS@ @EP_srtp_EXTRA_LDFLAGS@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
make V=@CMAKE_VERBOSE_MAKEFILE@
#!/bin/sh
export CC=@LINPHONE_BUILDER_TOOLCHAIN_CC@
export CXX=@LINPHONE_BUILDER_TOOLCHAIN_CXX@
export LD=@LINPHONE_BUILDER_TOOLCHAIN_LD@
export AR=@LINPHONE_BUILDER_TOOLCHAIN_AR@
export RANLIB=@LINPHONE_BUILDER_TOOLCHAIN_RANLIB@
export STRIP=@LINPHONE_BUILDER_TOOLCHAIN_STRIP@
export NM=@LINPHONE_BUILDER_TOOLCHAIN_NM@
export CPPFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS@ @EP_srtp_EXTRA_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CFLAGS@ @EP_srtp_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @EP_srtp_EXTRA_CXXFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS@ @EP_srtp_EXTRA_LDFLAGS@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
if [ ! -f config.h ]; then
./autogen.sh
./configure "--prefix=@CMAKE_INSTALL_PREFIX@" "--host=@LINPHONE_BUILDER_TOOLCHAIN_HOST@" @EP_srtp_CONFIGURE_OPTIONS@
fi
#!/bin/sh
export CC=@LINPHONE_BUILDER_TOOLCHAIN_CC@
export CXX=@LINPHONE_BUILDER_TOOLCHAIN_CXX@
export LD=@LINPHONE_BUILDER_TOOLCHAIN_LD@
export AR=@LINPHONE_BUILDER_TOOLCHAIN_AR@
export RANLIB=@LINPHONE_BUILDER_TOOLCHAIN_RANLIB@
export STRIP=@LINPHONE_BUILDER_TOOLCHAIN_STRIP@
export NM=@LINPHONE_BUILDER_TOOLCHAIN_NM@
export CPPFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS@ @EP_srtp_EXTRA_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_CFLAGS@ @EP_srtp_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @EP_srtp_EXTRA_CXXFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS@ @EP_srtp_EXTRA_LDFLAGS@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
make V=@CMAKE_VERBOSE_MAKEFILE@ install
......@@ -20,22 +20,4 @@
#
############################################################################
set(AUTOGEN_COMMAND "PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}" "CONFIG_SITE=${AUTOTOOLS_CONFIG_SITE}" "./autogen.sh" "--prefix=${CMAKE_INSTALL_PREFIX}" "--host=$ENV{HOST}")
set(CONFIGURE_OPTIONS
"--disable-static"
"--enable-shared"
"--disable-rebuild-docs"
"--with-iconv=no"
"--with-python=no"
"--with-zlib=no"
"--with-modules=no"
)
set(BUILD_COMMAND "PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}" "CONFIG_SITE=${AUTOTOOLS_CONFIG_SITE}" "make")
ExternalProject_Add(EP_xml2
GIT_REPOSITORY git://git.gnome.org/libxml2
GIT_TAG v2.8.0
CONFIGURE_COMMAND ${AUTOGEN_COMMAND} ${CONFIGURE_OPTIONS}
BUILD_COMMAND ${BUILD_COMMAND}
BUILD_IN_SOURCE 1
)
linphone_builder_add_autotools_project(xml2)