Commit d04ec58f authored by Ghislain MARY's avatar Ghislain MARY

Ignore warnings for builders that are not Belledonne Communications source code.

parent 112803c1
......@@ -25,6 +25,7 @@ set(EP_antlr3c_GIT_TAG_LATEST "linphone" CACHE STRING "antlr3c tag to use when c
set(EP_antlr3c_GIT_TAG "52075ffb35975c6901e924b4a763b6fb23abd623" CACHE STRING "antlr3c tag to use")
set(EP_antlr3c_EXTERNAL_SOURCE_PATHS "antlr3c" "antlr3" "externals/antlr3")
set(EP_antlr3c_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_antlr3c_IGNORE_WARNINGS TRUE)
set(EP_antlr3c_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_LINKING_TYPE})
if(MSVC)
......
......@@ -45,6 +45,7 @@ else()
set(EP_ffmpeg_GIT_TAG "51aa587f7ddac63c831d73eb360e246765a2675f" CACHE STRING "ffmpeg tag to use")
set(EP_ffmpeg_EXTERNAL_SOURCE_PATHS "externals/ffmpeg")
set(EP_ffmpeg_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_ffmpeg_IGNORE_WARNINGS TRUE)
set(EP_ffmpeg_BUILD_METHOD "autotools")
set(EP_ffmpeg_CONFIGURE_OPTIONS
"--disable-zlib"
......
......@@ -25,6 +25,7 @@ set(EP_gsm_GIT_TAG_LATEST "linphone" CACHE STRING "gsm tag to use when compiling
set(EP_gsm_GIT_TAG "0f8822b5326c76bb9dc4c6b552631f51792c3982" CACHE STRING "gsm tag to use")
set(EP_gsm_EXTERNAL_SOURCE_PATHS "gsm" "externals/gsm")
set(EP_gsm_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_gsm_IGNORE_WARNINGS TRUE)
set(EP_gsm_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_LINKING_TYPE})
if(MSVC)
......
......@@ -25,6 +25,7 @@ set(EP_mbedtls_GIT_TAG_LATEST "linphone" CACHE STRING "mbedtls tag to use when c
set(EP_mbedtls_GIT_TAG "3b88f2749d59e5346de08e121fba1d797c55ddaa" CACHE STRING "mbedtls tag to use")
set(EP_mbedtls_EXTERNAL_SOURCE_PATHS "mbedtls" "externals/mbedtls")
set(EP_mbedtls_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_mbedtls_IGNORE_WARNINGS TRUE)
set(EP_mbedtls_LINKING_TYPE "-DUSE_STATIC_MBEDTLS_LIBRARY=NO" "-DUSE_SHARED_MBEDTLS_LIBRARY=YES")
set(EP_mbedtls_CMAKE_OPTIONS "-DENABLE_PROGRAMS=NO" "-DENABLE_TESTING=NO")
......
......@@ -36,6 +36,7 @@ else()
set(EP_opencoreamr_URL "http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.3.tar.gz")
set(EP_opencoreamr_URL_HASH "MD5=09d2c5dfb43a9f6e9fec8b1ae678e725")
set(EP_opencoreamr_EXTERNAL_SOURCE_PATHS "externals/opencore-amr" "opencore-amr")
set(EP_opencoreamr_IGNORE_WARNINGS TRUE)
set(EP_opencoreamr_PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/builders/opencoreamr/CMakeLists.txt" "<SOURCE_DIR>")
set(EP_opencoreamr_LINKING_TYPE "-DENABLE_STATIC=YES")
......
......@@ -40,6 +40,7 @@ else()
set(EP_openh264_GIT_REPOSITORY "https://github.com/cisco/openh264" CACHE STRING "openh264 repository URL")
set(EP_openh264_GIT_TAG "v${EP_openh264_VERSION}" CACHE STRING "openh264 tag to use")
set(EP_openh264_EXTERNAL_SOURCE_PATHS "externals/openh264")
set(EP_openh264_IGNORE_WARNINGS TRUE)
set(EP_openh264_BUILD_METHOD "custom")
set(EP_openh264_LINKING_TYPE "-static")
......
......@@ -37,6 +37,7 @@ else()
set(EP_opus_URL_HASH "MD5=cfb354d4c65217ca32a762f8ab15f2ac")
set(EP_opus_EXTERNAL_SOURCE_PATHS "opus" "externals/opus")
set(EP_opus_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_opus_IGNORE_WARNINGS TRUE)
set(EP_opus_PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/builders/opus/CMakeLists.txt" "<SOURCE_DIR>")
list(APPEND EP_opus_PATCH_COMMAND "COMMAND" "${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/builders/opus/config.h.cmake" "<SOURCE_DIR>")
......
......@@ -25,6 +25,7 @@ set(EP_polarssl_GIT_TAG_LATEST "linphone-1.4" CACHE STRING "polarssl tag to use
set(EP_polarssl_GIT_TAG "3b7c2443e75e51b7af67a3e5dcb3771ae3120ff3" CACHE STRING "polarssl tag to use")
set(EP_polarssl_EXTERNAL_SOURCE_PATHS "polarssl" "externals/polarssl")
set(EP_polarssl_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_polarssl_IGNORE_WARNINGS TRUE)
set(EP_polarssl_LINKING_TYPE "-DUSE_SHARED_POLARSSL_LIBRARY=1")
if(MSVC)
......
......@@ -25,6 +25,7 @@ set(EP_speex_GIT_TAG_LATEST "linphone" CACHE STRING "speex tag to use when compi
set(EP_speex_GIT_TAG "fc1dd43c3c9d244bca1c300e408ce0373dbd5ed8" CACHE STRING "speex tag to use")
set(EP_speex_EXTERNAL_SOURCE_PATHS "speex" "externals/speex")
set(EP_speex_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_speex_IGNORE_WARNINGS TRUE)
set(EP_speex_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_LINKING_TYPE})
set(EP_speex_CMAKE_OPTIONS "-DENABLE_SPEEX_DSP=YES" "-DENABLE_SPEEX_CODEC=${ENABLE_SPEEX}")
......
......@@ -23,6 +23,7 @@
set(EP_sqlite3_URL "http://www.sqlite.org/2014/sqlite-amalgamation-3080702.zip")
set(EP_sqlite3_URL_HASH "MD5=10587262e4381358b707df75392c895f")
set(EP_sqlite3_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_sqlite3_IGNORE_WARNINGS TRUE)
set(EP_sqlite3_PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/builders/sqlite3/CMakeLists.txt" "<SOURCE_DIR>")
if(WIN32)
......
......@@ -25,6 +25,7 @@ set(EP_srtp_GIT_TAG_LATEST "master" CACHE STRING "srtp tag to use when compiling
set(EP_srtp_GIT_TAG "befc23777e07efba36ffd7bda73f22c92d4e2475" CACHE STRING "srtp tag to use")
set(EP_srtp_EXTERNAL_SOURCE_PATHS "srtp" "externals/srtp")
set(EP_srtp_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_srtp_IGNORE_WARNINGS TRUE)
set(EP_srtp_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_LINKING_TYPE})
if(MSVC)
......
......@@ -23,6 +23,7 @@
set(EP_v4l_URL "http://linuxtv.org/downloads/v4l-utils/v4l-utils-1.0.0.tar.bz2")
set(EP_v4l_URL_HASH "MD5=2127f2d06be9162b0d346f7037a9e852")
set(EP_v4l_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_v4l_IGNORE_WARNINGS TRUE)
set(EP_v4l_BUILD_METHOD "autotools")
set(EP_v4l_CROSS_COMPILATION_OPTIONS
......
......@@ -36,6 +36,7 @@ else()
set(EP_voamrwbenc_URL "http://downloads.sourceforge.net/project/opencore-amr/vo-amrwbenc/vo-amrwbenc-0.1.3.tar.gz")
set(EP_voamrwbenc_URL_HASH "MD5=f63bb92bde0b1583cb3cb344c12922e0")
set(EP_voamrwbenc_EXTERNAL_SOURCE_PATHS "externals/vo-amrwbenc" "vo-amrwbenc")
set(EP_voamrwbenc_IGNORE_WARNINGS TRUE)
set(EP_voamrwbenc_PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/builders/voamrwbenc/CMakeLists.txt" "<SOURCE_DIR>")
set(EP_voamrwbenc_CMAKE_OPTIONS )
......
......@@ -40,6 +40,7 @@ else()
set(EP_vpx_URL_HASH "MD5=49e59dd184caa255886683facea56fca")
set(EP_vpx_EXTERNAL_SOURCE_PATHS "externals/libvpx")
set(EP_vpx_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_vpx_IGNORE_WARNINGS TRUE)
set(EP_vpx_BUILD_METHOD "autotools")
set(EP_vpx_DO_NOT_USE_CMAKE_FLAGS TRUE)
set(EP_vpx_CONFIG_H_FILE vpx_config.h)
......
......@@ -23,6 +23,7 @@
set(EP_x264_GIT_REPOSITORY "git://git.videolan.org/x264.git" CACHE STRING "x264 repository URL")
set(EP_x264_GIT_TAG "adc99d17d8c1fbc164fae8319b40d7c45f30314e" CACHE STRING "x264 tag to use")
set(EP_x264_EXTERNAL_SOURCE_PATHS "externals/x264")
set(EP_x264_IGNORE_WARNINGS TRUE)
set(EP_x264_BUILD_METHOD "autotools")
set(EP_x264_CROSS_COMPILATION_OPTIONS
......
......@@ -37,6 +37,7 @@ else()
set(EP_xml2_GIT_TAG "v2.8.0" CACHE STRING "xml2 tag to use")
set(EP_xml2_EXTERNAL_SOURCE_PATHS "libxml2" "xml2" "externals/libxml2")
set(EP_xml2_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_xml2_IGNORE_WARNINGS TRUE)
set(EP_xml2_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_LINKING_TYPE})
set(EP_xml2_PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/builders/xml2/CMakeLists.txt" "<SOURCE_DIR>")
......
......@@ -25,6 +25,7 @@ set(EP_zlib_GIT_TAG_LATEST "master" CACHE STRING "zlib tag to use when compiling
set(EP_zlib_GIT_TAG "91eb77a7c5bfe7b4cc6b722aa96548d7143a9936" CACHE STRING "zlib tag to use")
set(EP_zlib_EXTERNAL_SOURCE_PATHS "zlib")
set(EP_zlib_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_zlib_IGNORE_WARNINGS TRUE)
if(MSVC)
set(EP_zlib_EXTRA_LDFLAGS "/SAFESEH:NO")
......
......@@ -310,6 +310,12 @@ endmacro()
macro(linphone_builder_apply_extra_flags PROJNAME)
if(MSVC)
set(_no_warnings_flag "/W0")
else()
set(_no_warnings_flag "-w")
endif()
if(EP_${PROJNAME}_BUILD_METHOD STREQUAL "autotools")
set(ep_asflags "${ep_asflags} ${EP_${PROJNAME}_EXTRA_ASFLAGS}")
set(ep_cppflags "${ep_cppflags} ${EP_${PROJNAME}_EXTRA_CPPFLAGS}")
......@@ -317,6 +323,9 @@ macro(linphone_builder_apply_extra_flags PROJNAME)
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}")
if(EP_${PROJNAME}_IGNORE_WARNINGS)
set(ep_cppflags "${ep_cppflags} ${_no_warnings_flag}")
endif()
else()
set(SAVED_CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set(SAVED_CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
......@@ -334,6 +343,10 @@ macro(linphone_builder_apply_extra_flags PROJNAME)
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${EP_${PROJNAME}_EXTRA_LDFLAGS}")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${EP_${PROJNAME}_EXTRA_LDFLAGS}")
endif()
if(EP_${PROJNAME}_IGNORE_WARNINGS)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${_no_warnings_flag}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_no_warnings_flag}")
endif()
endif()
endmacro()
......
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