diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..2ff15b576
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,46 @@
+# Temporary files --------------------------------------------------------------
+
+*~
+.*
+\#*\#
+.#.*
+!.gitignore
+!.gitlab-ci*
+!.gitmodules
+# Project configuration --------------------------------------------------------
+
+*.pro.user
+Project.sln.lnk
+WORK
+OUTPUT
+Makefile
+CMakeLists.txt.user
+build*
+build-*-Debug
+build-*-Default
+prepare.conf.user
+build/*
+
+# Tags -------------------------------------------------------------------------
+
+GPATH
+GRTAGS
+GTAGS
+
+.ctags
+.clang_complete
+
+# QMLC/JSC ---------------------------------------------------------------------
+
+*.qmlc
+*.jsc
+
+# RPM --------------------------------------------------------------------------
+
+linphone-qt/
+rpm-*/
+
+# OTHER ------------------------------------------------------------------------
+
+vgcore.*
+linphone.spec
diff --git a/.gitlab-ci-files/job-linux-desktop-archlinux-latest.yml b/.gitlab-ci-files/job-linux-desktop-archlinux-latest.yml
new file mode 100644
index 000000000..e9f810fdb
--- /dev/null
+++ b/.gitlab-ci-files/job-linux-desktop-archlinux-latest.yml
@@ -0,0 +1,124 @@
+.install-qt-webview: &install-qt-webview
+ before_script:
+ - sudo pacman -Sy qt5-webview --noprogressbar --noconfirm
+
+job-archlinux-latest-ninja-clang:
+ tags: [ "docker-archlinux-latest" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-archlinux:$ARCHLINUX_IMAGE_VERSION
+ except:
+ refs:
+ - schedules
+ variables:
+ CMAKE_GENERATOR: Ninja
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: clang
+ CXX: clang++
+ extends: .job-linux-desktop
+ <<: *install-qt-webview
+
+#################################################
+# Nightly
+#################################################
+
+job-archlinux-latest-makefile-gcc:
+ tags: [ "docker-archlinux-latest" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-archlinux:$ARCHLINUX_IMAGE_VERSION
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_GENERATOR: Unix Makefiles
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: gcc
+ CXX: g++
+ extends: .job-linux-desktop
+ <<: *install-qt-webview
+
+
+job-archlinux-latest-makefile-clang:
+ tags: [ "docker-archlinux-latest" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-archlinux:$ARCHLINUX_IMAGE_VERSION
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_GENERATOR: Unix Makefiles
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: clang
+ CXX: clang++
+ extends: .job-linux-desktop
+ <<: *install-qt-webview
+
+
+job-archlinux-latest-ninja-gcc:
+ tags: [ "docker-archlinux-latest" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-archlinux:$ARCHLINUX_IMAGE_VERSION
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_GENERATOR: Ninja
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: gcc
+ CXX: g++
+ extends: .job-linux-desktop
+ <<: *install-qt-webview
+
+job-archlinux-latest-ninja-gcc-novideo:
+ tags: [ "docker-archlinux-latest" ]
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_OPTIONS: -DENABLE_VIDEO=NO
+ extends: job-archlinux-latest-ninja-gcc
+ <<: *install-qt-webview
+
+job-archlinux-latest-ninja-clang-novideo:
+ tags: [ "docker-archlinux-latest" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-archlinux:$ARCHLINUX_IMAGE_VERSION
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_OPTIONS: -DENABLE_VIDEO=NO -DENABLE_PQCRYPTO=OFF
+ CMAKE_GENERATOR: Ninja
+ CC: clang
+ CXX: clang++
+ extends: .job-linux-desktop
+ <<: *install-qt-webview
+
+#################################################
+# Package - Nightly
+#################################################
+
+#job-archlinux-latest-makefile-clang-package:
+# stage: package
+# tags: [ "docker-archlinux-latest" ]
+# only:
+# variables:
+# - $NIGHTLY_MASTER
+# - $DEPLOY_LINUX
+# variables:
+# CMAKE_OPTIONS: -DENABLE_APP_PACKAGING=YES -DENABLE_G729=ON
+# extends: job-archlinux-latest-makefile-clang
+# artifacts:
+# paths:
+# - build/OUTPUT/Packages/Linphone*.AppImage
+# expire_in: 1 week
+#
+#################################################
+# Deploy - Nightly
+#################################################
+
+#job-archlinux-latest-makefile-clang-deploy:
+# stage: deploy
+# tags: [ "docker-archlinux-latest" ]
+# dependencies:
+# - job-archlinux-latest-makefile-clang-package
+# only:
+# variables:
+# - $NIGHTLY_MASTER
+# - $DEPLOY_LINUX
+# script:
+# - scp build/OUTPUT/Packages/Linphone*.AppImage $DEPLOY_SERVER:$APPIMAGE_UPLOAD_DIRECTORY/
diff --git a/.gitlab-ci-files/job-linux-desktop-centos7.yml b/.gitlab-ci-files/job-linux-desktop-centos7.yml
new file mode 100644
index 000000000..f81f11ae1
--- /dev/null
+++ b/.gitlab-ci-files/job-linux-desktop-centos7.yml
@@ -0,0 +1,148 @@
+
+#job-centos7-makefile-gcc:
+
+# tags: [ "docker" ]
+# image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-centos:7
+# only:
+# variables:
+# - $NIGHTLY_MASTER
+# variables:
+# CMAKE_GENERATOR: Unix Makefiles
+# CC: gcc
+# CXX: g++
+# extends: .job-linux-desktop
+
+
+#job-centos7-makefile-clang:
+
+# tags: [ "docker-centos7" ]
+# image: gitlab.linphone.org:4567/bc/public/linphone-desktop/bc-dev-centos7-fuse-qt-wget:$CENTOS_7_QT_IMAGE_VERSION
+# only:
+# variables:
+# - $NIGHTLY_MASTER
+# variables:
+# CMAKE_GENERATOR: Unix Makefiles
+# CC: clang
+# CXX: clang++
+# extends: .job-linux-desktop
+
+
+#################################################
+# Ninja
+#################################################
+job-centos7-ninja-gcc:
+ tags: [ "docker" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-desktop/bc-dev-centos7-fuse-qt-wget:$CENTOS_7_QT_IMAGE_VERSION
+ except:
+ refs:
+ - schedules
+ variables:
+ CMAKE_GENERATOR: Ninja
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: gcc
+ CXX: g++
+ extends: .job-linux-desktop
+ before_script:
+ - source /opt/rh/devtoolset-8/enable
+
+
+
+#job-centos7-ninja-clang:
+
+# tags: [ "docker-centos7" ]
+# only:
+# variables:
+# - $NIGHTLY_MASTER
+# image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-centos:7
+# variables:
+# CMAKE_GENERATOR: Ninja
+# CC: clang
+# CXX: clang++
+# CMAKE_OPTIONS: -DENABLE_LIME=ON
+# extends: .job-linux-desktop
+
+#################################################
+# Package - Nightly
+#################################################
+
+job-centos7-ninja-gcc-package:
+ stage: package
+ tags: [ "docker-test-centos7-liblinphone-nuc" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-desktop/bc-dev-centos7-fuse-qt-wget:$CENTOS_7_QT_IMAGE_VERSION
+ dependencies: []
+ only:
+ variables:
+ - $DEPLOY_LINUX_CENTOS7
+ variables:
+ CMAKE_OPTIONS: -DENABLE_APP_PACKAGING=YES -DLINPHONE_BUILDER_SIGNING_IDENTITY=$GPG_SIGNING_KEYID -DENABLE_G729=ON -DENABLE_PQCRYPTO=ON
+ CMAKE_GENERATOR: Ninja
+ CC: gcc
+ CXX: g++
+ APPIMAGETOOL_SIGN_PASSPHRASE: $GPG_SIGNING_PASS
+ extends: .job-linux-desktop
+ before_script:
+ - source /opt/rh/devtoolset-8/enable
+ script:
+ - echo "$GPG_SIGNING_PUB" > file.key && sed -i 's/\r /\n/g' file.key && chmod 600 file.key
+ - gpg --import file.key
+ - echo "$GPG_SIGNING_KEY" > file.key && sed -i 's/\r /\n/g' file.key && chmod 600 file.key
+ - gpg --import file.key
+ - cmake --version
+ - export CC=$CC
+ - export CXX=$CXX
+ - mkdir -p build/OUTPUT
+ - echo $CI_BUILD_TYPE
+ - echo $CMAKE_GENERATOR
+ - echo $DEFAULT_LINUX_CMAKE_OPTIONS
+ - echo $CMAKE_SANITIZER_OPTIONS
+ - cd build
+ - cmake .. -G "$CMAKE_GENERATOR" -DCMAKE_VERBOSE_MAKEFILE=ON -DLINPHONESDK_PLATFORM=Desktop -DCMAKE_BUILD_TYPE=$CI_BUILD_TYPE $DEFAULT_LINUX_CMAKE_OPTIONS $CMAKE_OPTIONS $SCHEDULE_CMAKE_OPTIONS $CMAKE_SANITIZER_OPTIONS
+ - cmake --build . --target install --config $CI_BUILD_TYPE $LBC_NODEBUG_OPTIONS
+ artifacts:
+ paths:
+ - build/OUTPUT/Packages/*.AppImage
+ when: always
+ expire_in: 1 week
+
+#################################################
+# Deploy - Nightly
+#################################################
+
+job-centos7-ninja-gcc-deploy:
+ stage: deploy
+ tags: [ "deploy" ]
+ dependencies:
+ - job-centos7-ninja-gcc-package
+ only:
+ variables:
+ - $DEPLOY_LINUX_CENTOS7
+ script:
+ - rsync -rlv --ignore-existing build/OUTPUT/Packages/*.AppImage $DEPLOY_SERVER:$APPIMAGE_UPLOAD_DIRECTORY/
+
+#################################################
+# Debug
+#################################################
+
+job-centos7-debug-nuc:
+ stage: deploy
+ tags: [ "docker-test-centos7-liblinphone-nuc" ]
+ #image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-centos:7
+ image: gitlab.linphone.org:4567/bc/public/linphone-desktop/bc-dev-centos7-fuse-qt-wget:$CENTOS_7_QT_IMAGE_VERSION
+ dependencies: []
+ only:
+ variables:
+ - $DEBUG_CENTOS7_NUC
+ script:
+ - sleep 10m
+
+job-centos7-debug:
+ stage: deploy
+ tags: [ "docker" ]
+ #image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-centos:7
+ image: gitlab.linphone.org:4567/bc/public/linphone-desktop/bc-dev-centos7-fuse-qt-wget:$CENTOS_7_QT_IMAGE_VERSION
+ dependencies: []
+ only:
+ variables:
+ - $DEBUG_CENTOS7
+ script:
+ - sleep 10m
diff --git a/.gitlab-ci-files/job-linux-desktop-debian10.yml b/.gitlab-ci-files/job-linux-desktop-debian10.yml
new file mode 100644
index 000000000..dc8a49cbd
--- /dev/null
+++ b/.gitlab-ci-files/job-linux-desktop-debian10.yml
@@ -0,0 +1,133 @@
+
+job-debian10-ninja-gcc:
+ tags: [ "docker-debian10" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-debian10:$DEBIAN_10_IMAGE_VERSION
+ except:
+ refs:
+ - schedules
+ variables:
+ CMAKE_GENERATOR: Ninja
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: gcc
+ CXX: g++
+ extends: .job-linux-desktop
+
+#################################################
+# Nightly
+#################################################
+
+job-debian10-makefile-gcc:
+ tags: [ "docker-debian10" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-debian10:$DEBIAN_10_IMAGE_VERSION
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_GENERATOR: Unix Makefiles
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: gcc
+ CXX: g++
+ ADDITIONAL_BUILD_OPTIONS: -j$MAKEFILE_JOBS
+ extends: .job-linux-desktop
+
+
+job-debian10-ninja-gcc-novideo:
+ tags: [ "docker-debian10" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-debian10:$DEBIAN_10_IMAGE_VERSION
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_OPTIONS: -DENABLE_VIDEO=NO -DENABLE_PQCRYPTO=OFF
+ CMAKE_GENERATOR: Ninja
+ CC: gcc
+ CXX: g++
+ extends: .job-linux-desktop
+
+
+job-debian10-ninja-gcc-smallsdk:
+ tags: [ "docker-debian10" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-debian10:$DEBIAN_10_IMAGE_VERSION
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_OPTIONS: -DENABLE_VIDEO=NO -DENABLE_ADVANCED_IM=NO -DENABLE_DB_STORAGE=NO -DENABLE_PQCRYPTO=OFF
+ CMAKE_GENERATOR: Ninja
+ CC: gcc
+ CXX: g++
+ extends: .job-linux-desktop
+
+
+job-debian10-ninja-clang:
+ tags: [ "docker-debian10" ]
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-debian10:$DEBIAN_10_IMAGE_VERSION
+ variables:
+ CMAKE_GENERATOR: Ninja
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: clang
+ CXX: clang++
+ extends: .job-linux-desktop
+
+
+job-debian10-ninja-clang-novideo:
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_OPTIONS: -DENABLE_VIDEO=NO
+ extends: job-debian10-ninja-clang
+
+job-debian10-makefile-clang:
+ tags: [ "docker-debian10" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-debian10:$DEBIAN_10_IMAGE_VERSION
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ - $DEPLOY_LINUX
+ variables:
+ CMAKE_GENERATOR: Unix Makefiles
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: clang
+ CXX: clang++
+ ADDITIONAL_BUILD_OPTIONS: -j$MAKEFILE_JOBS
+ extends: .job-linux-desktop
+
+#################################################
+# Package - Nightly
+#################################################
+
+job-debian10-makefile-clang-package:
+ stage: package
+ tags: [ "docker-debian10" ]
+ dependencies: []
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ - $DEPLOY_LINUX
+ variables:
+ CMAKE_OPTIONS: -DENABLE_APP_PACKAGING=YES -DENABLE_G729=ON -DENABLE_PQCRYPTO=ON
+ extends: job-debian10-makefile-clang
+ artifacts:
+ paths:
+ - build/OUTPUT/Packages/Linphone*.AppImage
+ expire_in: 1 week
+
+#################################################
+# Deploy - Nightly
+#################################################
+
+job-debian10-makefile-clang-deploy:
+ stage: deploy
+ tags: [ "docker-debian10" ]
+ dependencies:
+ - job-debian10-makefile-clang-package
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ - $DEPLOY_LINUX
+ script:
+ - scp build/OUTPUT/Packages/Linphone*.AppImage $DEPLOY_SERVER:$APPIMAGE_UPLOAD_DIRECTORY/
diff --git a/.gitlab-ci-files/job-linux-desktop-debian8.yml b/.gitlab-ci-files/job-linux-desktop-debian8.yml
new file mode 100644
index 000000000..a4934cc69
--- /dev/null
+++ b/.gitlab-ci-files/job-linux-desktop-debian8.yml
@@ -0,0 +1,69 @@
+#################################################
+# Makefile
+#################################################
+
+job-debian8-makefile-gcc:
+ tags: [ "docker-debian8" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-debian:8
+ except:
+ refs:
+ - schedules
+ variables:
+ CMAKE_GENERATOR: Unix Makefiles
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: gcc
+ CXX: g++
+ ADDITIONAL_BUILD_OPTIONS: -j$MAKEFILE_JOBS
+ LBC_NODEBUG_OPTIONS: -- -j$MAKEFILE_JOBS
+ extends: .job-linux-desktop
+
+
+job-debian8-makefile-clang:
+ tags: [ "docker-debian8" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-debian:8
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_GENERATOR: Unix Makefiles
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: clang
+ CXX: clang++
+ ADDITIONAL_BUILD_OPTIONS: -j$MAKEFILE_JOBS
+ LBC_NODEBUG_OPTIONS: -- -j$MAKEFILE_JOBS
+ extends: .job-linux-desktop
+
+#################################################
+# Package - Nightly
+#################################################
+
+#job-debian8-makefile-clang-package:
+# stage: package
+# tags: [ "docker-debian8" ]
+# only:
+# variables:
+# - $NIGHTLY_MASTER
+# - $DEPLOY_LINUX
+# variables:
+# CMAKE_OPTIONS: -DENABLE_APP_PACKAGING=YES -DENABLE_G729=ON
+# extends: job-debian8-makefile-clang
+# artifacts:
+# paths:
+# - build/OUTPUT/Packages/Linphone*.AppImage
+# expire_in: 1 week
+
+#################################################
+# Deploy - Nightly
+#################################################
+
+#job-debian8-makefile-clang-deploy:
+# stage: deploy
+# tags: [ "docker-debian8" ]
+# dependencies:
+# - job-debian8-makefile-clang-package
+# only:
+# variables:
+# - $NIGHTLY_MASTER
+# - $DEPLOY_LINUX
+# script:
+# - scp build/OUTPUT/Packages/Linphone*.AppImage $DEPLOY_SERVER:$APPIMAGE_UPLOAD_DIRECTORY/
diff --git a/.gitlab-ci-files/job-linux-desktop-debian9.yml b/.gitlab-ci-files/job-linux-desktop-debian9.yml
new file mode 100644
index 000000000..2077cb8be
--- /dev/null
+++ b/.gitlab-ci-files/job-linux-desktop-debian9.yml
@@ -0,0 +1,179 @@
+
+
+job-debian9-ninja-gcc:
+ tags: [ "docker-debian9" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-desktop/bc-dev-debian9-appimage:$DEBIAN_9_QT_IMAGE_VERSION
+ except:
+ refs:
+ - schedules
+ variables:
+ CMAKE_GENERATOR: Ninja
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: gcc
+ CXX: g++
+ extends: .job-linux-desktop
+
+
+job-debian9-ninja-gcc-smallsdk:
+ except:
+ refs:
+ - schedules
+ variables:
+ CMAKE_OPTIONS: -DENABLE_VIDEO=NO -DENABLE_ADVANCED_IM=NO -DENABLE_DB_STORAGE=NO -DENABLE_PQCRYPTO=OFF
+ extends: job-debian9-ninja-gcc
+
+
+#################################################
+# Nightly
+#################################################
+
+job-debian9-makefile-gcc:
+ tags: [ "docker-debian9" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-desktop/bc-dev-debian9-appimage:$DEBIAN_9_QT_IMAGE_VERSION
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_GENERATOR: Unix Makefiles
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: gcc
+ CXX: g++
+ ADDITIONAL_BUILD_OPTIONS: -j$MAKEFILE_JOBS
+ extends: .job-linux-desktop
+
+job-debian9-ninja-gcc-novideo:
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_OPTIONS: -DENABLE_VIDEO=NO -DENABLE_PQCRYPTO=OFF
+ extends: job-debian9-ninja-gcc
+
+job-debian9-makefile-gcc:
+ tags: [ "docker-debian9" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-desktop/bc-dev-debian9-appimage:$DEBIAN_9_QT_IMAGE_VERSION
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ - $DEPLOY_PLUGINS
+ variables:
+ CMAKE_OPTIONS: -DLINPHONE_BUILDER_SIGNING_IDENTITY=$GPG_SIGNING_KEYID -DENABLE_G729=ON -DENABLE_PQCRYPTO=ON
+ CMAKE_GENERATOR: Unix Makefiles
+ CC: gcc
+ CXX: g++
+ ADDITIONAL_BUILD_OPTIONS: -j$MAKEFILE_JOBS
+ APPIMAGETOOL_SIGN_PASSPHRASE: $GPG_SIGNING_PASS
+ script:
+ - echo "$GPG_SIGNING_PUB" > file.key && sed -i 's/\r /\n/g' file.key && chmod 600 file.key
+ - gpg --import file.key
+ - rm -f file.key
+ - echo "$GPG_SIGNING_KEY" > file.key && sed -i 's/\r /\n/g' file.key && chmod 600 file.key
+ - base64 -w 0 file.key | base64 -d | gpg --import --no-tty --batch --yes
+ - rm -f file.key
+ - cmake --version
+ - export CC=$CC
+ - export CXX=$CXX
+ - mkdir -p build/OUTPUT
+ - echo $CI_BUILD_TYPE
+ - echo $CMAKE_GENERATOR
+ - echo $DEFAULT_LINUX_CMAKE_OPTIONS
+ - echo $CMAKE_SANITIZER_OPTIONS
+ - cd build
+ - cmake .. -G "$CMAKE_GENERATOR" -DCMAKE_VERBOSE_MAKEFILE=ON -DLINPHONESDK_PLATFORM=Desktop -DCMAKE_BUILD_TYPE=$CI_BUILD_TYPE $DEFAULT_LINUX_CMAKE_OPTIONS $CMAKE_OPTIONS $SCHEDULE_CMAKE_OPTIONS $CMAKE_SANITIZER_OPTIONS
+ - cmake --build . --target install --config $CI_BUILD_TYPE $LBC_NODEBUG_OPTIONS
+ extends: .job-linux-desktop
+
+#################################################
+# Package - Nightly
+#################################################
+
+job-debian9-makefile-gcc-package:
+ stage: package
+ tags: [ "docker-test-liblinphone" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-desktop/bc-dev-debian9-appimage:$DEBIAN_9_QT_IMAGE_VERSION
+ dependencies: []
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ - $PACKAGE_LINUX
+ - $DEPLOY_LINUX
+ variables:
+ CMAKE_OPTIONS: -DENABLE_APP_PACKAGING=YES -DLINPHONE_BUILDER_SIGNING_IDENTITY=$GPG_SIGNING_KEYID -DENABLE_G729=ON -DENABLE_PQCRYPTO=ON
+ CMAKE_GENERATOR: Unix Makefiles
+ CC: gcc
+ CXX: g++
+ APPIMAGETOOL_SIGN_PASSPHRASE: $GPG_SIGNING_PASS
+ RELEASE_FILE: -DLINPHONE_SDK_MAKE_RELEASE_FILE_URL=$MAKE_RELEASE_FILE_URL/$LINUX_PLATFORM/$APP_FOLDER
+ extends: .job-linux-desktop
+ script:
+ - echo "$GPG_SIGNING_PUB" > file.key && sed -i 's/\r /\n/g' file.key && chmod 600 file.key
+ - gpg --import file.key
+ - rm -f file.key
+ - echo "$GPG_SIGNING_KEY" > file.key && sed -i 's/\r /\n/g' file.key && chmod 600 file.key
+ - base64 -w 0 file.key | base64 -d | gpg --import --no-tty --batch --yes
+ - rm -f file.key
+ - cmake --version
+ - export CC=$CC
+ - export CXX=$CXX
+ - mkdir -p build/OUTPUT
+ - echo $CI_BUILD_TYPE
+ - echo $CMAKE_GENERATOR
+ - echo $DEFAULT_LINUX_CMAKE_OPTIONS
+ - echo $CMAKE_SANITIZER_OPTIONS
+ - cd build
+ - if [[ $MAKE_RELEASE_FILE_URL == "" ]]; then export RELEASE_FILE=""; fi
+ - cmake .. -G "$CMAKE_GENERATOR" -DCMAKE_VERBOSE_MAKEFILE=ON -DLINPHONESDK_PLATFORM=Desktop -DCMAKE_BUILD_TYPE=$CI_BUILD_TYPE $DEFAULT_LINUX_CMAKE_OPTIONS $CMAKE_OPTIONS $SCHEDULE_CMAKE_OPTIONS $CMAKE_SANITIZER_OPTIONS $RELEASE_FILE
+ - cmake --build . --target install --config $CI_BUILD_TYPE $LBC_NODEBUG_OPTIONS
+ artifacts:
+ paths:
+ - build/OUTPUT/*
+ expire_in: 1 week
+
+#################################################
+# Deploy - Nightly
+#################################################
+
+job-debian9-makefile-gcc-deploy:
+ stage: deploy
+ tags: [ "deploy" ]
+ needs:
+ - job-debian9-makefile-gcc-package
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ - $DEPLOY_LINUX
+ script:
+ - rsync -rlv --ignore-existing build/OUTPUT/Packages/*.AppImage $DEPLOY_SERVER:$UPLOAD_ROOT_PATH/$LINUX_PLATFORM/$APP_FOLDER
+ - |-
+ if [[ $MAKE_RELEASE_FILE_URL != "" ]]; then
+ rsync -rlv build/OUTPUT/RELEASE $DEPLOY_SERVER:$UPLOAD_ROOT_PATH/$LINUX_PLATFORM
+ rsync -rlv build/OUTPUT/RELEASE $MAIN_DEPLOY_SERVER:$UPLOAD_ROOT_PATH/$LINUX_PLATFORM
+ fi
+
+
+job-debian9-makefile-gcc-plugins-deploy:
+ stage: deploy
+ tags: [ "deploy" ]
+ needs:
+ - job-debian9-makefile-gcc
+ only:
+ variables:
+ - $DEPLOY_PLUGINS
+ script:
+ - rsync -rlv --ignore-existing build/OUTPUT/plugins/app/*.so $DEPLOY_SERVER:$UPLOAD_ROOT_PATH/$LINUX_PLATFORM/$APP_FOLDER/plugins/
+
+#################################################
+# Debug
+#################################################
+
+
+job-debian9-debug:
+ stage: deploy
+ tags: [ "docker-test-debian9-liblinphone-nuc" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-desktop/bc-dev-debian9-appimage:$DEBIAN_9_QT_IMAGE_VERSION
+ dependencies: []
+ only:
+ variables:
+ - $DEBUG_DEBIAN9
+ script:
+ - sleep 10m
diff --git a/.gitlab-ci-files/job-linux-desktop-ubuntu-rolling.yml b/.gitlab-ci-files/job-linux-desktop-ubuntu-rolling.yml
new file mode 100644
index 000000000..25304c964
--- /dev/null
+++ b/.gitlab-ci-files/job-linux-desktop-ubuntu-rolling.yml
@@ -0,0 +1,116 @@
+
+job-ubuntu-rolling-ninja-clang:
+ tags: [ "docker-ubuntu-rolling" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-desktop/bc-dev-ubuntu-rolling-qt-fuse-wget-gpg2:$UBUNTU_ROLLING_IMAGE_VERSION
+ except:
+ refs:
+ - schedules
+ variables:
+ CMAKE_GENERATOR: Ninja
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: clang
+ CXX: clang++
+ extends: .job-linux-desktop
+
+
+
+
+#################################################
+# Nightly
+#################################################
+
+job-ubuntu-rolling-makefile-gcc:
+ tags: [ "docker-ubuntu-rolling" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-desktop/bc-dev-ubuntu-rolling-qt-fuse-wget-gpg2:$UBUNTU_ROLLING_IMAGE_VERSION
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_GENERATOR: Unix Makefiles
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: gcc
+ CXX: g++
+ ADDITIONAL_BUILD_OPTIONS: -j$MAKEFILE_JOBS
+ extends: .job-linux-desktop
+
+
+job-ubuntu-rolling-makefile-clang:
+ tags: [ "docker-ubuntu-rolling" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-desktop/bc-dev-ubuntu-rolling-qt-fuse-wget-gpg2:$UBUNTU_ROLLING_IMAGE_VERSION
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_GENERATOR: Unix Makefiles
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: clang
+ CXX: clang++
+ ADDITIONAL_BUILD_OPTIONS: -j$MAKEFILE_JOBS
+ extends: .job-linux-desktop
+
+
+job-ubuntu-rolling-ninja-gcc:
+ tags: [ "docker-ubuntu-rolling" ]
+ image: gitlab.linphone.org:4567/bc/public/linphone-desktop/bc-dev-ubuntu-rolling-qt-fuse-wget-gpg2:$UBUNTU_ROLLING_IMAGE_VERSION
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_GENERATOR: Ninja
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ CC: gcc
+ CXX: g++
+ extends: .job-linux-desktop
+
+
+job-ubuntu-rolling-ninja-gcc-novideo:
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_OPTIONS: -DENABLE_VIDEO=NO -DENABLE_PQCRYPTO=OFF
+ extends: job-ubuntu-rolling-ninja-gcc
+
+
+job-ubuntu-rolling-ninja-clang-novideo:
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_OPTIONS: -DENABLE_VIDEO=NO -DENABLE_PQCRYPTO=OFF
+ extends: job-ubuntu-rolling-ninja-clang
+
+#################################################
+# Package - Nightly
+#################################################
+
+#job-ubuntu-rolling-makefile-clang-package:
+# stage: package
+# tags: [ "docker-ubuntu-rolling" ]
+# only:
+# variables:
+# - $NIGHTLY_MASTER
+# - $DEPLOY_LINUX
+# variables:
+# CMAKE_OPTIONS: -DENABLE_APP_PACKAGING=YES -DENABLE_G729=ON
+# extends: job-ubuntu-rolling-makefile-clang
+# artifacts:
+# paths:
+# - build/OUTPUT/Packages/Linphone*.AppImage
+# expire_in: 1 week
+
+#################################################
+# Deploy - Nightly
+#################################################
+
+#job-ubuntu-rolling-makefile-clang-deploy:
+# stage: deploy
+# tags: [ "docker-ubuntu-rolling" ]
+# dependencies:
+# - job-ubuntu-rolling-makefile-clang-package
+# only:
+# variables:
+# - $NIGHTLY_MASTER
+# - $DEPLOY_LINUX
+# script:
+# - scp build/OUTPUT/Packages/Linphone*.AppImage $DEPLOY_SERVER:$APPIMAGE_UPLOAD_DIRECTORY/
diff --git a/.gitlab-ci-files/job-linux-desktop.yml b/.gitlab-ci-files/job-linux-desktop.yml
new file mode 100644
index 000000000..080785739
--- /dev/null
+++ b/.gitlab-ci-files/job-linux-desktop.yml
@@ -0,0 +1,26 @@
+#################################################
+# BUILD
+#################################################
+
+.build_all_linux_script: &build_all_linux_script |
+ cmake --version
+ export CC=$CC
+ export CXX=$CXX
+ mkdir -p build/OUTPUT
+ echo $CI_BUILD_TYPE
+ echo $CMAKE_GENERATOR
+ echo $DEFAULT_LINUX_CMAKE_OPTIONS
+ echo $CMAKE_SANITIZER_OPTIONS
+ cd build
+ cmake .. -G "$CMAKE_GENERATOR" -DCMAKE_VERBOSE_MAKEFILE=ON -DLINPHONESDK_PLATFORM=Desktop -DCMAKE_BUILD_TYPE=$CI_BUILD_TYPE $DEFAULT_LINUX_CMAKE_OPTIONS $CMAKE_OPTIONS $SCHEDULE_CMAKE_OPTIONS $CMAKE_SANITIZER_OPTIONS
+ cmake --build . --target install --config $CI_BUILD_TYPE $LBC_NODEBUG_OPTIONS
+
+.job-linux-desktop:
+ stage: build
+ extends: .linux-prepare
+ script:
+ - *build_all_linux_script
+ artifacts:
+ paths:
+ - build/OUTPUT
+ expire_in: 1 week
diff --git a/.gitlab-ci-files/job-linux-prepare.yml b/.gitlab-ci-files/job-linux-prepare.yml
new file mode 100644
index 000000000..b71b72ab3
--- /dev/null
+++ b/.gitlab-ci-files/job-linux-prepare.yml
@@ -0,0 +1,36 @@
+.linux-prepare:
+
+ cache:
+ key: $CI_JOB_NAME
+ paths:
+ - ccache/
+
+ extends: .job-prepare
+
+ before_script:
+ ##
+ ## If a TUNNEL_USER_KEY is defined then start ssh-agent and add the key
+ ##
+ - if ! [ -z ${TUNNEL_USER_KEY+x} ]; then eval $(ssh-agent -s); fi
+ - if ! [ -z ${TUNNEL_USER_KEY+x} ]; then echo "$TUNNEL_USER_KEY" | tr -d '\r' | ssh-add - > /dev/null; fi
+ - if ! [ -z ${TUNNEL_USER_KEY+x} ]; then mkdir -p ~/.ssh && chmod 700 ~/.ssh; fi
+ - if ! [ -z ${TUNNEL_USER_KEY+x} ]; then echo -e "Host gitlab.linphone.org\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config; fi
+
+ ##
+ ## Then configure ccache
+ ##
+ - mkdir -p ccache
+ - echo "max_size = $CCACHE_SIZE" > ccache/ccache.conf
+ - echo $CCACHE_SIZE
+ - echo ${PWD}/ccache
+ - export CCACHE_BASEDIR=${PWD}
+ - export CCACHE_DIR=${PWD}/ccache
+ - ccache -s
+ - find $CI_PROJECT_DIR -name '.git' -exec bash -c 'git config --global --add safe.directory ${0%/.git}' {} \;
+ - git describe --debug || true
+
+ after_script:
+ - if ! [ -z ${TUNNEL_USER_KEY+x} ]; then rm -rf ~/.ssh || true; fi
+ - export CCACHE_DIR=${PWD}/ccache
+ - ccache -s
+
diff --git a/.gitlab-ci-files/job-macosx-desktop.yml b/.gitlab-ci-files/job-macosx-desktop.yml
new file mode 100644
index 000000000..cb804cbec
--- /dev/null
+++ b/.gitlab-ci-files/job-macosx-desktop.yml
@@ -0,0 +1,168 @@
+#Build template to use in other job scripts without having to copy same code
+#format = .className: &referenceName | scripts
+#Use = scripts: -*referenceName
+#Example : see .job-macosx-desktop for the default script and job-macosx-makefile-package for override
+
+.build_all_script: &build_all_script |
+ ccache -s
+ export Qt5_DIR=~/Qt/$QT_MAC_VER/lib/cmake/Qt5
+ export PATH=~/Qt/$QT_MAC_VER/bin:$PATH
+ if [ -d "build" ]; then rm -rf build; fi;
+ mkdir -p build/OUTPUT
+ cd build
+ #SDK Building
+ echo $CI_BUILD_TYPE
+ echo $CMAKE_GENERATOR
+ echo $DEFAULT_MACOS_CMAKE_OPTIONS
+ echo $CMAKE_OPTIONS
+ echo $ADDITIONAL_BUILD_OPTIONS
+ cmake .. -G "$CMAKE_GENERATOR" -DLINPHONESDK_PLATFORM=Desktop -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 -DCMAKE_BUILD_TYPE=$CI_BUILD_TYPE $DEFAULT_MACOS_CMAKE_OPTIONS $XCODE_OPTIONS $CMAKE_OPTIONS $SCHEDULE_CMAKE_OPTIONS -DLINPHONE_BUILDER_SIGNING_IDENTITY="$MACOS_SIGNING_IDENTITY" -DLINPHONESDK_MACOS_ARCHS="$LINPHONESDK_MACOS_ARCHS" -DLINPHONESDK_OPENSSL_ROOT_DIR_X86_64="$LINPHONESDK_OPENSSL_ROOT_DIR_X86_64" -DLINPHONESDK_OPENSSL_ROOT_DIR_ARM64="$LINPHONESDK_OPENSSL_ROOT_DIR_ARM64" $RELEASE_FILE
+ cmake --build . --target install --config $CI_BUILD_TYPE $LBC_NODEBUG_OPTIONS -- $ADDITIONAL_BUILD_OPTIONS
+ ccache -s
+
+.job-macosx-desktop:
+ stage: build
+ tags: [ "macmini-m1-bis-xcode13" ]
+ script:
+ - *build_all_script
+ variables:
+ LINPHONESDK_MACOS_ARCHS: "x86_64"
+ LINPHONESDK_OPENSSL_ROOT_DIR_X86_64: "/usr/local/opt/openssl@1.1"
+ LINPHONESDK_OPENSSL_ROOT_DIR_ARM64: "/opt/homebrew/opt/openssl@1.1"
+ artifacts:
+ paths:
+ - build/OUTPUT
+ when: always
+ expire_in: 1 week
+
+#################################################
+# On each push
+#################################################
+
+job-macosx-ninja:
+ except:
+ refs:
+ - schedules
+ variables:
+ CMAKE_GENERATOR: Ninja
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ extends: .job-macosx-desktop
+
+#################################################
+# Nightly
+#################################################
+
+job-macosx-makefile:
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ - $DEPLOY_PLUGINS
+ variables:
+ CMAKE_GENERATOR: Unix Makefiles
+ CMAKE_OPTIONS: -DENABLE_PQCRYPTO=ON
+ ADDITIONAL_BUILD_OPTIONS: -j$MAKEFILE_JOBS
+ extends: .job-macosx-desktop
+
+job-macosx-ninja-novideo:
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ variables:
+ CMAKE_OPTIONS: -DENABLE_VIDEO=NO -DENABLE_PQCRYPTO=ON
+ CMAKE_GENERATOR: Ninja
+ extends: .job-macosx-desktop
+
+#job-macosx-xcode:
+# extends: .job-macosx-desktop
+# variables:
+# XCODE_OPTIONS: -DLINPHONESDK_MACOS_BASE_URL=$MACOS_SNAPSHOTS_URL
+# CMAKE_GENERATOR: Xcode
+# ADDITIONAL_BUILD_OPTIONS: -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=$MAX_NUMBER_TASK
+# only:
+# variables:
+# - $NIGHTLY_MASTER
+# - $DEPLOY_RUN_MACOSX
+#
+
+#################################################
+# Package - Nightly
+#################################################
+# WAIT for QT6 for arm64
+job-macosx-makefile-package:
+ stage: package
+ tags: [ "macmini-m1-bis-xcode13" ]
+ dependencies: []
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ - $PACKAGE_MACOSX
+ - $DEPLOY_MACOSX
+ variables:
+ CMAKE_OPTIONS: -DENABLE_APP_PACKAGING=YES -DENABLE_G729=ON
+ RELEASE_FILE: -DLINPHONE_SDK_MAKE_RELEASE_FILE_URL=$MAKE_RELEASE_FILE_URL/$MACOSX_PLATFORM/$APP_FOLDER
+ LINPHONESDK_MACOS_ARCHS: "x86_64"
+ extends: job-macosx-makefile
+ script:
+ - if [[ $MAKE_RELEASE_FILE_URL == "" ]]; then export RELEASE_FILE=""; fi
+ - *build_all_script
+ artifacts:
+ when: always
+ paths:
+ - build/OUTPUT/*
+ when: always
+ expire_in: 1 week
+
+job-macosx-codesigning:
+ stage: signing
+ tags: [ "macmini-m1-bis-xcode13" ]
+ needs:
+ - job-macosx-makefile-package
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ - $PACKAGE_MACOSX
+ - $DEPLOY_MACOSX
+ script:
+ - cd build
+ - codesign --options runtime,library --verbose -s "$MACOS_SIGNING_IDENTITY" OUTPUT/Packages/*.dmg
+ - ./../tools/app_notarization.sh
+ artifacts:
+ when: always
+ paths:
+ - build/OUTPUT/*
+ when: always
+ expire_in: 1 week
+
+#################################################
+# Deploy - Nightly
+#################################################
+
+job-macosx-makefile-deploy:
+ stage: deploy
+ tags: [ "macmini-m1-bis-xcode13" ]
+ needs:
+ - job-macosx-codesigning
+ only:
+ variables:
+ - $NIGHTLY_MASTER
+ - $DEPLOY_MACOSX
+ script:
+ - rsync -rlv --ignore-existing build/OUTPUT/Packages/Linphone*.dmg $DEPLOY_SERVER:$UPLOAD_ROOT_PATH/$MACOSX_PLATFORM/$APP_FOLDER
+ - |-
+ if [[ $MAKE_RELEASE_FILE_URL != "" ]]; then
+ rsync -rlv build/OUTPUT/RELEASE $DEPLOY_SERVER:$UPLOAD_ROOT_PATH/$MACOSX_PLATFORM
+ rsync -rlv build/OUTPUT/RELEASE $MAIN_DEPLOY_SERVER:$UPLOAD_ROOT_PATH/$MACOSX_PLATFORM
+ fi
+
+
+job-macosx-makefile-plugins-deploy:
+ stage: deploy
+ tags: [ "macmini-m1-bis-xcode13" ]
+ needs:
+ - job-macosx-makefile
+ only:
+ variables:
+ - $DEPLOY_PLUGINS
+ script:
+ - rsync -rlv --ignore-existing build/OUTPUT/plugins/app/*.dylib $DEPLOY_SERVER:$UPLOAD_ROOT_PATH/$MACOSX_PLATFORM/$APP_FOLDER/plugins
+
diff --git a/.gitlab-ci-files/job-windows-desktop.yml b/.gitlab-ci-files/job-windows-desktop.yml
new file mode 100644
index 000000000..c0b81ec0c
--- /dev/null
+++ b/.gitlab-ci-files/job-windows-desktop.yml
@@ -0,0 +1,193 @@
+#################################################
+# BUILD
+#################################################
+
+.windows-vs2019:
+ extends: .job-prepare
+ stage: build
+ tags: [ "windows-powershell" ]
+ rules:
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $DOCKER_UPDATE == null && $SKIP_WINDOWS == null
+ - if: $CI_PIPELINE_SOURCE == "schedule" && $DOCKER_UPDATE == null && $SKIP_WINDOWS == null
+ variables:
+ CMAKE_OPTIONS: -DLINPHONE_WINDOWS_SIGN_TOOL=$WINDOWS_SIGN_TOOL -DLINPHONE_WINDOWS_SIGN_TIMESTAMP_URL=$WINDOWS_SIGN_TIMESTAMP_URL -DLINPHONE_WINDOWS_SIGN_HASH=$WINDOWS_SIGN_HASH -DENABLE_G729=ON -DENABLE_PQCRYPTO=ON
+ LINPHONESDK_PLATFORM: Desktop
+ OUTPUT_ZIP_FOLDER: win64
+ MINGW_TYPE: mingw64
+ CMAKE_GENERATOR: "Visual Studio 16 2019"
+ CMAKE_ARCHITECTURE : -A x64
+ script:
+ - Set-Variable -Name "PATH_TEMP" -Value ($(Get-ChildItem -Path Env:\PATH).value)
+ - echo $env:Path
+ #Remove MinGW of MSYS from PATH and add MINGW_TYPE for MSYS2
+ # We double the "\" to escape paths as -replace uses regular expressions
+ - $PATH_TEMP = $PATH_TEMP -replace "C:\\MinGW\\bin;" -replace "C:\\Strawberry\\c\\bin;" -replace "C:\\Program Files\\NASM"
+ - echo $PATH_TEMP
+ - $env:Path = ($PATH_TEMP + ";C:\msys64\" + $MINGW_TYPE + "\bin;" + $env:SIGNTOOL_ROOT + "\x64;C:\msys64;C:\msys64\usr\bin;")
+ - If ($MINGW_TYPE -eq "mingw64") {Import-BatchEnvironment "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"} Else {Import-BatchEnvironment "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat"}
+ - If ($MINGW_TYPE -eq "mingw64") {$env:Path = ($env:Path + ";C:\Qt\" + $env:QT_WIN_VER + "\msvc2019_64\bin")} Else {$env:Path = ($env:Path + ";C:\Qt\" + $env:QT_WIN_VER + "\msvc2019\bin")}
+ - if ($MAKE_RELEASE_FILE_URL) { } else { $RELEASE_FILE = "" }
+ - echo $env:Path
+ - If ( Test-Path -Path "build-desktop" ) {Remove-Item -recurse -force -path "build-desktop" }
+ - mkdir build-desktop
+ - cd build-desktop
+ #we launch the msvc-cl wrapper located in python scripts folder
+ #this wrapper relays only needed calls to the real compiler
+ #cache stats display
+ - C:\PROGRA~1\Python37\Scripts\cl -s
+ - Write-Output $CMAKE_ARCHITECTURE
+ - Write-Output $SCHEDULE_CMAKE_OPTIONS
+ - Write-Output $MAKEFILE_JOBS
+ - Write-Output $CMAKE_C_COMPILER
+ - Write-Output $CMAKE_CXX_COMPILER
+ - Write-Output $CMAKE_RC_COMPILER
+ - Write-Output $DEFAULT_CMAKE_OPTIONS
+ - Write-Output $CMAKE_OPTIONS
+ - Write-Output $CMAKE_ARCHITECTURE
+ - Write-Output $SCHEDULE_CMAKE_OPTIONS
+ - Write-Output $CMAKE_GENERATOR
+ - Write-Output $LINPHONESDK_PLATFORM
+ - Write-Output $MINGW_TYPE
+ - Write-Output $CLI_OUTPUT_INFO_NINJA
+ - Write-Output $Write-Output
+ - Write-Output $NINJA_BUILD_PARALLEL_LEVEL
+ - Write-Output $PARALLEL_OPTIONS
+ - Write-Output $NINJA_OPTIMIZATION
+ - Write-Output $NINJA_EXPLICIT_COMPILER_SET
+ - Write-Output $DISPLAY_NINJA_LOG
+ - Write-Output $SEARCH_NINJA_ERROR
+ - Write-Output $DISPLAY_SEARCH_STATUS
+ - Write-Output $SET_EXIT_CODE_BASED_ON_SEARCH_STATUS
+ - Write-Output $SHOW_SEARCH_STATUS_SCRIPT
+ - Write-Output $LAUNCH_SEARCH_STATUS_SCRIPT
+ #We are forced to use Invoke-Expression to explain to powershell that we don't want it to touch to spaces in arguments
+ #If we don't use it, '-A Win32' will be interpreted as "-A ' Win32'" thus making the build fail
+ - echo $LastExitCode
+ - Invoke-Expression "& cmake .. -G '$CMAKE_GENERATOR' -DLINPHONESDK_PLATFORM=$LINPHONESDK_PLATFORM -DENABLE_CSHARP_WRAPPER=YES -DCMAKE_BUILD_TYPE=$CI_BUILD_TYPE $NINJA_BUILD_PARALLEL_LEVEL $NINJA_EXPLICIT_COMPILER_SET $DEFAULT_CMAKE_OPTIONS $DEFAULT_WINDOWS_CMAKE_OPTIONS $CMAKE_OPTIONS $CMAKE_ARCHITECTURE $SCHEDULE_CMAKE_OPTIONS $RELEASE_FILE"
+ - echo $LastExitCode
+ - 'if (-not ($LastExitCode -eq 0)) {throw "Error: Configure failed"}'
+ - $CLI_OUTPUT_INFO_NINJA
+ #Warning : Ninja doesn't return an error code on Linker error.
+ #Store outputs in a file log
+ #Only in powershell 7 (Gitlab 14+)
+ # - cmake --build . --target install --config RelWithDebInfo --parallel $MAKEFILE_JOBS | Select-String -NotMatch -Raw -Pattern "inclusion du fichier"
+ - Write-Output $PARALLEL_OPTIONS
+ - Write-Output $NINJA_OPTIMIZATION
+ # /!\ By design, we must keep $NINJA_OPTIMIZATION as the last option of the line, because it contains an output redirect
+ - echo $LastExitCode
+ - Invoke-Expression "cmake --build . --target $BUILD_TARGET --config $CI_BUILD_TYPE $PARALLEL_OPTIONS $NINJA_OPTIMIZATION"
+ - if ($EXITS_ON_ERROR_MSVC) { Invoke-Expression "$EXITS_ON_ERROR_MSVC" } else { Write-Output "EXITS_ON_ERROR_MSVC is null" }
+ - if ($DISPLAY_NINJA_LOG) { Invoke-Expression "$DISPLAY_NINJA_LOG" } else { Write-Output "DISPLAY_NINJA_LOG is null" }
+ - if ($SEARCH_NINJA_ERROR) { Invoke-Expression "$SEARCH_NINJA_ERROR" } else { Write-Output "SEARCH_NINJA_ERROR is null" }
+ - if ($DISPLAY_SEARCH_STATUS) { Invoke-Expression "$DISPLAY_SEARCH_STATUS" } else { Write-Output "DISPLAY_SEARCH_STATUS is null" }
+ - if ($SET_EXIT_CODE_BASED_ON_SEARCH_STATUS) { Invoke-Expression "$SET_EXIT_CODE_BASED_ON_SEARCH_STATUS" } else { Write-Output "SET_EXIT_CODE_BASED_ON_SEARCH_STATUS is null" }
+ - if ($SHOW_SEARCH_STATUS_SCRIPT) { Invoke-Expression "$SHOW_SEARCH_STATUS_SCRIPT" } else { Write-Output "SHOW_SEARCH_STATUS_SCRIPT is null" }
+ - if ($LAUNCH_SEARCH_STATUS_SCRIPT) { Invoke-Expression "$LAUNCH_SEARCH_STATUS_SCRIPT" -ErrorAction stop } else { Write-Output "LAUNCH_SEARCH_STATUS_SCRIPT is null" }
+ - C:\PROGRA~1\Python37\Scripts\cl -s
+ - cd linphone-sdk
+ - mkdir $OUTPUT_ZIP_FOLDER
+ - Copy-Item -Path "*.zip" -Destination "$CI_PROJECT_DIR/build-desktop/linphone-sdk/$OUTPUT_ZIP_FOLDER" -Recurse
+
+################
+ artifacts:
+ paths:
+ - build-desktop\ninja_buildlog.txt
+ - build-desktop\ninja_buildlog.txt
+ - build-desktop\invertSearch.ps1
+ - build-desktop\OUTPUT\*
+ when: always
+ expire_in: 1 week
+
+.windows-vs2019-msvc:
+ extends: .windows-vs2019
+ variables:
+ CMAKE_OPTIONS: -DENABLE_UNIT_TESTS=ON -DLINPHONE_WINDOWS_SIGN_TOOL=$WINDOWS_SIGN_TOOL -DLINPHONE_WINDOWS_SIGN_TIMESTAMP_URL=$WINDOWS_SIGN_TIMESTAMP_URL -DLINPHONE_WINDOWS_SIGN_HASH=$WINDOWS_SIGN_HASH -DENABLE_G729=ON -DENABLE_PQCRYPTO=ON
+ LINPHONESDK_PLATFORM: Desktop
+ CMAKE_GENERATOR: "Visual Studio 16 2019"
+ BUILD_TARGET: install
+ PARALLEL_OPTIONS: "-- /maxcpucount /nodeReuse:true /p:TrackFileAccess=false"
+ EXITS_ON_ERROR_MSVC: 'if (-not ($$LastExitCode -eq 0)) {throw "Error: Build failed"}'
+
+.windows-vs2019-scheduled:
+ extends: .windows-vs2019-msvc
+ rules:
+ - if: $NIGHTLY_MASTER
+ - if: $NIGHTLY_RELEASE
+ - if: $ENABLE_WINDOWS_TESTS
+ before_script:
+ #cache disabled on scheduled builds since we dot not need the fastest build
+ - Set-Variable -Name "CLCACHE_DISABLE" -Value 1
+
+######################################################
+# JOBS
+######################################################
+
+vs2019-msvc-win64-windows:
+ extends: .windows-vs2019-msvc
+ variables:
+ CMAKE_C_COMPILER : cl.exe
+ CMAKE_CXX_COMPILER : cl.exe
+ CMAKE_RC_COMPILER : rc.exe
+
+######################################################
+# NIGHTLY
+######################################################
+
+## ON SCHEDULE ##
+
+vs2019-win64-scheduled-windows:
+ extends: .windows-vs2019-scheduled
+ rules:
+ - if: $NIGHTLY_MASTER
+ - if: $NIGHTLY_RELEASE
+ - if: $DEPLOY_RUN_WINDOWS
+
+#################################################
+# PACKAGE
+#################################################
+
+#Remove . when packaging process is ready to use
+vs2019-win64-package:
+ stage: package
+ extends: .windows-vs2019-msvc
+ dependencies: []
+ rules:
+ - if: $NIGHTLY_MASTER
+ - if: $NIGHTLY_RELEASE
+ - if: $PACKAGE_WINDOWS
+ - if: $DEPLOY_WINDOWS
+ variables:
+ CMAKE_OPTIONS: -DENABLE_APP_PACKAGING=YES -DLINPHONE_WINDOWS_SIGN_TOOL=$WINDOWS_SIGN_TOOL -DLINPHONE_WINDOWS_SIGN_TIMESTAMP_URL=$WINDOWS_SIGN_TIMESTAMP_URL -DLINPHONE_WINDOWS_SIGN_HASH=$WINDOWS_SIGN_HASH -DENABLE_G729=ON -DENABLE_PQCRYPTO=ON
+ RELEASE_FILE: -DLINPHONE_SDK_MAKE_RELEASE_FILE_URL=$MAKE_RELEASE_FILE_URL/$WINDOWS_PLATFORM/$APP_FOLDER
+
+#################################################
+# DEPLOY
+#################################################
+
+vs2019-win64-upload:
+ stage: deploy
+ tags: [ "windows-powershell"]
+ rules:
+ - if: $NIGHTLY_MASTER
+ - if: $DEPLOY_WINDOWS
+ needs:
+ - vs2019-win64-package
+ script:
+ - scp -pr build-desktop/OUTPUT/Packages/*.exe ${DEPLOY_SERVER}:${UPLOAD_ROOT_PATH}/${WINDOWS_PLATFORM}/${APP_FOLDER}
+ - if ($MAKE_RELEASE_FILE_URL) { scp -pr build-desktop/OUTPUT/RELEASE ${DEPLOY_SERVER}:${UPLOAD_ROOT_PATH}/${WINDOWS_PLATFORM}/ }
+ - if ($MAKE_RELEASE_FILE_URL) { scp -pr build-desktop/OUTPUT/RELEASE ${MAIN_DEPLOY_SERVER}:${UPLOAD_ROOT_PATH}/${WINDOWS_PLATFORM}/ }
+
+vs2019-win64-plugins-upload:
+ stage: deploy
+ tags: [ "windows"]
+ rules:
+ - if: $DEPLOY_PLUGINS
+ needs:
+ - vs2019-win64-scheduled-windows
+ script:
+ - scp "build-desktop/OUTPUT/plugins/app/*.dll" "%DEPLOY_SERVER%:%WINDOWS_UPLOAD_DIRECTORY%/plugins"
+
+
+
+
+
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 000000000..d04cdf026
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,60 @@
+#################################################
+# Base configuration
+#################################################
+
+variables:
+ GIT_SUBMODULE_STRATEGY: recursive
+ MAKEFILE_JOBS: 5
+ CCACHE_SIZE: 2G
+#this option is used to speedup submodule building times, when we don't need to trace debug (like SDK where it is already tested in its project)
+ LBC_NODEBUG_OPTIONS : --parallel $MAKEFILE_JOBS
+ DEFAULT_LINUX_CMAKE_OPTIONS: -DCMAKE_BUILD_PARALLEL_LEVEL=$MAKEFILE_JOBS
+ DEFAULT_MACOS_CMAKE_OPTIONS: -DCMAKE_BUILD_PARALLEL_LEVEL=$MAKEFILE_JOBS
+ DEFAULT_WINDOWS_CMAKE_OPTIONS: -DCMAKE_BUILD_PARALLEL_LEVEL=$MAKEFILE_JOBS
+
+# DEFAULT_LINUX_CMAKE_OPTIONS: -DENABLE_NON_FREE_CODECS=YES -DENABLE_OPENH264=YES
+# DEFAULT_MACOS_CMAKE_OPTIONS: -DCMAKE_OSX_DEPLOYMENT_TARGET=10.11 -DENABLE_UPDATE_CHECK=YES
+# DEFAULT_WINDOWS_CMAKE_OPTIONS: -DENABLE_NON_FREE_CODECS=YES -DENABLE_OPENH264=YES -DENABLE_UPDATE_CHECK=YES
+
+ #activated by default, if there is a problem, see the default
+ #build options in CMakeBuilder
+ #CMAKE_OPTIONS: -DENABLE_LIME_X3DH=YES
+
+# Docker image version
+ ARCHLINUX_IMAGE_VERSION: latestupdated
+ CENTOS_7_QT_IMAGE_VERSION: 20211012_add_qtwebview
+ DEBIAN_9_QT_IMAGE_VERSION: 20230417_qtopen_gstreamer
+ DEBIAN_10_IMAGE_VERSION: 20210217_python3
+ UBUNTU_ROLLING_IMAGE_VERSION: 20211012_add_qtwebview
+
+
+workflow:
+ rules:
+ - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
+ when: never
+ #Launch merge request pipeline is there is a merge request open
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE !~ /^Draft:.*/
+ #Launch pipeline if there is a schedule event
+ - if: $CI_PIPELINE_SOURCE == "schedule"
+
+#################################################
+# Platforms to test
+#################################################
+
+.job-prepare:
+ variables:
+ ALL_JOB_VARIABLE: ""
+
+include:
+# - '.gitlab-ci-files/job-linux-prepare.yml'
+# - '.gitlab-ci-files/job-linux-desktop.yml'
+# - '.gitlab-ci-files/job-linux-desktop-debian9.yml'
+# - '.gitlab-ci-files/job-windows-desktop.yml'
+# - '.gitlab-ci-files/job-macosx-desktop.yml'
+
+
+#stages:
+# - build
+# - package
+# - signing
+# - deploy
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 000000000..e82ae2c11
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "linphone-sdk"]
+path = external/linphone-sdk
+ url = https://gitlab.linphone.org/BC/public/linphone-sdk.git
\ No newline at end of file
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 000000000..e4e5edd0c
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,253 @@
+################################################################################
+#
+# Copyright (c) 2010-2023 Belledonne Communications SARL.
+#
+# This file is part of linphone-desktop
+# (see https://www.linphone.org).
+#
+# 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 3 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, see .
+#
+################################################################################
+
+cmake_minimum_required(VERSION 3.22)
+
+
+get_cmake_property(vars CACHE_VARIABLES)
+foreach(var ${vars})
+ get_property(currentHelpString CACHE "${var}" PROPERTY HELPSTRING)
+ if("${currentHelpString}" MATCHES "No help, variable specified on the command line." OR "${currentHelpString}" STREQUAL "")
+ #message("${var} = [${${var}}] -- ${currentHelpString}") # uncomment to see the variables being processed
+ list(APPEND USER_ARGS "-D${var}=${${var}}")
+ if( "${var}" STREQUAL "CMAKE_PREFIX_PATH")
+ set(PREFIX_PATH ";${${var}}")
+ endif()
+ elseif("${var}" STREQUAL "CMAKE_GENERATOR_PLATFORM" AND NOT("${${var}}" STREQUAL ""))
+ message(STATUS "User-Setting Platform to ${${var}}")
+ endif()
+endforeach()
+if(ENABLE_BUILD_VERBOSE)
+ message("User Args : ${USER_ARGS}")
+endif()
+
+project(linphoneqt)
+
+include(GNUInstallDirs)
+include(CheckCXXCompilerFlag)
+#include(linphone-app/application_info.cmake)
+
+set(CMAKE_CXX_STANDARD 17)
+if(LINPHONEAPP_INSTALL_PREFIX)
+ set(APPLICATION_OUTPUT_DIR "${LINPHONEAPP_INSTALL_PREFIX}")
+else()
+ set(APPLICATION_OUTPUT_DIR "${CMAKE_BINARY_DIR}/OUTPUT")
+endif()
+
+
+set(CMAKE_INSTALL_PREFIX "${APPLICATION_OUTPUT_DIR}")
+
+if( APPLE )
+ set(LINPHONESDK_BUILD_TYPE "Default")#Using Mac will remove all SDK targets.
+ set(ENABLE_FAT_BINARY "ON") # Disable XCFrameworks as it is not supported.
+
+ set(CMAKE_INSTALL_BINDIR "${APPLICATION_NAME}.app/Contents/MacOS")
+ set(CMAKE_INSTALL_LIBDIR "${APPLICATION_NAME}.app/Contents/Frameworks")
+ set(CMAKE_INSTALL_INCLUDEDIR "${APPLICATION_NAME}.app/Contents/Resources/include")
+ set(CMAKE_INSTALL_DATAROOTDIR "${APPLICATION_NAME}.app/Contents/Resources/share")
+
+ if( NOT CMAKE_OSX_DEPLOYMENT_TARGET)
+ set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum OS X deployment version")
+ endif()
+ if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm64")# TODO: add universal build
+ set(LINPHONESDK_MACOS_ARCHS "x86_64" CACHE STRING "MacOS architectures to build for: comma-separated list of values in [x86_64]")
+ else()
+ set(LINPHONESDK_MACOS_ARCHS "x86_64" CACHE STRING "MacOS architectures to build for: comma-separated list of values in [x86_64]")
+ endif()
+ set(CMAKE_OSX_ARCHITECTURES ${LINPHONESDK_MACOS_ARCHS} CACHE STRING "")
+ set(CMAKE_SYSTEM_PROCESSOR "x86_64")
+elseif(WIN32)
+ set(LINPHONESDK_BUILD_TYPE "Default")
+else()
+endif()
+
+
+if(NOT LINPHONE_OUTPUT_DIR)# set this variable only if you don't build the module
+ set(LINPHONE_OUTPUT_DIR "${CMAKE_INSTALL_PREFIX}")# Cannot be different from the current CMAKE_INSTALL_PREFIX
+endif()
+
+if( NOT QTKEYCHAIN_OUTPUT_DIR) # set this variable only if you don't build the module
+ set(QTKEYCHAIN_OUTPUT_DIR "${CMAKE_INSTALL_PREFIX}")# Cannot be different from the current CMAKE_INSTALL_PREFIX
+endif()
+
+
+
+# Avoid cmake warning if CMP0071 is not set.
+if (POLICY CMP0071)
+ cmake_policy(SET CMP0071 NEW)
+endif ()
+#set_property(GLOBAL PROPERTY USE_FOLDERS ON)
+
+#------------------------------------------------------------------------------
+# Prepare gobal CMAKE configuration specific to the current project
+
+if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
+ set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/OUTPUT" CACHE PATH "Default linphone-app installation prefix" FORCE)
+ set(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT FALSE)
+endif()
+
+if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
+ message(STATUS "Setting build type to 'RelWithDebInfo' as none was specified")
+ set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
+ # Set the available build type values for cmake-gui
+ set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "RelWithDebInfo")
+endif()
+
+# ------------------------------------------------------------------------------
+
+
+#-------------------------------------------------------------------------------
+# SET OPTIONS
+#-------------------------------------------------------------------------------
+set(OPTION_LIST "")
+#function doesn't work with strings value
+function(add_option _OPTION_LIST OPTION DESC VALUE)
+ option(${OPTION} ${DESC} ${VALUE})
+ list(APPEND _OPTION_LIST ${${_OPTION_LIST}} "-D${OPTION}=${${OPTION}}")
+ set(${${_OPTION_LIST}} ${_OPTION_LIST} PARENT_SCOPE)
+endfunction()
+
+function(add_cache _OPTION_LIST OPTION DESC VALUE)
+ set(${OPTION} ${VALUE} CACHE STRING ${DESC})
+ list(APPEND _OPTION_LIST ${${_OPTION_LIST}} "-D${OPTION}=${${OPTION}}")
+ set(${${_OPTION_LIST}} ${_OPTION_LIST} PARENT_SCOPE)
+endfunction()
+
+add_option(OPTION_LIST ENABLE_APP_LICENSE "Enable the license in packages." ON)
+add_option(OPTION_LIST ENABLE_APP_OAUTH2 "Build with OAuth2 support for remote provisioning." OFF) # Experimental.
+add_option(OPTION_LIST ENABLE_APP_PACKAGING "Enable packaging" OFF)
+add_option(OPTION_LIST ENABLE_APP_PACKAGE_ROOTCA "Embed the rootca file into the package" ON)
+add_option(OPTION_LIST ENABLE_APP_PDF_VIEWER "Enable Pdf viewer. Only enable if the version of Qt have the module. Cannot be activated because of Qt find_package() make an error on unbound pdf." OFF)
+add_option(OPTION_LIST ENABLE_APP_WEBVIEW "Enable webviews. Webview is not fully supported because of deployments. Used for subscription." OFF)
+add_option(OPTION_LIST ENABLE_BUILD_APP_PLUGINS "Enable the build of plugins" ON)
+add_option(OPTION_LIST ENABLE_BUILD_EXAMPLES "Enable the build of examples" OFF)
+add_option(OPTION_LIST ENABLE_BUILD_VERBOSE "Enable the build generation to be more verbose" OFF)
+add_option(OPTION_LIST ENABLE_CONSOLE_UI "Turn on or off compilation of console interface." OFF)
+add_option(OPTION_LIST ENABLE_DAEMON "Enable the linphone daemon interface." OFF)
+add_option(OPTION_LIST ENABLE_DOC "Enable API documentation generation." OFF)
+add_option(OPTION_LIST ENABLE_FFMPEG "Build mediastreamer2 with ffmpeg video support. No more needed." OFF)
+add_option(OPTION_LIST ENABLE_LDAP "Enable LDAP support." YES)
+add_option(OPTION_LIST ENABLE_NON_FREE_CODECS "Enable the use of non free codecs" YES)
+add_option(OPTION_LIST ENABLE_NON_FREE_FEATURES "Enable the use of non free codecs" ${ENABLE_NON_FREE_CODECS})
+add_option(OPTION_LIST ENABLE_OPENH264 "Enable the use of OpenH264 codec" YES)
+add_option(OPTION_LIST ENABLE_QT_KEYCHAIN "Build QtKeychain to manage VFS from System key stores." ON)
+add_option(OPTION_LIST ENABLE_QRCODE "Enable QRCode support" OFF)#Experimental
+add_option(OPTION_LIST ENABLE_RELATIVE_PREFIX "Set Internal packages relative to the binary" ON)
+add_option(OPTION_LIST ENABLE_SANITIZER "Enable sanitizer." OFF)
+add_option(OPTION_LIST ENABLE_STRICT "Build with strict compilator flags e.g. -Wall -Werror" OFF)
+add_option(OPTION_LIST ENABLE_TESTS "Build with testing binaries of SDK" OFF)
+add_option(OPTION_LIST ENABLE_TESTS_COMPONENTS "Build libbctoolbox-tester" OFF)
+add_option(OPTION_LIST ENABLE_TOOLS "Enable tools of SDK" OFF)
+add_option(OPTION_LIST ENABLE_UNIT_TESTS "Enable unit test of SDK." OFF)
+add_option(OPTION_LIST ENABLE_UPDATE_CHECK "Enable update check." ON)
+add_option(OPTION_LIST ENABLE_VIDEO "Enable Video support." YES)
+add_option(OPTION_LIST ENABLE_WINDOWS_TOOLS_CHECK "Enable tools checks on Windows for auto install." OFF)
+
+
+add_option(OPTION_LIST LINPHONE_SDK_MAKE_RELEASE_FILE_URL "Make a RELEASE file that work along check_version and use this URL" "")
+
+# QtKeychain
+add_option(OPTION_LIST LIBSECRET_SUPPORT "Build with libsecret support" OFF) # Need libsecret-devel
+if(WIN32)
+ add_cache(OPTION_LIST QTKEYCHAIN_TARGET_NAME "Override Qt5Keychain library name for a workaround with windeployqt" "EQt5Keychain")
+else()
+ add_cache(OPTION_LIST QTKEYCHAIN_TARGET_NAME "Override Qt5Keychain library name" "Qt5Keychain")
+endif()
+if(WIN32)
+ add_option(OPTION_LIST ENABLE_OPENSSL_EXPORT "Enable OpenSSL deployment" YES)
+elseif(APPLE)
+ add_option(OPTION_LIST ENABLE_OPENSSL_EXPORT "Enable OpenSSL deployment" OFF)
+else()
+ add_option(OPTION_LIST ENABLE_V4L "Ability to capture and display video using libv4l2 or libv4l." YES)
+ add_option(OPTION_LIST ENABLE_OPENSSL_EXPORT "Enable OpenSSL deployment" OFF)
+endif()
+
+# Set some SDK variables to configure the APP build as we want it
+set(ENABLE_CXX_WRAPPER ON CACHE BOOL "Build the C++ wrapper for Liblinphone." FORCE)
+set(ENABLE_THEORA OFF)
+set(ENABLE_QT_GL ${ENABLE_VIDEO})
+
+# Qt5.13 because of Spitview
+#find_package(Qt5 5.13 COMPONENTS Core REQUIRED)
+
+#if(NOT Qt5_FOUND)
+# message(FATAL_ERROR "Minimum supported Qt5 version is 5.13!")
+#endif()
+
+set(LINPHONEAPP_BUILD_TYPE "Default" CACHE STRING "Type of build")
+set_property(CACHE LINPHONEAPP_BUILD_TYPE PROPERTY STRINGS "Default" "Macos" "Normal")
+
+if(LINPHONEAPP_BUILD_TYPE STREQUAL "Default")
+ if(APPLE)
+ set(LINPHONEAPP_BUILD_TYPE "Macos")
+ else()
+ set(LINPHONEAPP_BUILD_TYPE "Normal")
+ endif()
+
+endif()
+
+if(NOT APPLE OR MONO_ARCH)
+ add_custom_target(linphone-deps)
+ if(NOT LINPHONE_QT_ONLY)
+ function(add_external)
+ set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) # Prevent project from overriding the options we just set here
+ add_subdirectory("external")
+ endfunction()
+ add_external()
+
+ if(ENABLE_QT_KEYCHAIN)
+ function(add_linphone_keychain)
+ #add_subdirectory("external/qtkeychain")
+ endfunction()
+ add_linphone_keychain()
+ endif()
+ endif()
+ function(add_linphone_app)
+ set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) # Prevent project from overriding the options we just set here
+ if(UNIX)
+ set(CMAKE_INSTALL_RPATH "$ORIGIN:$ORIGIN/lib64:$ORIGIN/../lib64:$ORIGIN/lib:$ORIGIN/../lib")
+ endif()
+ add_subdirectory("Linphone")
+ endfunction()
+ add_linphone_app()
+ if(ENABLE_BUILD_APP_PLUGINS)
+ #add_subdirectory("plugins" "plugins-app")
+ endif()
+
+ if(NOT LINPHONE_QT_ONLY)
+# Move root folders to app
+ #file(MAKE_DIRECTORY "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
+ #file(MAKE_DIRECTORY "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}")
+ #file(MAKE_DIRECTORY "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}")
+ #file(MAKE_DIRECTORY "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}")
+ #if(APPLE)
+ # install(CODE "execute_process(COMMAND rsync -a --force \"${CMAKE_INSTALL_PREFIX}/Frameworks\" \"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}\" )") #Use rsync to bypass symlinks override issues of frameworks. copy_directory will fail without explicit error...
+ #endif()
+ #install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory \"${CMAKE_INSTALL_PREFIX}/include/\" \"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/\")")
+ #install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory \"${CMAKE_INSTALL_PREFIX}/share/\" \"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}/\")")
+ #install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory \"${CMAKE_INSTALL_PREFIX}/mkspecs/\" \"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}/\")")
+ endif()
+
+else()
+ include(cmake/TasksMacos.cmake)
+endif()
+
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 000000000..53d1f3d01
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,675 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ 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 3 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, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
+
diff --git a/Linphone/CMakeLists.txt b/Linphone/CMakeLists.txt
new file mode 100644
index 000000000..660b4d2d1
--- /dev/null
+++ b/Linphone/CMakeLists.txt
@@ -0,0 +1,67 @@
+cmake_minimum_required(VERSION 3.16)
+
+project(Linphone VERSION 0.1 LANGUAGES CXX)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+
+set(LINPHONE_PACKAGES LinphoneCxx)
+list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules")
+foreach(PACKAGE ${LINPHONE_PACKAGES})
+ message(STATUS "Trying to find ${PACKAGE}")
+ find_package(${PACKAGE} REQUIRED)
+ if(NOT ${PACKAGE}_FOUND)
+ find_package(${PACKAGE} CONFIG REQUIRED)
+ endif()
+endforeach()
+
+
+set(TARGET_NAME Linphone)
+set(APP_TARGETS ${LinphoneCxx_TARGET})
+
+
+set(QT_DEFAULT_MAJOR_VERSION 6)
+find_package(Qt6 REQUIRED COMPONENTS Core)
+find_package(Qt6 REQUIRED COMPONENTS Quick Qml)
+
+qt6_standard_project_setup()
+set(_LINPHONEAPP_SOURCES main.cpp)
+set(_LINPHONEAPP_QML_FILES)
+
+add_subdirectory(data)
+add_subdirectory(model)
+add_subdirectory(view)
+add_subdirectory(core)
+
+qt6_add_executable(Linphone
+ ${_LINPHONEAPP_SOURCES}
+)
+
+qt6_add_qml_module(Linphone
+ URI Linphone
+ RESOURCE_PREFIX ""
+ VERSION 1.0
+ QML_FILES ${_LINPHONEAPP_QML_FILES}
+)
+
+
+set_target_properties(Linphone PROPERTIES
+ MACOSX_BUNDLE_GUI_IDENTIFIER org.linphone
+ MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
+ MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
+ MACOSX_BUNDLE TRUE
+ WIN32_EXECUTABLE TRUE
+)
+
+foreach(T ${APP_TARGETS})
+ target_include_directories(${TARGET_NAME} SYSTEM PUBLIC $)
+ target_link_libraries(${TARGET_NAME} PUBLIC ${T})
+endforeach()
+
+
+target_link_libraries(${TARGET_NAME}
+ PRIVATE Qt6::Core Qt6::Quick Qt6::Qml)
+
+install(TARGETS ${TARGET_NAME}
+ BUNDLE DESTINATION .
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
diff --git a/Linphone/core/App.cpp b/Linphone/core/App.cpp
new file mode 100644
index 000000000..9931ec51d
--- /dev/null
+++ b/Linphone/core/App.cpp
@@ -0,0 +1,26 @@
+#include "App.hpp"
+
+#include
+
+
+App::App(QObject * parent) : QObject(parent) {
+ init();
+}
+
+
+void App::init() {
+// Core
+ mCoreModel = QSharedPointer::create("", this);
+ mCoreModel->start();
+// QML
+ mEngine = new QQmlApplicationEngine(this);
+ mEngine->addImportPath(":/");
+
+ const QUrl url(u"qrc:/Linphone/view/qml/App/Main.qml"_qs);
+ QObject::connect(mEngine, &QQmlApplicationEngine::objectCreated,
+ this, [url](QObject *obj, const QUrl &objUrl) {
+ if (!obj && url == objUrl)
+ QCoreApplication::exit(-1);
+ }, Qt::QueuedConnection);
+ mEngine->load(url);
+}
\ No newline at end of file
diff --git a/Linphone/core/App.hpp b/Linphone/core/App.hpp
new file mode 100644
index 000000000..badd6e9d0
--- /dev/null
+++ b/Linphone/core/App.hpp
@@ -0,0 +1,15 @@
+
+#include
+#include
+
+#include "model/core/CoreModel.hpp"
+
+class App : public QObject{
+public:
+ App(QObject * parent = nullptr);
+
+ void init();
+
+ QQmlApplicationEngine * mEngine = nullptr;
+ QSharedPointer mCoreModel;
+};
\ No newline at end of file
diff --git a/Linphone/core/CMakeLists.txt b/Linphone/core/CMakeLists.txt
new file mode 100644
index 000000000..661d7b4ee
--- /dev/null
+++ b/Linphone/core/CMakeLists.txt
@@ -0,0 +1,5 @@
+list(APPEND _LINPHONEAPP_SOURCES
+ core/App.cpp
+)
+
+set(_LINPHONEAPP_SOURCES ${_LINPHONEAPP_SOURCES} PARENT_SCOPE)
diff --git a/Linphone/data/CMakeLists.txt b/Linphone/data/CMakeLists.txt
new file mode 100644
index 000000000..e69de29bb
diff --git a/Linphone/data/font/NotoSans-hinted/LICENSE_OFL.txt b/Linphone/data/font/NotoSans-hinted/LICENSE_OFL.txt
new file mode 100644
index 000000000..d952d62c0
--- /dev/null
+++ b/Linphone/data/font/NotoSans-hinted/LICENSE_OFL.txt
@@ -0,0 +1,92 @@
+This Font Software is licensed under the SIL Open Font License,
+Version 1.1.
+
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font
+creation efforts of academic and linguistic communities, and to
+provide a free and open framework in which fonts may be shared and
+improved in partnership with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply to
+any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software
+components as distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to,
+deleting, or substituting -- in part or in whole -- any of the
+components of the Original Version, by changing formats or by porting
+the Font Software to a new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed,
+modify, redistribute, and sell modified and unmodified copies of the
+Font Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components, in
+Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the
+corresponding Copyright Holder. This restriction only applies to the
+primary font name as presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created using
+the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/Linphone/data/font/NotoSans-hinted/NotoSans-Bold.ttf b/Linphone/data/font/NotoSans-hinted/NotoSans-Bold.ttf
new file mode 100644
index 000000000..ab11d3163
Binary files /dev/null and b/Linphone/data/font/NotoSans-hinted/NotoSans-Bold.ttf differ
diff --git a/Linphone/data/font/NotoSans-hinted/NotoSans-BoldItalic.ttf b/Linphone/data/font/NotoSans-hinted/NotoSans-BoldItalic.ttf
new file mode 100644
index 000000000..6dfd1e614
Binary files /dev/null and b/Linphone/data/font/NotoSans-hinted/NotoSans-BoldItalic.ttf differ
diff --git a/Linphone/data/font/NotoSans-hinted/NotoSans-Italic.ttf b/Linphone/data/font/NotoSans-hinted/NotoSans-Italic.ttf
new file mode 100644
index 000000000..1639ad7d4
Binary files /dev/null and b/Linphone/data/font/NotoSans-hinted/NotoSans-Italic.ttf differ
diff --git a/Linphone/data/font/NotoSans-hinted/NotoSans-Regular.ttf b/Linphone/data/font/NotoSans-hinted/NotoSans-Regular.ttf
new file mode 100644
index 000000000..a1b8994ed
Binary files /dev/null and b/Linphone/data/font/NotoSans-hinted/NotoSans-Regular.ttf differ
diff --git a/Linphone/data/font/NotoSans-hinted/NotoSansUI-Bold.ttf b/Linphone/data/font/NotoSans-hinted/NotoSansUI-Bold.ttf
new file mode 100644
index 000000000..6dee5c2d5
Binary files /dev/null and b/Linphone/data/font/NotoSans-hinted/NotoSansUI-Bold.ttf differ
diff --git a/Linphone/data/font/NotoSans-hinted/NotoSansUI-BoldItalic.ttf b/Linphone/data/font/NotoSans-hinted/NotoSansUI-BoldItalic.ttf
new file mode 100644
index 000000000..4bd6f9d87
Binary files /dev/null and b/Linphone/data/font/NotoSans-hinted/NotoSansUI-BoldItalic.ttf differ
diff --git a/Linphone/data/font/NotoSans-hinted/NotoSansUI-Italic.ttf b/Linphone/data/font/NotoSans-hinted/NotoSansUI-Italic.ttf
new file mode 100644
index 000000000..54cae82b7
Binary files /dev/null and b/Linphone/data/font/NotoSans-hinted/NotoSansUI-Italic.ttf differ
diff --git a/Linphone/data/font/NotoSans-hinted/NotoSansUI-Regular.ttf b/Linphone/data/font/NotoSans-hinted/NotoSansUI-Regular.ttf
new file mode 100644
index 000000000..65b29fcff
Binary files /dev/null and b/Linphone/data/font/NotoSans-hinted/NotoSansUI-Regular.ttf differ
diff --git a/Linphone/data/font/NotoSans-hinted/README b/Linphone/data/font/NotoSans-hinted/README
new file mode 100644
index 000000000..60e9f3405
--- /dev/null
+++ b/Linphone/data/font/NotoSans-hinted/README
@@ -0,0 +1,15 @@
+This package is part of the noto project. Visit
+google.com/get/noto for more information.
+
+Built on 2017-04-03 from the following noto repository:
+-----
+Repo: noto-fonts
+Tag: v2017-03-06-phase3-initial
+Date: 2017-03-06 15:25:38 GMT
+Commit:60aa0da2ee84b11e78725b4577edc2e80b009d56
+
+Initial phase 3.
+
+This is the first release of noto-fonts that includes phase 3 fonts in
+the hinted/unhinted subdirectories. The new fonts are Armenian,
+Cherokee, and Hebrew.
diff --git a/Linphone/data/icon/genicons.sh b/Linphone/data/icon/genicons.sh
new file mode 100755
index 000000000..d1bbce381
--- /dev/null
+++ b/Linphone/data/icon/genicons.sh
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+##
+## Copyright (c) 2010-2020 Belledonne Communications SARL.
+##
+## This file is part of linphone-desktop
+## (see https://www.linphone.org).
+##
+## 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 3 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, see .
+##
+
+for i in 16 22 24 32 64 128 256
+do
+ mkdir -p hicolor/${i}x${i}/apps
+ inkscape -z -e hicolor/${i}x${i}/apps/icon.png -w $i -h $i ../images/linphone_logo.svg
+done
+convert -density 256x256 -background transparent ../images/linphone_logo.svg -define icon:auto-resize -colors 256 ../icon.ico
+png2icns ../../cmake_builder/linphone_package/macos/linphone.icns hicolor/16x16/apps/icon.png hicolor/32x32/apps/icon.png hicolor/128x128/apps/icon.png hicolor/256x256/apps/icon.png
diff --git a/Linphone/data/icon/genicons_1.0.sh b/Linphone/data/icon/genicons_1.0.sh
new file mode 100755
index 000000000..af8b76a00
--- /dev/null
+++ b/Linphone/data/icon/genicons_1.0.sh
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+##
+## Copyright (c) 2010-2020 Belledonne Communications SARL.
+##
+## This file is part of linphone-desktop
+## (see https://www.linphone.org).
+##
+## 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 3 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, see .
+##
+
+for i in 16 22 24 32 64 128 256
+do
+ mkdir -p hicolor/${i}x${i}/apps
+ inkscape -z --export-type=png --export-file=hicolor/${i}x${i}/apps/icon.png -w $i -h $i ../images/linphone_logo.svg
+done
+convert -density 256x256 -background transparent ../images/linphone_logo.svg -define icon:auto-resize -colors 256 ../icon.ico
+png2icns ../../cmake_builder/linphone_package/macos/linphone.icns hicolor/16x16/apps/icon.png hicolor/32x32/apps/icon.png hicolor/128x128/apps/icon.png hicolor/256x256/apps/icon.png
diff --git a/Linphone/data/icon/genicons_1.1.sh b/Linphone/data/icon/genicons_1.1.sh
new file mode 100755
index 000000000..b23d528b4
--- /dev/null
+++ b/Linphone/data/icon/genicons_1.1.sh
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+##
+## Copyright (c) 2010-2020 Belledonne Communications SARL.
+##
+## This file is part of linphone-desktop
+## (see https://www.linphone.org).
+##
+## 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 3 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, see .
+##
+
+for i in 16 22 24 32 64 128 256
+do
+ mkdir -p hicolor/${i}x${i}/apps
+ inkscape -z --export-type=png --export-filename=hicolor/${i}x${i}/apps/icon.png -w $i -h $i ../images/linphone_logo.svg
+done
+convert -density 256x256 -background transparent ../images/linphone_logo.svg -define icon:auto-resize -colors 256 ../icon.ico
+png2icns ../../cmake_builder/linphone_package/macos/linphone.icns hicolor/16x16/apps/icon.png hicolor/32x32/apps/icon.png hicolor/128x128/apps/icon.png hicolor/256x256/apps/icon.png
diff --git a/Linphone/data/icon/hicolor/128x128/apps/icon.png b/Linphone/data/icon/hicolor/128x128/apps/icon.png
new file mode 100644
index 000000000..67d40bb2a
Binary files /dev/null and b/Linphone/data/icon/hicolor/128x128/apps/icon.png differ
diff --git a/Linphone/data/icon/hicolor/16x16/apps/icon.png b/Linphone/data/icon/hicolor/16x16/apps/icon.png
new file mode 100644
index 000000000..9b123fa62
Binary files /dev/null and b/Linphone/data/icon/hicolor/16x16/apps/icon.png differ
diff --git a/Linphone/data/icon/hicolor/22x22/apps/icon.png b/Linphone/data/icon/hicolor/22x22/apps/icon.png
new file mode 100644
index 000000000..f11392991
Binary files /dev/null and b/Linphone/data/icon/hicolor/22x22/apps/icon.png differ
diff --git a/Linphone/data/icon/hicolor/24x24/apps/icon.png b/Linphone/data/icon/hicolor/24x24/apps/icon.png
new file mode 100644
index 000000000..212e9a5ac
Binary files /dev/null and b/Linphone/data/icon/hicolor/24x24/apps/icon.png differ
diff --git a/Linphone/data/icon/hicolor/256x256/apps/icon.png b/Linphone/data/icon/hicolor/256x256/apps/icon.png
new file mode 100644
index 000000000..84fcebd90
Binary files /dev/null and b/Linphone/data/icon/hicolor/256x256/apps/icon.png differ
diff --git a/Linphone/data/icon/hicolor/32x32/apps/icon.png b/Linphone/data/icon/hicolor/32x32/apps/icon.png
new file mode 100644
index 000000000..73c108739
Binary files /dev/null and b/Linphone/data/icon/hicolor/32x32/apps/icon.png differ
diff --git a/Linphone/data/icon/hicolor/64x64/apps/icon.png b/Linphone/data/icon/hicolor/64x64/apps/icon.png
new file mode 100644
index 000000000..6af6716bf
Binary files /dev/null and b/Linphone/data/icon/hicolor/64x64/apps/icon.png differ
diff --git a/Linphone/data/image/logo.svg b/Linphone/data/image/logo.svg
new file mode 100644
index 000000000..1693e3117
--- /dev/null
+++ b/Linphone/data/image/logo.svg
@@ -0,0 +1,49 @@
+
+
diff --git a/Linphone/data/lang/Linphone_en_US.ts b/Linphone/data/lang/Linphone_en_US.ts
new file mode 100644
index 000000000..edd0d342c
--- /dev/null
+++ b/Linphone/data/lang/Linphone_en_US.ts
@@ -0,0 +1,3 @@
+
+
+
diff --git a/Linphone/main.cpp b/Linphone/main.cpp
new file mode 100644
index 000000000..f00f4f0be
--- /dev/null
+++ b/Linphone/main.cpp
@@ -0,0 +1,24 @@
+#include
+#include
+
+#include
+#include
+
+#include "core/App.hpp"
+
+int main(int argc, char *argv[]) {
+ QGuiApplication app(argc, argv);
+
+ QTranslator translator;
+ const QStringList uiLanguages = QLocale::system().uiLanguages();
+ for (const QString &locale : uiLanguages) {
+ const QString baseName = "Linphone_" + QLocale(locale).name();
+ if (translator.load(":/i18n/" + baseName)) {
+ app.installTranslator(&translator);
+ break;
+ }
+ }
+ App a;
+ int result = app.exec();
+ return result;
+}
diff --git a/Linphone/model/CMakeLists.txt b/Linphone/model/CMakeLists.txt
new file mode 100644
index 000000000..31ffc2d3b
--- /dev/null
+++ b/Linphone/model/CMakeLists.txt
@@ -0,0 +1,6 @@
+list(APPEND _LINPHONEAPP_SOURCES
+ model/core/CoreModel.cpp
+ model/core/CoreListener.cpp
+)
+
+set(_LINPHONEAPP_SOURCES ${_LINPHONEAPP_SOURCES} PARENT_SCOPE)
diff --git a/Linphone/model/core/CoreListener.cpp b/Linphone/model/core/CoreListener.cpp
new file mode 100644
index 000000000..d65d90d99
--- /dev/null
+++ b/Linphone/model/core/CoreListener.cpp
@@ -0,0 +1,110 @@
+/*
+ * Copyright (c) 2010-2020 Belledonne Communications SARL.
+ *
+ * This file is part of linphone-desktop
+ * (see https://www.linphone.org).
+ *
+ * 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 3 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, see .
+ */
+
+#include "CoreListener.hpp"
+
+// =============================================================================
+
+
+// -----------------------------------------------------------------------------
+
+CoreListener::CoreListener(QObject * parent): QObject(parent){
+}
+CoreListener::~CoreListener(){
+}
+
+void CoreListener::onAccountRegistrationStateChanged(const std::shared_ptr & core,const std::shared_ptr & account,linphone::RegistrationState state,const std::string & message){
+ emit accountRegistrationStateChanged(core,account,state,message);
+}
+void CoreListener::onAuthenticationRequested (const std::shared_ptr &core,const std::shared_ptr &authInfo,linphone::AuthMethod method){
+ emit authenticationRequested (core,authInfo,method);
+}
+void CoreListener::onCallEncryptionChanged (const std::shared_ptr &core,const std::shared_ptr &call,bool on,const std::string &authenticationToken){
+ emit callEncryptionChanged (core,call,on,authenticationToken);
+}
+void CoreListener::onCallLogUpdated(const std::shared_ptr & core, const std::shared_ptr & callLog){
+ emit callLogUpdated(core, callLog);
+}
+void CoreListener::onCallStateChanged (const std::shared_ptr &core,const std::shared_ptr &call,linphone::Call::State state,const std::string &message){
+ emit callStateChanged (core,call,state,message);
+}
+void CoreListener::onCallStatsUpdated (const std::shared_ptr &core,const std::shared_ptr &call,const std::shared_ptr &stats){
+ emit callStatsUpdated (core,call,stats);
+}
+void CoreListener::onCallCreated(const std::shared_ptr & lc,const std::shared_ptr & call){
+ emit callCreated(lc,call);
+}
+void CoreListener::onChatRoomRead(const std::shared_ptr & core, const std::shared_ptr & chatRoom){
+ emit chatRoomRead(core, chatRoom);
+}
+void CoreListener::onChatRoomStateChanged(const std::shared_ptr & core, const std::shared_ptr & chatRoom,linphone::ChatRoom::State state){
+ emit chatRoomStateChanged(core, chatRoom,state);
+}
+void CoreListener::onConferenceInfoReceived(const std::shared_ptr & core, const std::shared_ptr & conferenceInfo){
+ emit conferenceInfoReceived(core, conferenceInfo);
+}
+void CoreListener::onConfiguringStatus(const std::shared_ptr & core,linphone::Config::ConfiguringState status,const std::string & message){
+ emit configuringStatus(core,status,message);
+}
+void CoreListener::onDtmfReceived(const std::shared_ptr & lc,const std::shared_ptr & call,int dtmf){
+ emit dtmfReceived(lc,call,dtmf);
+}
+void CoreListener::onEcCalibrationResult(const std::shared_ptr & core,linphone::EcCalibratorStatus status,int delayMs){
+ emit ecCalibrationResult(core,status,delayMs);
+}
+void CoreListener::onGlobalStateChanged (const std::shared_ptr &core,linphone::GlobalState gstate,const std::string &message){
+ emit globalStateChanged (core,gstate,message);
+}
+void CoreListener::onIsComposingReceived (const std::shared_ptr &core,const std::shared_ptr &room){
+ emit isComposingReceived (core,room);
+}
+void CoreListener::onLogCollectionUploadStateChanged (const std::shared_ptr &core,linphone::Core::LogCollectionUploadState state,const std::string &info){
+ emit logCollectionUploadStateChanged (core,state,info);
+}
+void CoreListener::onLogCollectionUploadProgressIndication (const std::shared_ptr &lc,size_t offset,size_t total){
+ emit logCollectionUploadProgressIndication (lc,offset,total);
+}
+void CoreListener::onMessageReceived (const std::shared_ptr &core,const std::shared_ptr &room,const std::shared_ptr &message){
+ emit messageReceived (core,room,message);
+}
+void CoreListener::onMessagesReceived (const std::shared_ptr &core,const std::shared_ptr &room,const std::list> &messages){
+ emit messagesReceived (core,room,messages);
+}
+void CoreListener::onNewMessageReaction(const std::shared_ptr & core, const std::shared_ptr & chatRoom, const std::shared_ptr & message, const std::shared_ptr & reaction){
+ emit newMessageReaction (core,chatRoom,message, reaction);
+}
+void CoreListener::onNotifyPresenceReceivedForUriOrTel (const std::shared_ptr &core,const std::shared_ptr &linphoneFriend,const std::string &uriOrTel,const std::shared_ptr &presenceModel){
+ emit notifyPresenceReceivedForUriOrTel (core,linphoneFriend,uriOrTel,presenceModel);
+}
+void CoreListener::onNotifyPresenceReceived (const std::shared_ptr &core,const std::shared_ptr &linphoneFriend){
+ emit notifyPresenceReceived (core,linphoneFriend);
+}
+void CoreListener::onQrcodeFound(const std::shared_ptr & core, const std::string & result){
+ emit qrcodeFound(core, result);
+}
+void CoreListener::onReactionRemoved(const std::shared_ptr & core, const std::shared_ptr & chatRoom, const std::shared_ptr & message, const std::shared_ptr & address) {
+ emit reactionRemoved(core, chatRoom, message, address);
+}
+void CoreListener::onTransferStateChanged (const std::shared_ptr &core,const std::shared_ptr &call,linphone::Call::State state){
+ emit transferStateChanged (core,call,state);
+}
+void CoreListener::onVersionUpdateCheckResultReceived (const std::shared_ptr & core,linphone::VersionUpdateCheckResult result,const std::string &version,const std::string &url){
+ emit versionUpdateCheckResultReceived (core,result,version,url);
+}
diff --git a/Linphone/model/core/CoreListener.hpp b/Linphone/model/core/CoreListener.hpp
new file mode 100644
index 000000000..a156b9245
--- /dev/null
+++ b/Linphone/model/core/CoreListener.hpp
@@ -0,0 +1,91 @@
+/*
+ * Copyright (c) 2010-2023 Belledonne Communications SARL.
+ *
+ * This file is part of linphone-desktop
+ * (see https://www.linphone.org).
+ *
+ * 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 3 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, see .
+ */
+
+#ifndef CORE_LISTENER_H_
+#define CORE_LISTENER_H_
+
+#include
+#include
+
+// =============================================================================
+
+class CoreListener : public QObject, public linphone::CoreListener {
+ Q_OBJECT
+public:
+ CoreListener (QObject * parent = nullptr);
+ virtual ~CoreListener ();
+
+ virtual void onAccountRegistrationStateChanged(const std::shared_ptr & core,const std::shared_ptr & account,linphone::RegistrationState state,const std::string & message) override;
+ virtual void onAuthenticationRequested (const std::shared_ptr &core,const std::shared_ptr &authInfo,linphone::AuthMethod method) override;
+ virtual void onCallEncryptionChanged (const std::shared_ptr &core,const std::shared_ptr &call,bool on,const std::string &authenticationToken) override;
+ virtual void onCallLogUpdated(const std::shared_ptr & core, const std::shared_ptr & callLog) override;
+ virtual void onCallStateChanged (const std::shared_ptr &core,const std::shared_ptr &call,linphone::Call::State state,const std::string &message) override;
+ virtual void onCallStatsUpdated (const std::shared_ptr &core,const std::shared_ptr &call,const std::shared_ptr &stats) override;
+ virtual void onCallCreated(const std::shared_ptr & lc,const std::shared_ptr & call) override;
+ virtual void onChatRoomRead(const std::shared_ptr & core, const std::shared_ptr & chatRoom) override;
+ virtual void onChatRoomStateChanged(const std::shared_ptr & core, const std::shared_ptr & chatRoom,linphone::ChatRoom::State state) override;
+ virtual void onConferenceInfoReceived(const std::shared_ptr & core, const std::shared_ptr & conferenceInfo) override;
+ virtual void onConfiguringStatus(const std::shared_ptr & core,linphone::Config::ConfiguringState status,const std::string & message) override;
+ virtual void onDtmfReceived(const std::shared_ptr & lc,const std::shared_ptr & call,int dtmf) override;
+ virtual void onEcCalibrationResult(const std::shared_ptr & core,linphone::EcCalibratorStatus status,int delayMs) override;
+ virtual void onGlobalStateChanged (const std::shared_ptr &core,linphone::GlobalState gstate,const std::string &message) override;
+ virtual void onIsComposingReceived (const std::shared_ptr &core,const std::shared_ptr &room) override;
+ virtual void onLogCollectionUploadStateChanged (const std::shared_ptr &core,linphone::Core::LogCollectionUploadState state,const std::string &info) override;
+ virtual void onLogCollectionUploadProgressIndication (const std::shared_ptr &lc,size_t offset,size_t total) override;
+ virtual void onMessageReceived (const std::shared_ptr &core,const std::shared_ptr &room,const std::shared_ptr &message) override;
+ virtual void onMessagesReceived (const std::shared_ptr &core,const std::shared_ptr &room,const std::list> &messages) override;
+ virtual void onNewMessageReaction(const std::shared_ptr & core, const std::shared_ptr & chatRoom, const std::shared_ptr & message, const std::shared_ptr & reaction) override;
+ virtual void onNotifyPresenceReceivedForUriOrTel (const std::shared_ptr &core,const std::shared_ptr &linphoneFriend,const std::string &uriOrTel,const std::shared_ptr &presenceModel) override;
+ virtual void onNotifyPresenceReceived (const std::shared_ptr &core,const std::shared_ptr &linphoneFriend) override;
+ virtual void onQrcodeFound(const std::shared_ptr & core, const std::string & result) override;
+ virtual void onReactionRemoved(const std::shared_ptr & core, const std::shared_ptr & chatRoom, const std::shared_ptr & message, const std::shared_ptr & address) override;
+ virtual void onTransferStateChanged (const std::shared_ptr &core,const std::shared_ptr &call,linphone::Call::State state) override;
+ virtual void onVersionUpdateCheckResultReceived (const std::shared_ptr & core,linphone::VersionUpdateCheckResult result,const std::string &version,const std::string &url) override;
+
+signals:
+ void accountRegistrationStateChanged(const std::shared_ptr & core,const std::shared_ptr & account,linphone::RegistrationState state,const std::string & message);
+ void authenticationRequested (const std::shared_ptr &core,const std::shared_ptr &authInfo,linphone::AuthMethod method);
+ void callEncryptionChanged (const std::shared_ptr &core,const std::shared_ptr &call,bool on,const std::string &authenticationToken);
+ void callLogUpdated(const std::shared_ptr & core, const std::shared_ptr & callLog);
+ void callStateChanged (const std::shared_ptr &core,const std::shared_ptr &call,linphone::Call::State state,const std::string &message);
+ void callStatsUpdated (const std::shared_ptr &core,const std::shared_ptr &call,const std::shared_ptr &stats);
+ void callCreated(const std::shared_ptr & lc,const std::shared_ptr & call);
+ void chatRoomRead(const std::shared_ptr & core, const std::shared_ptr & chatRoom);
+ void chatRoomStateChanged(const std::shared_ptr & core, const std::shared_ptr & chatRoom,linphone::ChatRoom::State state);
+ void conferenceInfoReceived(const std::shared_ptr & core, const std::shared_ptr & conferenceInfo);
+ void configuringStatus(const std::shared_ptr & core,linphone::Config::ConfiguringState status,const std::string & message);
+ void dtmfReceived(const std::shared_ptr & lc,const std::shared_ptr & call,int dtmf);
+ void ecCalibrationResult(const std::shared_ptr & core,linphone::EcCalibratorStatus status,int delayMs);
+ void globalStateChanged (const std::shared_ptr &core,linphone::GlobalState gstate,const std::string &message);
+ void isComposingReceived (const std::shared_ptr &core,const std::shared_ptr &room);
+ void logCollectionUploadStateChanged (const std::shared_ptr &core,linphone::Core::LogCollectionUploadState state,const std::string &info);
+ void logCollectionUploadProgressIndication (const std::shared_ptr &lc,size_t offset,size_t total);
+ void messageReceived (const std::shared_ptr &core,const std::shared_ptr &room,const std::shared_ptr &message);
+ void messagesReceived (const std::shared_ptr &core,const std::shared_ptr &room,const std::list> &messages);
+ void newMessageReaction(const std::shared_ptr & core, const std::shared_ptr & chatRoom, const std::shared_ptr & message, const std::shared_ptr & reaction);
+ void notifyPresenceReceivedForUriOrTel (const std::shared_ptr &core,const std::shared_ptr &linphoneFriend,const std::string &uriOrTel,const std::shared_ptr &presenceModel);
+ void notifyPresenceReceived (const std::shared_ptr &core,const std::shared_ptr &linphoneFriend);
+ void qrcodeFound(const std::shared_ptr & core, const std::string & result);
+ void reactionRemoved(const std::shared_ptr & core, const std::shared_ptr & chatRoom, const std::shared_ptr & message, const std::shared_ptr & address);
+ void transferStateChanged (const std::shared_ptr &core,const std::shared_ptr &call,linphone::Call::State state);
+ void versionUpdateCheckResultReceived (const std::shared_ptr & core,linphone::VersionUpdateCheckResult result,const std::string &version,const std::string &url);
+};
+
+#endif
diff --git a/Linphone/model/core/CoreModel.cpp b/Linphone/model/core/CoreModel.cpp
new file mode 100644
index 000000000..2262173a9
--- /dev/null
+++ b/Linphone/model/core/CoreModel.cpp
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2010-2020 Belledonne Communications SARL.
+ *
+ * This file is part of linphone-desktop
+ * (see https://www.linphone.org).
+ *
+ * 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 3 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, see .
+ */
+
+#include "CoreModel.hpp"
+
+#include
+#include
+#include
+#include
+#include
+
+// =============================================================================
+
+CoreModel::CoreModel (const QString &configPath, QObject *parent) :
+ QThread(parent) {
+ mConfigPath = configPath;
+}
+
+CoreModel::~CoreModel(){
+}
+
+void CoreModel::run() {
+ mCore = linphone::Factory::get()->createCore("","",nullptr);
+
+ mCore->start();
+ while(!mEnd){
+ mCore->iterate();
+ }
+ mCore->stop();
+ mCore = nullptr;
+}
+
+// -----------------------------------------------------------------------------
+
+std::shared_ptr CoreModel::getCore () {
+ return mCore;
+}
+
diff --git a/Linphone/model/core/CoreModel.hpp b/Linphone/model/core/CoreModel.hpp
new file mode 100644
index 000000000..691606798
--- /dev/null
+++ b/Linphone/model/core/CoreModel.hpp
@@ -0,0 +1,51 @@
+/*
+ * Copyright (c) 2010-2024 Belledonne Communications SARL.
+ *
+ * This file is part of linphone-desktop
+ * (see https://www.linphone.org).
+ *
+ * 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 3 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, see .
+ */
+
+#ifndef CORE_MODEL_H_
+#define CORE_MODEL_H_
+
+#include
+#include
+#include
+#include
+#include
+
+// =============================================================================
+
+
+class CoreModel : public QThread {
+ Q_OBJECT
+public:
+ CoreModel(const QString &configPath, QObject *parent);
+ ~CoreModel();
+
+ std::shared_ptr getCore ();
+
+ virtual void run();
+
+ static CoreModel *getInstance ();
+
+ bool mEnd = false;
+ QString mConfigPath;
+
+ std::shared_ptr mCore;
+};
+
+#endif
diff --git a/Linphone/view/CMakeLists.txt b/Linphone/view/CMakeLists.txt
new file mode 100644
index 000000000..7278dbc2c
--- /dev/null
+++ b/Linphone/view/CMakeLists.txt
@@ -0,0 +1,10 @@
+
+list(APPEND _LINPHONEAPP_QML_FILES
+ view/qml/App/Main.qml
+
+ view/qml/Item/Button.qml
+
+ view/qml/Page/Login.qml
+)
+
+set(_LINPHONEAPP_QML_FILES ${_LINPHONEAPP_QML_FILES} PARENT_SCOPE)
diff --git a/Linphone/view/qml/App/Main.qml b/Linphone/view/qml/App/Main.qml
new file mode 100644
index 000000000..240b38bad
--- /dev/null
+++ b/Linphone/view/qml/App/Main.qml
@@ -0,0 +1,21 @@
+import QtQuick 2.15
+import QtQuick.Layouts 1.0
+import Linphone
+//import UI 1.0
+
+Window {
+ width: 640
+ height: 480
+ visible: true
+ title: qsTr("Linphone")
+
+ ColumnLayout{
+ anchors.fill: parent
+
+ Login{
+ height: 100
+ width: 640
+ }
+ }
+}
+
\ No newline at end of file
diff --git a/Linphone/view/qml/Item/Button.qml b/Linphone/view/qml/Item/Button.qml
new file mode 100644
index 000000000..4d773b34d
--- /dev/null
+++ b/Linphone/view/qml/Item/Button.qml
@@ -0,0 +1,36 @@
+import QtQuick 2.7
+import QtQuick.Controls 2.2 as Control
+
+
+
+Control.Button {
+ id: mainItem
+ property int capitalization
+
+ background: Rectangle {
+ color: '#F50000'
+ radius: 10
+ border.color: 'white'
+ }
+
+ contentItem: Text {
+ color: 'white'
+ font {
+ bold: true
+ pointSize: 10
+ capitalization: mainItem.capitalization
+ }
+ wrapMode: Text.WordWrap
+ horizontalAlignment: Text.AlignHCenter
+ text: mainItem.text
+ verticalAlignment: Text.AlignVCenter
+ }
+
+ hoverEnabled: true
+
+ MouseArea {
+ id: mouseArea
+ anchors.fill: parent
+ onPressed: mouse.accepted = false
+ }
+}
\ No newline at end of file
diff --git a/Linphone/view/qml/Page/Login.qml b/Linphone/view/qml/Page/Login.qml
new file mode 100644
index 000000000..67338c655
--- /dev/null
+++ b/Linphone/view/qml/Page/Login.qml
@@ -0,0 +1,19 @@
+import QtQuick 2.15
+import QtQuick.Layouts 1.0
+import Linphone
+
+Item{
+ id: mainItem
+
+
+ RowLayout{
+ Button{
+ text: 'Sign In'
+ }
+ Button{
+ text: 'Sign Out'
+ }
+ }
+
+}
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 27090d5e1..9a7810409 100644
--- a/README.md
+++ b/README.md
@@ -1,92 +1,33 @@
-# linphone-desktop-6.0
+Qt6 application.
+
+(export PATH=$PATH:~/Qt/6.5.2/gcc_64/bin)
+
+mkdir build
+cd build
+cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_BUILD_PARALLEL_LEVEL=10
+cmake --build . --target install --parallel 10
+- Linphone : Application code.
+ - model : SDK management that is run on the SDK thread.
+ - view: GUI stuff that is run on UI thread.
+ - qml: all qml files
+ - Item: simple base items that overload existant simple object.
+ - Page: Use of Items for more complexe features.
+ - Tool: JS tools and codes.
+ - App: Application flow that manage Pages.
+
+ - core: Main code that link model and view in a MVVM pattern.
+ - data: all data that is not code
+ - conf: configuration files
+ - font: embedded fonts
+ - icon: generated icons
+ - image: all images of the application. The format should be in svg and in monocolor to allow realtime updates.
+ - lang: TS files used with Weblate.
-## Getting started
+- cmake : Build and Installation scripts.
-To make it easy for you to get started with GitLab, here's a list of recommended next steps.
+- external : external projects.
+ - linphone-sdk
-Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
-## Add your files
-
-- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
-- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
-
-```
-cd existing_repo
-git remote add origin https://gitlab.linphone.org/BC/private/linphone-desktop-6.0.git
-git branch -M main
-git push -uf origin main
-```
-
-## Integrate with your tools
-
-- [ ] [Set up project integrations](https://gitlab.linphone.org/BC/private/linphone-desktop-6.0/-/settings/integrations)
-
-## Collaborate with your team
-
-- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
-- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
-- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
-- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
-- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
-
-## Test and Deploy
-
-Use the built-in continuous integration in GitLab.
-
-- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
-- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
-- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
-- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
-- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
-
-***
-
-# Editing this README
-
-When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
-
-## Suggestions for a good README
-Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
-
-## Name
-Choose a self-explaining name for your project.
-
-## Description
-Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
-
-## Badges
-On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
-
-## Visuals
-Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
-
-## Installation
-Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
-
-## Usage
-Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
-
-## Support
-Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
-
-## Roadmap
-If you have ideas for releases in the future, it is a good idea to list them in the README.
-
-## Contributing
-State if you are open to contributions and what your requirements are for accepting them.
-
-For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
-
-You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
-
-## Authors and acknowledgment
-Show your appreciation to those who have contributed to the project.
-
-## License
-For open source projects, say how it is licensed.
-
-## Project status
-If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
diff --git a/cmake/Modules/FindBCToolbox.cmake b/cmake/Modules/FindBCToolbox.cmake
new file mode 100644
index 000000000..707cc1472
--- /dev/null
+++ b/cmake/Modules/FindBCToolbox.cmake
@@ -0,0 +1,60 @@
+############################################################################
+# FindBctoolbox.cmake
+# Copyright (C) 2023 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.
+#
+############################################################################
+
+# This module will set the following variables in your project:
+#
+# BCToolbox_FOUND - The bctoolbox library has been found
+# BCToolbox_TARGET - The name of the CMake target for the bctoolbox library
+# BCToolbox_CMAKE_DIR - The bctoolbox CMake directory
+# BCToolbox_CMAKE_UTILS - The path to the bctoolbox CMake utils script
+# BCToolbox_tester_FOUND - The bctoolbox-tester library has been found
+# BCToolbox_tester_TARGET - The name of the CMake target for the bctoolbox-tester library
+
+
+if(NOT TARGET bctoolbox)
+ set(EXPORT_PATH ${LINPHONE_OUTPUT_DIR})
+ include(GNUInstallDirs)
+ set(BCToolbox_CMAKE_DIR ${EXPORT_PATH}/${CMAKE_INSTALL_DATADIR}/bctoolbox/cmake)
+ include(${BCToolbox_CMAKE_DIR}/bctoolboxTargets.cmake)
+endif()
+
+set(_BCToolbox_REQUIRED_VARS BCToolbox_TARGET BCToolbox_CMAKE_DIR BCToolbox_CMAKE_UTILS)
+set(_BCToolbox_CACHE_VARS ${_BCToolbox_REQUIRED_VARS})
+
+if(TARGET bctoolbox)
+ set(BCToolbox_TARGET bctoolbox)
+ get_target_property(_BCToolbox_SOURCE_DIR ${BCToolbox_TARGET} SOURCE_DIR)
+ set(BCToolbox_CMAKE_DIR "${_BCToolbox_SOURCE_DIR}/../cmake")
+ set(BCToolbox_CMAKE_UTILS "${BCToolbox_CMAKE_DIR}/BCToolboxCMakeUtils.cmake")
+ if(TARGET bctoolbox-tester)
+ set(BCToolbox_tester_FOUND TRUE)
+ set(BCToolbox_tester_TARGET bctoolbox-tester)
+ list(APPEND _BCToolbox_CACHE_VARS BCToolbox_tester_TARGET)
+ endif()
+endif()
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(BCToolbox
+ REQUIRED_VARS ${_BCToolbox_REQUIRED_VARS}
+ HANDLE_COMPONENTS
+)
+mark_as_advanced(${_BCToolbox_CACHE_VARS})
diff --git a/cmake/Modules/FindBelcard.cmake b/cmake/Modules/FindBelcard.cmake
new file mode 100644
index 000000000..ce89497c3
--- /dev/null
+++ b/cmake/Modules/FindBelcard.cmake
@@ -0,0 +1,44 @@
+############################################################################
+# FindBelcard.cmake
+# Copyright (C) 2023 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.
+#
+############################################################################
+#
+# Belcard_FOUND - The liblinphone library has been found
+# Belcard_TARGET - The name of the CMake target
+
+if(NOT TARGET belcard)
+ set(EXPORT_PATH ${LINPHONE_OUTPUT_DIR})
+ include(GNUInstallDirs)
+ include(${EXPORT_PATH}/${CMAKE_INSTALL_DATADIR}/Belcard/cmake/BelcardTargets.cmake)
+endif()
+
+set(_Belcard_REQUIRED_VARS Belcard_TARGET)
+set(_Belcard_CACHE_VARS ${_Belcard_REQUIRED_VARS})
+
+if(TARGET belcard)
+ set(Belcard_TARGET belcard)
+endif()
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(Belcard
+ REQUIRED_VARS ${_Belcard_REQUIRED_VARS}
+ HANDLE_COMPONENTS
+)
+mark_as_advanced(${_Belcard_CACHE_VARS})
diff --git a/cmake/Modules/FindLibLinphone.cmake b/cmake/Modules/FindLibLinphone.cmake
new file mode 100644
index 000000000..826bb0d81
--- /dev/null
+++ b/cmake/Modules/FindLibLinphone.cmake
@@ -0,0 +1,46 @@
+############################################################################
+# FindLinphone.cmake
+# Copyright (C) 2023 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.
+#
+############################################################################
+#
+# LibLinphone_FOUND - The liblinphone library has been found
+# LibLinphone_TARGET - The name of the CMake target for the liblinphone library
+# LibLinphone_PLUGINS_DIR - The directory where to install liblinphone plugins
+
+if(NOT TARGET liblinphone)
+ set(EXPORT_PATH ${LINPHONE_OUTPUT_DIR})
+ include(GNUInstallDirs)
+ include(${EXPORT_PATH}/${CMAKE_INSTALL_DATADIR}/linphone/cmake/linphoneTargets.cmake)
+endif()
+
+set(_LibLinphone_REQUIRED_VARS LibLinphone_TARGET LibLinphone_PLUGINS_DIR)
+set(_LibLinphone_CACHE_VARS ${_LibLinphone_REQUIRED_VARS})
+
+if(TARGET liblinphone)
+ set(LibLinphone_TARGET liblinphone)
+ get_target_property(LibLinphone_PLUGINS_DIR ${LibLinphone_TARGET} LIBLINPHONE_PLUGINS_DIR)
+endif()
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(LibLinphone
+ REQUIRED_VARS ${_LibLinphone_REQUIRED_VARS}
+ HANDLE_COMPONENTS
+)
+mark_as_advanced(${_LibLinphone_CACHE_VARS})
diff --git a/cmake/Modules/FindLinphoneCxx.cmake b/cmake/Modules/FindLinphoneCxx.cmake
new file mode 100644
index 000000000..0f81fe208
--- /dev/null
+++ b/cmake/Modules/FindLinphoneCxx.cmake
@@ -0,0 +1,45 @@
+############################################################################
+# FindLinphoneCxx.cmake
+# Copyright (C) 2023 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.
+#
+############################################################################
+#
+# LinphoneCxx_FOUND - The liblinphone library has been found
+# LinphoneCxx_TARGET - The name of the CMake target for the liblinphone library
+
+if(NOT TARGET liblinphone++)
+ set(EXPORT_PATH ${LINPHONE_OUTPUT_DIR})
+ include(GNUInstallDirs)
+ include(${EXPORT_PATH}/${CMAKE_INSTALL_DATADIR}/LinphoneCxx/cmake/LinphoneCxxTargets.cmake)
+endif()
+
+set(_LinphoneCxx_REQUIRED_VARS LinphoneCxx_TARGET)
+set(_LinphoneCxx_CACHE_VARS ${_LinphoneCxx_REQUIRED_VARS})
+
+if(TARGET liblinphone++)
+ set(LinphoneCxx_TARGET liblinphone++)
+endif()
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(LinphoneCxx
+ REQUIRED_VARS ${_LinphoneCxx_REQUIRED_VARS}
+ HANDLE_COMPONENTS
+)
+mark_as_advanced(${_LinphoneCxx_CACHE_VARS})
+
diff --git a/cmake/Modules/FindMediastreamer2.cmake b/cmake/Modules/FindMediastreamer2.cmake
new file mode 100644
index 000000000..dc41f187e
--- /dev/null
+++ b/cmake/Modules/FindMediastreamer2.cmake
@@ -0,0 +1,49 @@
+############################################################################
+# FindMediastreamer2.cmake
+# Copyright (C) 2023 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.
+#
+############################################################################
+#
+# This module will set the following variables in your project:
+#
+# Mediastreamer2_FOUND - The mediastreamer2 library has been found
+# Mediastreamer2_TARGET - The name of the CMake target for the mediastreamer2 library
+# Mediastreamer2_PLUGINS_DIR - The directory where to install mediastreamer2 plugins
+
+if(NOT TARGET mediastreamer2)
+ set(EXPORT_PATH ${LINPHONE_OUTPUT_DIR})
+ include(GNUInstallDirs)
+ include(${EXPORT_PATH}/${CMAKE_INSTALL_DATADIR}/Mediastreamer2/cmake/Mediastreamer2Targets.cmake)
+endif()
+
+set(_Mediastreamer2_REQUIRED_VARS Mediastreamer2_TARGET Mediastreamer2_PLUGINS_DIR)
+set(_Mediastreamer2_CACHE_VARS ${_Mediastreamer2_REQUIRED_VARS})
+
+if(TARGET mediastreamer2)
+ set(Mediastreamer2_TARGET mediastreamer2)
+ get_target_property(Mediastreamer2_PLUGINS_DIR ${Mediastreamer2_TARGET} MS2_PLUGINS_DIR)
+endif()
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(Mediastreamer2
+ REQUIRED_VARS ${_Mediastreamer2_REQUIRED_VARS}
+ HANDLE_COMPONENTS
+)
+mark_as_advanced(${_Mediastreamer2_CACHE_VARS})
+
diff --git a/cmake/Modules/FindOpenLDAP.cmake b/cmake/Modules/FindOpenLDAP.cmake
new file mode 100644
index 000000000..5444cedfa
--- /dev/null
+++ b/cmake/Modules/FindOpenLDAP.cmake
@@ -0,0 +1,127 @@
+############################################################################
+# Copyright (c) 2021-2023 Belledonne Communications SARL.
+#
+# This file is part of liblinphone.
+#
+# 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 3 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, see .
+#
+############################################################################
+#
+# This module will set the following variables in your project:
+#
+# OpenLDAP_FOUND - The ldap library has been found
+# OpenLDAP_TARGETS - The list of the names of the CMake targets for the openldap libraries
+# OpenLDAP_TARGET - The name of the CMake target for the ldap library
+# OpenLDAP_lber_TARGET - The name of the CMake target for the lber library
+
+
+include(FindPackageHandleStandardArgs)
+
+set(_OpenLDAP_REQUIRED_VARS OpenLDAP_TARGETS OpenLDAP_TARGET)
+set(_OpenLDAP_CACHE_VARS ${_OpenLDAP_REQUIRED_VARS})
+
+if(TARGET ldap)
+
+ set(OpenLDAP_TARGET ldap)
+ set(OpenLDAP_TARGETS ldap)
+ if(TARGET lber)
+ set(OpenLDAP_lber_TARGET lber)
+ list(APPEND OpenLDAP_TARGETS lber)
+ list(APPEND _OpenLDAP_CACHE_VARS OpenLDAP_lber_TARGET)
+ endif()
+
+else()
+
+ # Note : There are double find* because of priority given to the HINTS first. The second call will keep the result if there is one.
+
+ find_path(_OpenLDAP_INCLUDE_DIRS
+ NAMES ldap.h
+ HINTS "${CMAKE_INSTALL_PREFIX}"
+ PATH_SUFFIXES include/openldap
+ NO_DEFAULT_PATH
+ )
+ find_path(_OpenLDAP_INCLUDE_DIRS
+ NAMES ldap.h
+ HINTS "${CMAKE_INSTALL_PREFIX}"
+ PATH_SUFFIXES include/openldap
+ )
+
+ find_library(_OpenLDAP_LIBRARY
+ NAMES ldap libldap
+ HINTS "${CMAKE_INSTALL_PREFIX}"
+ PATH_SUFFIXES lib
+ NO_DEFAULT_PATH
+ )
+ find_library(_OpenLDAP_LIBRARY
+ NAMES ldap libldap
+ HINTS "${CMAKE_INSTALL_PREFIX}"
+ PATH_SUFFIXES lib
+ )
+
+ find_library(_OpenLDAP_lber_LIBRARY
+ NAMES lber liblber
+ HINTS "${CMAKE_INSTALL_PREFIX}"
+ PATH_SUFFIXES lib
+ NO_DEFAULT_PATH
+ )
+ find_library(_OpenLDAP_lber_LIBRARY
+ NAMES lber liblber
+ HINTS "${CMAKE_INSTALL_PREFIX}"
+ PATH_SUFFIXES lib
+ )
+
+ if(_OpenLDAP_INCLUDE_DIRS AND _OpenLDAP_LIBRARY)
+ add_library(ldap UNKNOWN IMPORTED)
+ if(WIN32)
+ set_target_properties(ldap PROPERTIES
+ INTERFACE_INCLUDE_DIRECTORIES "${_OpenLDAP_INCLUDE_DIRS}"
+ IMPORTED_IMPLIB "${_OpenLDAP_LIBRARY}"
+ )
+ else()
+ set_target_properties(ldap PROPERTIES
+ INTERFACE_INCLUDE_DIRECTORIES "${_OpenLDAP_INCLUDE_DIRS}"
+ IMPORTED_LOCATION "${_OpenLDAP_LIBRARY}"
+ )
+ endif()
+ set(OpenLDAP_TARGET ldap)
+ set(OpenLDAP_TARGETS ldap)
+
+ if(_OpenLDAP_lber_LIBRARY)
+ add_library(lber UNKNOWN IMPORTED)
+ if(WIN32)
+ set_target_properties(lber PROPERTIES
+ INTERFACE_INCLUDE_DIRECTORIES "${_OpenLDAP_INCLUDE_DIRS}"
+ IMPORTED_IMPLIB "${_OpenLDAP_lber_LIBRARY}"
+ )
+ else()
+ set_target_properties(lber PROPERTIES
+ INTERFACE_INCLUDE_DIRECTORIES "${_OpenLDAP_INCLUDE_DIRS}"
+ IMPORTED_LOCATION "${_OpenLDAP_lber_LIBRARY}"
+ )
+ endif()
+ set(OpenLDAP_lber_TARGET lber)
+ set(OpenLDAP_lber_FOUND TRUE)
+ list(APPEND OpenLDAP_TARGETS lber)
+ list(APPEND _OpenLDAP_CACHE_VARS OpenLDAP_lber_TARGET)
+ endif()
+ endif()
+
+endif()
+
+find_package_handle_standard_args(OpenLDAP
+ REQUIRED_VARS ${_OpenLDAP_REQUIRED_VARS}
+ HANDLE_COMPONENTS
+)
+mark_as_advanced(${_OpenLDAP_CACHE_VARS})
+
diff --git a/cmake/Modules/FindQtKeychain.cmake b/cmake/Modules/FindQtKeychain.cmake
new file mode 100644
index 000000000..9b7911aab
--- /dev/null
+++ b/cmake/Modules/FindQtKeychain.cmake
@@ -0,0 +1,48 @@
+############################################################################
+# FindQtKeychain.cmake
+# Copyright (C) 2023 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.
+#
+############################################################################
+#
+# - Find the linphonecxx include files and library
+#
+# QtKeychain_FOUND - system has lib linphonecxx
+# QtKeychain_INCLUDE_DIRS - the linphonecxx include directory
+# QtKeychain_LIBRARIES - The library needed to use linphonecxx
+if(NOT TARGET ${QTKEYCHAIN_TARGET_NAME})
+ set(EXPORT_PATH ${QTKEYCHAIN_OUTPUT_DIR})
+ include(GNUInstallDirs)
+ include(${EXPORT_PATH}/${CMAKE_INSTALL_LIBDIR}/cmake/${QTKEYCHAIN_TARGET_NAME}/${QTKEYCHAIN_TARGET_NAME}Config.cmake)
+endif()
+
+set(_QtKeychain_REQUIRED_VARS QtKeychain_TARGET)
+set(_QtKeychain_CACHE_VARS ${_QtKeychain_REQUIRED_VARS})
+
+if(TARGET ${QTKEYCHAIN_TARGET_NAME})
+ set(QtKeychain_TARGET ${QTKEYCHAIN_TARGET_NAME})
+ set(QtKeychain_USE_BUILD_INTERFACE TRUE)
+endif()
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(QtKeychain
+ REQUIRED_VARS ${_QtKeychain_REQUIRED_VARS}
+ HANDLE_COMPONENTS
+)
+mark_as_advanced(${_QtKeychain_CACHE_VARS})
+
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt
new file mode 100644
index 000000000..c4522642e
--- /dev/null
+++ b/external/CMakeLists.txt
@@ -0,0 +1,23 @@
+
+
+
+if( APPLE )
+ set(LINPHONESDK_BUILD_TYPE "Macos")
+ set(ENABLE_FAT_BINARY "ON")
+ if( NOT CMAKE_OSX_DEPLOYMENT_TARGET)
+ set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum OS X deployment version")
+ endif()
+ if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm64")# TODO: add universal build
+ set(LINPHONESDK_MACOS_ARCHS "x86_64" CACHE STRING "MacOS architectures to build for: comma-separated list of values in [x86_64]")
+ else()
+ set(LINPHONESDK_MACOS_ARCHS "x86_64" CACHE STRING "MacOS architectures to build for: comma-separated list of values in [x86_64]")
+ endif()
+ set(CMAKE_OSX_ARCHITECTURES ${LINPHONESDK_MACOS_ARCHS} CACHE STRING "")
+ set(CMAKE_SYSTEM_PROCESSOR "x86_64")
+elseif(WIN32)
+ set(LINPHONESDK_BUILD_TYPE "Default")
+endif()
+
+
+
+add_subdirectory(linphone-sdk/)
diff --git a/external/linphone-sdk b/external/linphone-sdk
new file mode 160000
index 000000000..0eb3d223a
--- /dev/null
+++ b/external/linphone-sdk
@@ -0,0 +1 @@
+Subproject commit 0eb3d223aaee01b28d3f3d8c7dee4d0395782836
diff --git a/readme_screen.png b/readme_screen.png
new file mode 100644
index 000000000..fe7c81859
Binary files /dev/null and b/readme_screen.png differ