Commit 0700ca60 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Updated QNX build to use qcc

parent ffe43ea6
......@@ -29,6 +29,8 @@ set(DEFAULT_VALUE_ENABLE_SRTP ON)
set(DEFAULT_VALUE_ENABLE_UNIT_TESTS ON)
set(DEFAULT_VALUE_ENABLE_VIDEO ON)
set(DEFAULT_VALUE_ENABLE_ZRTP ON)
set(DEFAULT_VALUE_ENABLE_MKV OFF)
set(DEFAULT_VALUE_ENABLE_VPX ON)
set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_STATIC=YES")
......@@ -48,6 +50,10 @@ include(builders/CMakeLists.txt)
# belle-sip
set(EP_bellesip_EXTRA_CFLAGS "-DUSE_STRUCT_RES_STATE_NAMESERVERS ${EP_bellesip_EXTRA_CFLAGS}")
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TESTS=NO")
# bzrtp
list(APPEND EP_bzrtp_CMAKE_OPTIONS "-DENABLE_TESTS=NO")
# linphone
list(APPEND EP_linphone_CMAKE_OPTIONS
......@@ -57,7 +63,7 @@ list(APPEND EP_linphone_CMAKE_OPTIONS
"-DENABLE_NOTIFY=NO"
"-DENABLE_TOOLS=NO"
"-DENABLE_TUTORIALS=NO"
"-DENABLE_UNIT_TESTS=YES"
"-DENABLE_UNIT_TESTS=NO"
"-DENABLE_UPNP=NO"
"-DENABLE_MSG_STORAGE=YES"
"-DENABLE_NLS=NO"
......@@ -77,6 +83,7 @@ list(APPEND EP_ms2_CMAKE_OPTIONS
"-DENABLE_MKV=NO"
"-DENABLE_QNX=YES"
"-DENABLE_V4L=NO"
"-DENABLE_UNIT_TESTS=NO"
)
# polarssl
......
#!/bin/bash
source @BBNDK_ENV_SCRIPT@ && echo $CPUVARDIR
......@@ -45,6 +45,11 @@ execute_process(COMMAND ${CMAKE_CURRENT_BINARY_DIR}/get_qnx_target.sh
OUTPUT_VARIABLE QNX_TARGET
OUTPUT_STRIP_TRAILING_WHITESPACE
)
configure_file(${CMAKE_CURRENT_LIST_DIR}/get_qnx_arch.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/get_qnx_arch.sh)
execute_process(COMMAND ${CMAKE_CURRENT_BINARY_DIR}/get_qnx_arch.sh
OUTPUT_VARIABLE CPUVARDIR
OUTPUT_STRIP_TRAILING_WHITESPACE
)
file(GLOB COMPILER_PATH "${QNX_HOST}/usr/bin/${COMPILER_PREFIX}*-gcc")
if(COMPILER_PATH STREQUAL "")
......@@ -55,13 +60,17 @@ get_filename_component(COMPILER_NAME ${COMPILER_PATH} NAME)
string(REGEX REPLACE "-gcc$" "" BB10_TOOLCHAIN_PATH ${COMPILER_PATH})
string(REGEX REPLACE "-gcc$" "" BB10_TOOLCHAIN_HOST ${COMPILER_NAME})
foreach(TOOLNAME gcc g++)
file(GLOB TOOLPATH "${QNX_HOST}/usr/bin/${COMPILER_PREFIX}*-${TOOLNAME}-4*")
list(SORT TOOLPATH)
list(GET TOOLPATH -1 TOOLPATH)
if("${CPUVARDIR}" STREQUAL "armle-v7")
SET(arch gcc_ntoarmv7le)
else()
SET(arch gcc_ntox86)
endif()
foreach(TOOLNAME gcc g++ ld)
SET(TOOLPATH "${QNX_HOST}/usr/bin/qcc -V${arch}")
configure_file(${CMAKE_CURRENT_LIST_DIR}/tool_wrapper.cmake ${CMAKE_CURRENT_BINARY_DIR}/${BB10_TOOLCHAIN_HOST}-${TOOLNAME})
endforeach(TOOLNAME)
foreach(TOOLNAME ld ar ranlib strip nm as)
foreach(TOOLNAME ar ranlib strip nm as)
set(TOOLPATH "${BB10_TOOLCHAIN_PATH}-${TOOLNAME}")
configure_file(${CMAKE_CURRENT_LIST_DIR}/tool_wrapper.cmake ${CMAKE_CURRENT_BINARY_DIR}/${BB10_TOOLCHAIN_HOST}-${TOOLNAME})
endforeach(TOOLNAME)
......
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