Commit dc274cce authored by Ghislain MARY's avatar Ghislain MARY

Clean handling of compilation flags + pass flags from CMake depending on the...

Clean handling of compilation flags + pass flags from CMake depending on the generator to the autotools projects.
parent d7b8ac27
......@@ -44,6 +44,10 @@ endif()
get_filename_component(LINPHONE_BUILDER_CONFIG_FILE ${LINPHONE_BUILDER_CONFIG_FILE} ABSOLUTE)
message(STATUS "Using configuration file '${LINPHONE_BUILDER_CONFIG_FILE}'")
include(${LINPHONE_BUILDER_CONFIG_FILE})
# Get build tools and flags for autotools projects, then include external projects
linphone_builder_get_autotools_configuration()
linphone_builder_apply_flags()
linphone_builder_add_external_projects()
......
#!/bin/sh
export CC="@CMAKE_C_COMPILER@"
export CXX="@CMAKE_CXX_COMPILER@"
export OBJC="@CMAKE_C_COMPILER@"
export LD="@CMAKE_LINKER@"
export AR="@CMAKE_AR@"
export RANLIB="@CMAKE_RANLIB@"
export STRIP="@CMAKE_STRIP@"
export NM="@CMAKE_NM@"
export CC="@AUTOTOOLS_C_COMPILER@"
export CXX="@AUTOTOOLS_CXX_COMPILER@"
export OBJC="@AUTOTOOLS_OBJC_COMPILER@"
export LD="@AUTOTOOLS_LINKER@"
export AR="@AUTOTOOLS_AR@"
export RANLIB="@AUTOTOOLS_RANLIB@"
export STRIP="@AUTOTOOLS_STRIP@"
export NM="@AUTOTOOLS_NM@"
export ASFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_ASFLAGS@"
export ASFLAGS="@LINPHONE_BUILDER_ASFLAGS@"
export CPPFLAGS="@LINPHONE_BUILDER_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@"
export OBJCFLAGS="@LINPHONE_BUILD_TOOLCHAIN_OBJCFLAGS@"
export CXXFLAGS="@LINPHONE_BUILDER_CXXFLAGS@"
export OBJCFLAGS="@LINPHONE_BUILDER_OBJCFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_LDFLAGS@"
export PKG_CONFIG="@LINPHONE_BUILDER_PKG_CONFIG@"
......
#!/bin/sh
export CC="@CMAKE_C_COMPILER@"
export CXX="@CMAKE_CXX_COMPILER@"
export OBJC="@CMAKE_C_COMPILER@"
export LD="@CMAKE_LINKER@"
export AR="@CMAKE_AR@"
export RANLIB="@CMAKE_RANLIB@"
export STRIP="@CMAKE_STRIP@"
export NM="@CMAKE_NM@"
export CC="@AUTOTOOLS_C_COMPILER@"
export CXX="@AUTOTOOLS_CXX_COMPILER@"
export OBJC="@AUTOTOOLS_OBJC_COMPILER@"
export LD="@AUTOTOOLS_LINKER@"
export AR="@AUTOTOOLS_AR@"
export RANLIB="@AUTOTOOLS_RANLIB@"
export STRIP="@AUTOTOOLS_STRIP@"
export NM="@AUTOTOOLS_NM@"
export ASFLAGS="@LINPHONE_BUILDER_TOOLCHAIN_ASFLAGS@"
export ASFLAGS="@LINPHONE_BUILDER_ASFLAGS@"
export CPPFLAGS="@LINPHONE_BUILDER_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@"
export OBJCFLAGS="@LINPHONE_BUILD_TOOLCHAIN_OBJCFLAGS@"
export CXXFLAGS="@LINPHONE_BUILDER_CXXFLAGS@"
export OBJCFLAGS="@LINPHONE_BUILDER_OBJCFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_LDFLAGS@"
export PKG_CONFIG="@LINPHONE_BUILDER_PKG_CONFIG@"
......
############################################################################
# Autotools.cmake.in
# Copyright (C) 2014 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
############################################################################
set(AUTOTOOLS_C_COMPILER "@CMAKE_C_COMPILER@" CACHE PATH "Initial cache" FORCE)
set(AUTOTOOLS_CXX_COMPILER "@CMAKE_CXX_COMPILER@" CACHE PATH "Initial cache" FORCE)
set(AUTOTOOLS_OBJC_COMPILER "@CMAKE_C_COMPILER@" CACHE PATH "Initial cache" FORCE)
set(AUTOTOOLS_LINKER "@CMAKE_LINKER@" CACHE PATH "Initial cache" FORCE)
set(AUTOTOOLS_AR "@CMAKE_AR@" CACHE PATH "Initial cache" FORCE)
set(AUTOTOOLS_RANLIB "@CMAKE_RANLIB@" CACHE PATH "Initial cache" FORCE)
set(AUTOTOOLS_STRIP "@CMAKE_STRIP@" CACHE PATH "Initial cache" FORCE)
set(AUTOTOOLS_NM "@CMAKE_NM@" CACHE PATH "Initial cache" FORCE)
set(AUTOTOOLS_C_FLAGS_DEBUG "@CMAKE_C_FLAGS_DEBUG@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_C_FLAGS_MINSIZEREL "@CMAKE_C_FLAGS_MINSIZEREL@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_C_FLAGS_RELEASE "@CMAKE_C_FLAGS_RELEASE@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_C_FLAGS_RELWITHDEBINFO "@CMAKE_C_FLAGS_RELWITHDEBINFO@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_C_FLAGS "@CMAKE_C_FLAGS@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_CXX_FLAGS_DEBUG "@CMAKE_CXX_FLAGS_DEBUG@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_CXX_FLAGS_MINSIZEREL "@CMAKE_CXX_FLAGS_MINSIZEREL@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_CXX_FLAGS_RELEASE "@CMAKE_CXX_FLAGS_RELEASE@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_CXX_FLAGS_RELWITHDEBINFO "@CMAKE_CXX_FLAGS_RELWITHDEBINFO@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_CXX_FLAGS "@CMAKE_CXX_FLAGS@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_OBJC_FLAGS_DEBUG "@CMAKE_C_FLAGS_DEBUG@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_OBJC_FLAGS_MINSIZEREL "@CMAKE_C_FLAGS_MINSIZEREL@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_OBJC_FLAGS_RELEASE "@CMAKE_C_FLAGS_RELEASE@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_OBJC_FLAGS_RELWITHDEBINFO "@CMAKE_C_FLAGS_RELWITHDEBINFO@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_OBJC_FLAGS "@CMAKE_C_FLAGS@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_LINKER_FLAGS_DEBUG "@CMAKE_EXE_LINKER_FLAGS_DEBUG@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_LINKER_FLAGS_MINSIZEREL "@CMAKE_EXE_LINKER_FLAGS_MINSIZEREL@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_LINKER_FLAGS_RELEASE "@CMAKE_EXE_LINKER_FLAGS_RELEASE@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_LINKER_FLAGS_RELWITHDEBINFO "@CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO@" CACHE STRING "Initial cache" FORCE)
set(AUTOTOOLS_LINKER_FLAGS "@CMAKE_EXE_LINKER_FLAGS@" CACHE STRING "Initial cache" FORCE)
############################################################################
# CMakeLists.txt
# Copyright (C) 2014 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
############################################################################
cmake_minimum_required(VERSION 2.8)
configure_file(${CMAKE_SOURCE_DIR}/Autotools.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/Autotools.cmake)
......@@ -127,17 +127,47 @@ if(CMAKE_TOOLCHAIN_FILE)
endif()
function(linphone_builder_get_autotools_configuration)
if(MSVC)
set(_generator "MinGW Makefiles")
else()
set(_generator "${CMAKE_GENERATOR}")
if(CMAKE_EXTRA_GENERATOR)
set(_extra_generator "${CMAKE_EXTRA_GENERATOR}")
endif()
endif()
set(_autotools_command ${CMAKE_COMMAND} -G "${_generator}")
if(_extra_generator)
list(APPEND _autotools_command -T "${_extra_generator}")
endif()
if(CMAKE_TOOLCHAIN_FILE)
list(APPEND _autotools_command "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}")
endif()
list(APPEND _autotools_command "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Autotools/")
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/Autotools)
execute_process(COMMAND ${_autotools_command} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Autotools)
unset(_autotools_command)
unset(_extra_generator)
unset(_generator)
include(${CMAKE_CURRENT_BINARY_DIR}/Autotools/Autotools.cmake)
endfunction(linphone_builder_get_autotools_configuration)
macro(linphone_builder_apply_flags)
foreach(BUILD_CONFIG "" "_DEBUG" "_MINSIZEREL" "_RELEASE" "_RELWITHDEBINFO")
if(NOT "${LINPHONE_BUILDER_CPPFLAGS}" STREQUAL "")
set(CMAKE_C_FLAGS${BUILD_CONFIG} "${CMAKE_C_FLAGS${BUILD_CONFIG}} ${LINPHONE_BUILDER_CPPFLAGS}")
set(CMAKE_CXX_FLAGS${BUILD_CONFIG} "${CMAKE_CXX_FLAGS${BUILD_CONFIG}} ${LINPHONE_BUILDER_CPPFLAGS}")
set(AUTOTOOLS_C_FLAGS${BUILD_CONFIG} "${AUTOTOOLS_C_FLAGS${BUILD_CONFIG}} ${LINPHONE_BUILDER_CPPFLAGS}")
set(AUTOTOOLS_CXX_FLAGS${BUILD_CONFIG} "${AUTOTOOLS_CXX_FLAGS${BUILD_CONFIG}} ${LINPHONE_BUILDER_CPPFLAGS}")
endif(NOT "${LINPHONE_BUILDER_CPPFLAGS}" STREQUAL "")
if(NOT "${LINPHONE_BUILDER_CFLAGS}" STREQUAL "")
set(CMAKE_C_FLAGS${BUILD_CONFIG} "${CMAKE_C_FLAGS${BUILD_CONFIG}} ${LINPHONE_BUILDER_CFLAGS}")
set(AUTOTOOLS_C_FLAGS${BUILD_CONFIG} "${AUTOTOOLS_C_FLAGS${BUILD_CONFIG}} ${LINPHONE_BUILDER_CFLAGS}")
endif(NOT "${LINPHONE_BUILDER_CFLAGS}" STREQUAL "")
if(NOT "${LINPHONE_BUILDER_CXXFLAGS}" STREQUAL "")
set(CMAKE_CXX_FLAGS${BUILD_CONFIG} "${CMAKE_CXX_FLAGS${BUILD_CONFIG}} ${LINPHONE_BUILDER_CXXFLAGS}")
set(AUTOTOOLS_CXX_FLAGS${BUILD_CONFIG} "{AUTOTOOLS_CXX_FLAGS${BUILD_CONFIG}} ${LINPHONE_BUILDER_CXX_FLAGS}")
endif(NOT "${LINPHONE_BUILDER_CXXFLAGS}" STREQUAL "")
if(NOT "${LINPHONE_BUILDER_LDFLAGS}" STREQUAL "")
# TODO: The two following lines should not be here
......@@ -147,6 +177,7 @@ macro(linphone_builder_apply_flags)
set(CMAKE_EXE_LINKER_FLAGS${BUILD_CONFIG} "${CMAKE_EXE_LINKER_FLAGS${BUILD_CONFIG}} ${LINPHONE_BUILDER_LDFLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS${BUILD_CONFIG} "${CMAKE_MODULE_LINKER_FLAGS${BUILD_CONFIG}} ${LINPHONE_BUILDER_LDFLAGS}")
set(CMAKE_SHARED_LINKER_FLAGS${BUILD_CONFIG} "${CMAKE_SHARED_LINKER_FLAGS${BUILD_CONFIG}} ${LINPHONE_BUILDER_LDFLAGS}")
set(AUTOTOOLS_LINKER_FLAGS${BUILD_CONFIG} "${AUTOTOOLS_LINKER_FLAGS${BUILD_CONFIG}} ${LINPHONE_BUILDER_LDFLAGS}")
endif(NOT "${LINPHONE_BUILDER_LDFLAGS}" STREQUAL "")
endforeach(BUILD_CONFIG)
endmacro(linphone_builder_apply_flags)
......@@ -154,31 +185,31 @@ endmacro(linphone_builder_apply_flags)
macro(linphone_builder_apply_cmake_flags_to_autotools_project PROJNAME)
if("${EP_${PROJNAME}_BUILD_METHOD}" STREQUAL "autotools")
if(NOT MSVC)
set(BUILD_TYPES "Debug" "Release" "RelWithDebInfo" "MinSizeRel")
list(FIND BUILD_TYPES "${CMAKE_BUILD_TYPE}" BUILD_TYPE_FOUND)
set(BUILD_TYPE_SUFFIX "")
if(NOT ${BUILD_TYPE_FOUND} EQUAL -1)
string(TOUPPER "${CMAKE_BUILD_TYPE}" UPPER_BUILD_TYPE)
set(BUILD_TYPE_SUFFIX "_${UPPER_BUILD_TYPE}")
endif(NOT ${BUILD_TYPE_FOUND} EQUAL -1)
set(ep_asflags "${CMAKE_AS_FLAGS${BUILD_TYPE_SUFFIX}}")
set(ep_cppflags "${CMAKE_CPP_FLAGS${BUILD_TYPE_SUFFIX}}")
set(ep_cflags "${CMAKE_C_FLAGS${BUILD_TYPE_SUFFIX}}")
set(ep_cxxflags "${CMAKE_CXX_FLAGS${BUILD_TYPE_SUFFIX}}")
set(ep_ldflags "${CMAKE_LD_FLAGS${BUILD_TYPE_SUFFIX}}")
endif(NOT MSVC)
set(BUILD_TYPES "Debug" "Release" "RelWithDebInfo" "MinSizeRel")
list(FIND BUILD_TYPES "${CMAKE_BUILD_TYPE}" BUILD_TYPE_FOUND)
set(BUILD_TYPE_SUFFIX "")
if(NOT ${BUILD_TYPE_FOUND} EQUAL -1)
string(TOUPPER "${CMAKE_BUILD_TYPE}" UPPER_BUILD_TYPE)
set(BUILD_TYPE_SUFFIX "_${UPPER_BUILD_TYPE}")
endif(NOT ${BUILD_TYPE_FOUND} EQUAL -1)
set(ep_asflags "${AUTOTOOLS_AS_FLAGS${BUILD_TYPE_SUFFIX}}")
set(ep_cppflags "${AUTOTOOLS_CPP_FLAGS${BUILD_TYPE_SUFFIX}}")
set(ep_cflags "${AUTOTOOLS_C_FLAGS${BUILD_TYPE_SUFFIX}}")
set(ep_cxxflags "${AUTOTOOLS_CXX_FLAGS${BUILD_TYPE_SUFFIX}}")
set(ep_objcflags "${AUTOTOOLS_OBJC_FLAGS${BUILD_TYPE_SUFFIX}}")
set(ep_ldflags "${AUTOTOOLS_LD_FLAGS${BUILD_TYPE_SUFFIX}}")
endif()
endmacro(linphone_builder_apply_cmake_flags_to_autotools_project)
macro(linphone_builder_apply_extra_flags PROJNAME)
if("${EP_${PROJNAME}_BUILD_METHOD}" STREQUAL "autotools")
set(ep_extra_asflags ${EP_${PROJNAME}_EXTRA_ASFLAGS})
set(ep_extra_cppflags ${EP_${PROJNAME}_EXTRA_CPPFLAGS})
set(ep_extra_cflags ${EP_${PROJNAME}_EXTRA_CFLAGS})
set(ep_extra_cxxflags ${EP_${PROJNAME}_EXTRA_CXXFLAGS})
set(ep_extra_ldflags ${EP_${PROJNAME}_EXTRA_LDFLAGS})
set(ep_asflags "${ep_asflags} ${EP_${PROJNAME}_EXTRA_ASFLAGS}")
set(ep_cppflags "${ep_cppflags} ${EP_${PROJNAME}_EXTRA_CPPFLAGS}")
set(ep_cflags "${ep_cflags} ${EP_${PROJNAME}_EXTRA_CFLAGS}")
set(ep_cxxflags "${ep_cxxflags} ${EP_${PROJNAME}_EXTRA_CXXFLAGS}")
set(ep_objcflags "${ep_objcflags} ${EP_${PROJNAME}_EXTRA_OBJCFLAGS}")
set(ep_ldflags "${ep_ldflags} ${EP_${PROJNAME}_EXTRA_LDFLAGS}")
else()
foreach(BUILD_CONFIG "" "_DEBUG" "_MINSIZEREL" "_RELEASE" "_RELWITHDEBINFO")
if(NOT "${EP_${PROJNAME}_EXTRA_CFLAGS}" STREQUAL "")
......
#!/bin/sh
export CC="@CMAKE_C_COMPILER@"
export CXX="@CMAKE_CXX_COMPILER@"
export OBJC="@CMAKE_C_COMPILER@"
export LD="@CMAKE_LINKER@"
export AR="@CMAKE_AR@"
export RANLIB="@CMAKE_RANLIB@"
export STRIP="@CMAKE_STRIP@"
export NM="@CMAKE_NM@"
export CC="@AUTOTOOLS_C_COMPILER@"
export CXX="@AUTOTOOLS_CXX_COMPILER@"
export OBJC="@AUTOTOOLS_OBJC_COMPILER@"
export LD="@AUTOTOOLS_LINKER@"
export AR="@AUTOTOOLS_AR@"
export RANLIB="@AUTOTOOLS_RANLIB@"
export STRIP="@AUTOTOOLS_STRIP@"
export NM="@AUTOTOOLS_NM@"
export ASFLAGS="@ep_asflags@ @LINPHONE_BUILDER_TOOLCHAIN_ASFLAGS@ @ep_extra_asflags@"
export CPPFLAGS="@ep_cppflags@ @LINPHONE_BUILDER_CPPFLAGS@ @ep_extra_cppflags@"
export CFLAGS="@ep_cflags@ @LINPHONE_BUILDER_CFLAGS@ @ep_extra_cflags@"
export CXXFLAGS="@ep_cxxflags@ @LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @ep_extra_cxxflags@"
export OBJCFLAGS="@ep_objcflags@ @LINPHONE_BUILD_TOOLCHAIN_OBJCFLAGS@ @ep_extra_objcflags@"
export LDFLAGS="@ep_ldflags@ @LINPHONE_BUILDER_LDFLAGS@ @ep_extra_ldflags@"
export ASFLAGS="@ep_asflags@"
export CPPFLAGS="@ep_cppflags@"
export CFLAGS="@ep_cflags@"
export CXXFLAGS="@ep_cxxflags@"
export OBJCFLAGS="@ep_objcflags@"
export LDFLAGS="@ep_ldflags@"
export PKG_CONFIG="@LINPHONE_BUILDER_PKG_CONFIG@"
export PKG_CONFIG_PATH="@LINPHONE_BUILDER_PKG_CONFIG_PATH@"
......
#!/bin/sh
export CC="@CMAKE_C_COMPILER@"
export CXX="@CMAKE_CXX_COMPILER@"
export OBJC="@CMAKE_C_COMPILER@"
export LD="@CMAKE_LINKER@"
export AR="@CMAKE_AR@"
export RANLIB="@CMAKE_RANLIB@"
export STRIP="@CMAKE_STRIP@"
export NM="@CMAKE_NM@"
export CC="@AUTOTOOLS_C_COMPILER@"
export CXX="@AUTOTOOLS_CXX_COMPILER@"
export OBJC="@AUTOTOOLS_OBJC_COMPILER@"
export LD="@AUTOTOOLS_LINKER@"
export AR="@AUTOTOOLS_AR@"
export RANLIB="@AUTOTOOLS_RANLIB@"
export STRIP="@AUTOTOOLS_STRIP@"
export NM="@AUTOTOOLS_NM@"
export ASFLAGS="@ep_asflags@ @LINPHONE_BUILDER_TOOLCHAIN_ASFLAGS@ @ep_extra_asflags@"
export CPPFLAGS="@ep_cppflags@ @LINPHONE_BUILDER_CPPFLAGS@ @ep_extra_cppflags@"
export CFLAGS="@ep_cflags@ @LINPHONE_BUILDER_CFLAGS@ @ep_extra_cflags@"
export CXXFLAGS="@ep_cxxflags@ @LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @ep_extra_cxxflags@"
export OBJCFLAGS="@ep_objcflags@ @LINPHONE_BUILD_TOOLCHAIN_OBJCFLAGS@ @ep_extra_objcflags@"
export LDFLAGS="@ep_ldflags@ @LINPHONE_BUILDER_LDFLAGS@ @ep_extra_ldflags@"
export ASFLAGS="@ep_asflags@"
export CPPFLAGS="@ep_cppflags@"
export CFLAGS="@ep_cflags@"
export CXXFLAGS="@ep_cxxflags@"
export OBJCFLAGS="@ep_objcflags@"
export LDFLAGS="@ep_ldflags@"
export PKG_CONFIG="@LINPHONE_BUILDER_PKG_CONFIG@"
export PKG_CONFIG_PATH="@LINPHONE_BUILDER_PKG_CONFIG_PATH@"
......
#!/bin/sh
export CC="@CMAKE_C_COMPILER@"
export CXX="@CMAKE_CXX_COMPILER@"
export OBJC="@CMAKE_C_COMPILER@"
export LD="@CMAKE_LINKER@"
export AR="@CMAKE_AR@"
export RANLIB="@CMAKE_RANLIB@"
export STRIP="@CMAKE_STRIP@"
export NM="@CMAKE_NM@"
export CC="@AUTOTOOLS_C_COMPILER@"
export CXX="@AUTOTOOLS_CXX_COMPILER@"
export OBJC="@AUTOTOOLS_OBJC_COMPILER@"
export LD="@AUTOTOOLS_LINKER@"
export AR="@AUTOTOOLS_AR@"
export RANLIB="@AUTOTOOLS_RANLIB@"
export STRIP="@AUTOTOOLS_STRIP@"
export NM="@AUTOTOOLS_NM@"
export ASFLAGS="@ep_asflags@ @LINPHONE_BUILDER_TOOLCHAIN_ASFLAGS@ @ep_extra_asflags@"
export CPPFLAGS="@ep_cppflags@ @LINPHONE_BUILDER_CPPFLAGS@ @ep_extra_cppflags@"
export CFLAGS="@ep_cflags@ @LINPHONE_BUILDER_CFLAGS@ @ep_extra_cflags@"
export CXXFLAGS="@ep_cxxflags@ @LINPHONE_BUILD_TOOLCHAIN_CXXFLAGS@ @ep_extra_cxxflags@"
export OBJCFLAGS="@ep_objcflags@ @LINPHONE_BUILD_TOOLCHAIN_OBJCFLAGS@ @ep_extra_objcflags@"
export LDFLAGS="@ep_ldflags@ @LINPHONE_BUILDER_LDFLAGS@ @ep_extra_ldflags@"
export ASFLAGS="@ep_asflags@"
export CPPFLAGS="@ep_cppflags@"
export CFLAGS="@ep_cflags@"
export CXXFLAGS="@ep_cxxflags@"
export OBJCFLAGS="@ep_objcflags@"
export LDFLAGS="@ep_ldflags@"
export PKG_CONFIG="@LINPHONE_BUILDER_PKG_CONFIG@"
export PKG_CONFIG_PATH="@LINPHONE_BUILDER_PKG_CONFIG_PATH@"
......
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