2018-11-04 16:19:17 +01:00
|
|
|
################################################################################
|
|
|
|
# VOIP.pro #
|
|
|
|
# Copyright (C) 2018, Retroshare team <retroshare.team@gmailcom> #
|
|
|
|
# #
|
|
|
|
# This program is free software: you can redistribute it and/or modify #
|
|
|
|
# it under the terms of the GNU Affero 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 Lesser General Public License for more details. #
|
|
|
|
# #
|
|
|
|
# You should have received a copy of the GNU Lesser General Public License #
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>. #
|
|
|
|
################################################################################
|
|
|
|
|
2012-02-15 21:17:18 +00:00
|
|
|
!include("../Common/retroshare_plugin.pri"): error("Could not include file ../Common/retroshare_plugin.pri")
|
|
|
|
|
2013-10-20 00:56:34 +00:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
|
|
|
# Qt 5
|
|
|
|
QT += widgets
|
|
|
|
}
|
|
|
|
|
2013-03-04 12:34:45 +00:00
|
|
|
exists($$[QMAKE_MKSPECS]/features/mobility.prf) {
|
|
|
|
CONFIG += mobility
|
|
|
|
} else {
|
|
|
|
QT += multimedia
|
|
|
|
}
|
2018-12-18 23:14:14 +01:00
|
|
|
|
2012-02-15 21:17:18 +00:00
|
|
|
CONFIG += qt uic qrc resources
|
|
|
|
MOBILITY = multimedia
|
2018-12-18 23:14:14 +01:00
|
|
|
TARGET = VOIP
|
|
|
|
TARGET_PRL = VOIP
|
|
|
|
DESTDIR = lib
|
2012-02-15 21:17:18 +00:00
|
|
|
|
2018-12-21 15:50:45 +01:00
|
|
|
target.files = lib/libVOIP.so
|
|
|
|
|
2016-09-05 14:03:39 +02:00
|
|
|
DEPENDPATH += $$PWD/../../retroshare-gui/src/temp/ui
|
|
|
|
INCLUDEPATH += $$PWD/../../retroshare-gui/src/temp/ui
|
2012-02-25 12:18:40 +00:00
|
|
|
|
2018-05-03 15:55:21 +02:00
|
|
|
# when rapidjson is mainstream on all distribs, we will not need the sources anymore
|
|
|
|
# in the meantime, they are part of the RS directory so that it is always possible to find them
|
|
|
|
|
|
|
|
INCLUDEPATH += ../../rapidjson-1.1.0
|
|
|
|
|
|
|
|
|
2015-12-24 18:54:45 +01:00
|
|
|
#################################### Linux #####################################
|
2012-02-28 21:59:01 +00:00
|
|
|
|
2014-07-15 21:12:10 +00:00
|
|
|
linux-* {
|
2015-09-04 15:46:00 +02:00
|
|
|
CONFIG += link_pkgconfig
|
|
|
|
|
|
|
|
PKGCONFIG += libavcodec libavutil
|
2015-09-05 23:48:24 +02:00
|
|
|
PKGCONFIG += speex speexdsp
|
|
|
|
} else {
|
|
|
|
LIBS += -lspeex -lspeexdsp -lavcodec -lavutil
|
2022-02-15 15:32:49 +01:00
|
|
|
|
|
|
|
win32:isEmpty(QMAKE_SH) {
|
|
|
|
# MinGW
|
|
|
|
LIBS += -lbcrypt
|
|
|
|
}
|
2014-07-15 21:12:10 +00:00
|
|
|
}
|
|
|
|
|
2015-12-24 18:54:45 +01:00
|
|
|
#################################### Windows #####################################
|
|
|
|
|
2012-02-28 21:59:01 +00:00
|
|
|
win32 {
|
2015-09-03 16:33:50 +02:00
|
|
|
|
2015-10-03 22:08:24 -04:00
|
|
|
DEPENDPATH += . $$INC_DIR
|
|
|
|
INCLUDEPATH += . $$INC_DIR
|
2020-11-24 17:34:10 +01:00
|
|
|
}
|
2020-11-22 21:58:56 +01:00
|
|
|
|
2015-12-24 18:54:45 +01:00
|
|
|
#################################### MacOSX #####################################
|
|
|
|
|
|
|
|
macx {
|
|
|
|
|
|
|
|
DEPENDPATH += . $$INC_DIR
|
|
|
|
INCLUDEPATH += . $$INC_DIR
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-09-03 19:14:30 +02:00
|
|
|
# ffmpeg (and libavutil: https://github.com/ffms/ffms2/issues/11)
|
|
|
|
QMAKE_CXXFLAGS += -D__STDC_CONSTANT_MACROS
|
|
|
|
|
2015-05-11 19:40:07 +00:00
|
|
|
SOURCES = VOIPPlugin.cpp \
|
2021-05-12 21:44:25 +02:00
|
|
|
gui/VOIPConfigPanel.cpp \
|
2015-05-11 19:40:07 +00:00
|
|
|
services/p3VOIP.cc \
|
|
|
|
services/rsVOIPItems.cc \
|
|
|
|
gui/AudioStats.cpp \
|
|
|
|
gui/AudioWizard.cpp \
|
|
|
|
gui/SpeexProcessor.cpp \
|
|
|
|
gui/audiodevicehelper.cpp \
|
|
|
|
gui/VideoProcessor.cpp \
|
|
|
|
gui/QVideoDevice.cpp \
|
2014-07-13 13:57:25 +00:00
|
|
|
gui/VOIPChatWidgetHolder.cpp \
|
2015-05-11 19:40:07 +00:00
|
|
|
gui/VOIPGUIHandler.cpp \
|
2015-05-26 15:19:57 +00:00
|
|
|
gui/VOIPNotify.cpp \
|
|
|
|
gui/VOIPToasterItem.cpp \
|
|
|
|
gui/VOIPToasterNotify.cpp
|
2012-02-19 15:07:47 +00:00
|
|
|
|
2015-05-11 19:40:07 +00:00
|
|
|
HEADERS = VOIPPlugin.h \
|
2021-05-12 21:44:25 +02:00
|
|
|
gui/VOIPConfigPanel.h \
|
2015-05-11 19:40:07 +00:00
|
|
|
services/p3VOIP.h \
|
|
|
|
services/rsVOIPItems.h \
|
|
|
|
gui/AudioStats.h \
|
|
|
|
gui/AudioWizard.h \
|
|
|
|
gui/SpeexProcessor.h \
|
|
|
|
gui/audiodevicehelper.h \
|
|
|
|
gui/VideoProcessor.h \
|
|
|
|
gui/QVideoDevice.h \
|
|
|
|
gui/VOIPChatWidgetHolder.h \
|
|
|
|
gui/VOIPGUIHandler.h \
|
|
|
|
gui/VOIPNotify.h \
|
2015-05-26 15:19:57 +00:00
|
|
|
gui/VOIPToasterItem.h \
|
|
|
|
gui/VOIPToasterNotify.h \
|
2015-05-11 19:40:07 +00:00
|
|
|
interface/rsVOIP.h
|
2012-02-19 15:07:47 +00:00
|
|
|
|
2021-05-12 21:44:25 +02:00
|
|
|
FORMS = \
|
2015-05-11 19:40:07 +00:00
|
|
|
gui/AudioStats.ui \
|
2015-05-26 15:19:57 +00:00
|
|
|
gui/AudioWizard.ui \
|
2021-05-12 21:44:25 +02:00
|
|
|
gui/VOIPConfigPanel.ui \
|
2015-05-26 15:19:57 +00:00
|
|
|
gui/VOIPToasterItem.ui
|
2012-02-15 21:17:18 +00:00
|
|
|
|
|
|
|
TARGET = VOIP
|
|
|
|
|
2015-06-28 10:11:47 +00:00
|
|
|
RESOURCES = gui/VOIP_images.qrc lang/VOIP_lang.qrc qss/VOIP_qss.qrc
|
2012-09-24 23:41:32 +00:00
|
|
|
|
2012-09-30 00:49:39 +00:00
|
|
|
TRANSLATIONS += \
|
2013-12-13 15:08:36 +00:00
|
|
|
lang/VOIP_ca_ES.ts \
|
2012-11-21 22:10:39 +00:00
|
|
|
lang/VOIP_cs.ts \
|
|
|
|
lang/VOIP_da.ts \
|
2012-09-24 23:41:32 +00:00
|
|
|
lang/VOIP_de.ts \
|
2013-06-04 23:39:07 +00:00
|
|
|
lang/VOIP_el.ts \
|
2012-11-21 22:10:39 +00:00
|
|
|
lang/VOIP_en.ts \
|
2012-09-30 00:49:39 +00:00
|
|
|
lang/VOIP_es.ts \
|
2012-11-21 22:10:39 +00:00
|
|
|
lang/VOIP_fi.ts \
|
|
|
|
lang/VOIP_fr.ts \
|
|
|
|
lang/VOIP_hu.ts \
|
2012-12-06 14:31:40 +00:00
|
|
|
lang/VOIP_it.ts \
|
2012-11-21 22:10:39 +00:00
|
|
|
lang/VOIP_ja_JP.ts \
|
|
|
|
lang/VOIP_ko.ts \
|
2013-06-04 23:39:07 +00:00
|
|
|
lang/VOIP_nl.ts \
|
2012-11-21 22:10:39 +00:00
|
|
|
lang/VOIP_pl.ts \
|
|
|
|
lang/VOIP_ru.ts \
|
|
|
|
lang/VOIP_sv.ts \
|
2012-09-30 00:49:39 +00:00
|
|
|
lang/VOIP_tr.ts \
|
2012-11-21 22:10:39 +00:00
|
|
|
lang/VOIP_zh_CN.ts
|