Commit f5f3487b authored by Ghislain MARY's avatar Ghislain MARY

Add a config to build the desktop version for raspberry pi.

parent 05c53c2c
############################################################################
# config-desktop-raspberry.cmake
# Copyright (C) 2016 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.
#
############################################################################
get_filename_component(COMPILER_NAME ${CMAKE_C_COMPILER} NAME)
string(REGEX REPLACE "-gcc$" "" LINPHONE_BUILDER_HOST ${COMPILER_NAME})
unset(COMPILER_NAME)
set(LINPHONE_BUILDER_PKG_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig/:${SYSROOT_PATH}/usr/lib/pkgconfig")
include("configs/config-desktop.cmake")
set(DEFAULT_VALUE_ENABLE_WASAPI OFF)
# ffmpeg
set(EP_ffmpeg_CROSS_COMPILATION_OPTIONS
"--prefix=${CMAKE_INSTALL_PREFIX}"
"--enable-cross-compile"
"--cross-prefix=arm-linux-gnueabihf-"
"--arch=arm"
"--target-os=linux"
)
# linphone
linphone_builder_add_cmake_option(linphone "-DENABLE_GTK_UI=NO")
# opus
linphone_builder_add_cmake_option(opus "-DENABLE_FIXED_POINT=YES")
# vpx
set(EP_vpx_CROSS_COMPILATION_OPTIONS
"--prefix=${CMAKE_INSTALL_PREFIX}"
"--target=armv6-linux-gcc"
)
...@@ -40,7 +40,6 @@ set(DEFAULT_VALUE_ENABLE_ZRTP ON) ...@@ -40,7 +40,6 @@ set(DEFAULT_VALUE_ENABLE_ZRTP ON)
set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_STATIC=NO") set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_STATIC=NO")
# Global configuration # Global configuration
set(LINPHONE_BUILDER_HOST "")
if(APPLE) if(APPLE)
if(NOT CMAKE_OSX_DEPLOYMENT_TARGET) #is it still useful? if(NOT CMAKE_OSX_DEPLOYMENT_TARGET) #is it still useful?
#without instruction chose to target lower version between current machine and current used SDK #without instruction chose to target lower version between current machine and current used SDK
...@@ -74,10 +73,12 @@ if(WIN32) ...@@ -74,10 +73,12 @@ if(WIN32)
endif() endif()
# Adjust PKG_CONFIG_PATH to include install directory # Adjust PKG_CONFIG_PATH to include install directory
if(UNIX) if(NOT LINPHONE_BUILDER_PKG_CONFIG_PATH)
if(UNIX)
set(LINPHONE_BUILDER_PKG_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig/:$ENV{PKG_CONFIG_PATH}:/usr/lib/pkgconfig/:/usr/lib/x86_64-linux-gnu/pkgconfig/:/usr/share/pkgconfig/:/usr/local/lib/pkgconfig/:/opt/local/lib/pkgconfig/") set(LINPHONE_BUILDER_PKG_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig/:$ENV{PKG_CONFIG_PATH}:/usr/lib/pkgconfig/:/usr/lib/x86_64-linux-gnu/pkgconfig/:/usr/share/pkgconfig/:/usr/local/lib/pkgconfig/:/opt/local/lib/pkgconfig/")
else() # Windows else() # Windows
set(LINPHONE_BUILDER_PKG_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig/") set(LINPHONE_BUILDER_PKG_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig/")
endif()
endif() endif()
......
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