Commit 3baae2ce authored by Erwan Croze's avatar Erwan Croze 👋🏻

Adding zxing library to ms2

parent 68ffcb1f
......@@ -53,6 +53,7 @@ lcb_cmake_options(
"-DENABLE_G729=${ENABLE_G729}"
"-DENABLE_G729B_CNG=${ENABLE_G729B_CNG}"
"-DENABLE_JPEG=${ENABLE_JPEG}"
"-DENABLE_QRCODE=${ENABLE_QRCODE}"
)
if(ENABLE_GSM)
lcb_dependencies("gsm")
......@@ -72,6 +73,9 @@ endif()
if(ENABLE_JPEG)
lcb_dependencies("turbo-jpeg")
endif()
if(ENABLE_QRCODE)
lcb_dependencies("zxing")
endif()
lcb_cmake_options("-DENABLE_VIDEO=${ENABLE_VIDEO}")
if(ENABLE_VIDEO)
......
############################################################################
# zxing.cmake
# Copyright (C) 2018 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
############################################################################
lcb_git_repository("git@github.com:glassechidna/zxing-cpp.git")
lcb_external_source_paths("externals/zxing-cpp")
#lcb_linking_type("-DENABLE_STATIC=YES" "-DENABLE_SHARED=NO")
lcb_extra_cflags("-fPIC")
......@@ -46,9 +46,10 @@ lcb_add_option("OPUS" "OPUS audio encoding/decoding support." "${DEFAULT_VALUE_
lcb_add_option("Silk" "Silk audio encoding/decoding support." "${DEFAULT_VALUE_ENABLE_SILK}")
lcb_add_option("Speex" "Speex audio encoding/decoding support." "${DEFAULT_VALUE_ENABLE_SPEEX}")
lcb_add_option("BV16" "BroadVoice 16 audio encoding/decoding support." "${DEFAULT_VALUE_ENABLE_BV16}")
lcb_add_option("jpeg" "JPEG support with libjpeg-turbo." "${DEFAULT_VALUE_ENABLE_JPEG}")
#video options and codecs
lcb_add_option("Video" "Ability to capture and display video." "${DEFAULT_VALUE_ENABLE_VIDEO}")
lcb_add_option("jpeg" "JPEG support with libjpeg-turbo." "${DEFAULT_VALUE_ENABLE_JPEG}")
lcb_add_option("qrcode" "QRCode support with zxing." "${DEFAULT_VALUE_ENABLE_QRCODE}")
# FFMpeg is LGPL which is an issue only for iOS applications; otherwise it can be used in proprietary software as well
if (IOS)
lcb_add_strict_dependent_option("FFmpeg" "Some video processing features via FFmpeg: JPEG encoding/decoding, video scaling, H264 decoding..." "${DEFAULT_VALUE_ENABLE_FFMPEG}" "ENABLE_VIDEO" OFF "ENABLE_GPL_THIRD_PARTIES" "GPL third parties not enabled (ENABLE_GPL_THIRD_PARTIES).")
......
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