2014-07-07 00:38:05 +08:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2014-06-22T14:07:35
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
2014-07-07 00:19:45 +08:00
|
|
|
# This file is part of qTox, a Qt-based graphical interface for Tox.
|
|
|
|
#
|
|
|
|
# This program is libre 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 COPYING file for more details.
|
|
|
|
|
|
|
|
|
2016-08-04 15:30:11 +08:00
|
|
|
QT += core gui network xml opengl sql svg widgets
|
2014-07-07 00:38:05 +08:00
|
|
|
|
2014-07-16 00:04:26 +08:00
|
|
|
TARGET = qtox
|
2014-07-07 00:38:05 +08:00
|
|
|
TEMPLATE = app
|
2014-08-11 16:00:08 +08:00
|
|
|
FORMS += \
|
2015-06-20 18:59:46 +08:00
|
|
|
src/loginscreen.ui \
|
2014-10-08 12:26:25 +08:00
|
|
|
src/mainwindow.ui \
|
2015-06-20 18:59:46 +08:00
|
|
|
src/chatlog/content/filetransferwidget.ui \
|
2015-03-11 23:15:53 +08:00
|
|
|
src/widget/form/profileform.ui \
|
2014-10-19 01:38:47 +08:00
|
|
|
src/widget/form/loadhistorydialog.ui \
|
2014-11-13 00:30:55 +08:00
|
|
|
src/widget/form/setpassworddialog.ui \
|
2015-06-20 18:59:46 +08:00
|
|
|
src/widget/form/settings/generalsettings.ui \
|
2016-07-02 07:28:08 +08:00
|
|
|
src/widget/form/settings/userinterfacesettings.ui \
|
2015-08-22 17:05:16 +08:00
|
|
|
src/widget/form/settings/privacysettings.ui \
|
2016-07-02 07:28:08 +08:00
|
|
|
src/widget/form/settings/avform.ui \
|
|
|
|
src/widget/form/settings/advancedsettings.ui \
|
|
|
|
src/widget/form/settings/aboutsettings.ui \
|
2015-11-10 04:55:31 +08:00
|
|
|
src/widget/form/removefrienddialog.ui \
|
|
|
|
src/widget/about/aboutuser.ui
|
2015-06-20 18:59:46 +08:00
|
|
|
|
2014-07-07 00:38:05 +08:00
|
|
|
CONFIG += c++11
|
2016-10-05 20:29:41 +08:00
|
|
|
CONFIG += warn_on exceptions_off rtti_off
|
2016-03-06 03:07:42 +08:00
|
|
|
CONFIG += link_pkgconfig
|
2016-10-05 20:29:41 +08:00
|
|
|
# undocumented, but just works™
|
|
|
|
CONFIG += silent
|
2014-07-07 00:38:05 +08:00
|
|
|
|
2016-12-18 04:06:44 +08:00
|
|
|
|
|
|
|
# Hardening flags (ASLR, warnings, etc)
|
|
|
|
# TODO: add `-Werror` to hardening flags once all warnings are fixed
|
2017-01-31 14:40:11 +08:00
|
|
|
QMAKE_CXXFLAGS += -fPIE \
|
|
|
|
-Wstrict-overflow \
|
|
|
|
-Wstrict-aliasing
|
|
|
|
QMAKE_LFLAGS += -pie
|
|
|
|
|
|
|
|
!win32 {
|
2017-01-03 00:32:34 +08:00
|
|
|
QMAKE_CXXFLAGS += -fstack-protector-all \
|
2017-01-31 14:40:11 +08:00
|
|
|
-Wstack-protector
|
2017-01-03 00:32:34 +08:00
|
|
|
}
|
|
|
|
|
2016-12-20 13:27:27 +08:00
|
|
|
# osx & windows cannot into security (build on it fails with those enabled)
|
|
|
|
unix:!macx {
|
2016-12-18 04:06:44 +08:00
|
|
|
QMAKE_LFLAGS += -Wl,-z,now -Wl,-z,relro
|
|
|
|
}
|
|
|
|
|
2016-10-05 20:29:41 +08:00
|
|
|
# needed, since `rtti_off` doesn't work
|
|
|
|
QMAKE_CXXFLAGS += -fno-rtti
|
2016-06-19 18:50:24 +08:00
|
|
|
QMAKE_RESOURCE_FLAGS += -compress 9 -threshold 0
|
2015-05-15 03:52:13 +08:00
|
|
|
|
2014-11-07 21:08:02 +08:00
|
|
|
# Rules for creating/updating {ts|qm}-files
|
|
|
|
include(translations/i18n.pri)
|
2014-11-08 20:27:30 +08:00
|
|
|
# Build all the qm files now, to make RCC happy
|
|
|
|
system($$fromfile(translations/i18n.pri, updateallqm))
|
2014-07-07 00:38:05 +08:00
|
|
|
|
2015-12-11 01:46:07 +08:00
|
|
|
isEmpty(GIT_VERSION) {
|
|
|
|
GIT_VERSION = $$system(git rev-parse HEAD 2> /dev/null || echo "built without git")
|
|
|
|
}
|
2014-11-01 14:17:50 +08:00
|
|
|
DEFINES += GIT_VERSION=\"\\\"$$quote($$GIT_VERSION)\\\"\"
|
2015-12-11 01:46:07 +08:00
|
|
|
isEmpty(GIT_DESCRIBE) {
|
|
|
|
GIT_DESCRIBE = $$system(git describe --tags 2> /dev/null || echo "Nightly")
|
|
|
|
}
|
|
|
|
DEFINES += GIT_DESCRIBE=\"\\\"$$quote($$GIT_DESCRIBE)\\\"\"
|
2014-11-15 01:12:00 +08:00
|
|
|
# date works on linux/mac, but it would hangs qmake on windows
|
|
|
|
# This hack returns 0 on batch (windows), but executes "date +%s" or return 0 if it fails on bash (linux/mac)
|
|
|
|
TIMESTAMP = $$system($1 2>null||echo 0||a;rm null;date +%s||echo 0) # I'm so sorry
|
2014-11-13 20:59:04 +08:00
|
|
|
DEFINES += TIMESTAMP=$$TIMESTAMP
|
2014-11-01 13:27:10 +08:00
|
|
|
DEFINES += LOG_TO_FILE
|
2015-05-10 22:08:09 +08:00
|
|
|
DEFINES += QT_MESSAGELOGCONTEXT
|
2014-12-03 05:03:29 +08:00
|
|
|
|
|
|
|
contains(DISABLE_PLATFORM_EXT, YES) {
|
|
|
|
|
|
|
|
} else {
|
|
|
|
DEFINES += QTOX_PLATFORM_EXT
|
|
|
|
}
|
2014-10-18 15:47:42 +08:00
|
|
|
|
2014-09-02 02:33:04 +08:00
|
|
|
contains(JENKINS,YES) {
|
2015-06-18 03:45:03 +08:00
|
|
|
INCLUDEPATH += ./libs/include/
|
2017-01-15 18:09:47 +08:00
|
|
|
TOX_CMAKE = YES
|
2014-09-02 02:33:04 +08:00
|
|
|
} else {
|
2015-06-18 03:45:03 +08:00
|
|
|
INCLUDEPATH += libs/include
|
2014-09-02 02:33:04 +08:00
|
|
|
}
|
2014-08-31 17:39:29 +08:00
|
|
|
|
2015-02-23 08:00:25 +08:00
|
|
|
contains(DEFINES, QTOX_PLATFORM_EXT) {
|
|
|
|
HEADERS += src/platform/timer.h
|
|
|
|
SOURCES += src/platform/timer_osx.cpp \
|
|
|
|
src/platform/timer_win.cpp \
|
|
|
|
src/platform/timer_x11.cpp
|
|
|
|
|
|
|
|
HEADERS += src/platform/autorun.h
|
|
|
|
SOURCES += src/platform/autorun_win.cpp \
|
|
|
|
src/platform/autorun_xdg.cpp \
|
|
|
|
src/platform/autorun_osx.cpp
|
2016-05-10 16:27:37 +08:00
|
|
|
|
|
|
|
HEADERS += src/platform/capslock.h
|
|
|
|
SOURCES += src/platform/capslock_win.cpp \
|
2016-05-12 04:41:45 +08:00
|
|
|
src/platform/capslock_x11.cpp \
|
|
|
|
src/platform/capslock_osx.cpp
|
2015-02-23 08:00:25 +08:00
|
|
|
}
|
|
|
|
|
2014-08-31 17:39:29 +08:00
|
|
|
# Rules for Windows, Mac OSX, and Linux
|
2014-07-07 00:38:05 +08:00
|
|
|
win32 {
|
2016-12-18 04:09:20 +08:00
|
|
|
# windows-specific hardening (ASLR, DEP protection)
|
2017-01-11 18:44:14 +08:00
|
|
|
QMAKE_LFLAGS += -Wl,--dynamicbase -Wl,--nxcompat
|
2016-12-18 04:09:20 +08:00
|
|
|
|
2014-10-26 23:35:42 +08:00
|
|
|
RC_FILE = windows/qtox.rc
|
2016-12-29 03:05:23 +08:00
|
|
|
LIBS += -L$$PWD/libs/lib \
|
|
|
|
-ltoxav \
|
|
|
|
-ltoxcore \
|
2017-01-18 00:30:30 +08:00
|
|
|
-ltoxencryptsave
|
|
|
|
|
|
|
|
# must be exactly here, to preserve link order
|
|
|
|
contains(TOX_CMAKE, YES) {
|
|
|
|
LIBS += -ltoxgroup \
|
|
|
|
-ltoxmessenger \
|
|
|
|
-ltoxfriends \
|
|
|
|
-ltoxnetcrypto \
|
|
|
|
-ltoxdht \
|
|
|
|
-ltoxnetwork \
|
|
|
|
-ltoxcrypto
|
|
|
|
}
|
|
|
|
|
|
|
|
LIBS += -lsodium \
|
2016-12-29 03:05:23 +08:00
|
|
|
-lvpx \
|
|
|
|
-lpthread \
|
|
|
|
-lavdevice \
|
|
|
|
-lavformat \
|
|
|
|
-lavcodec \
|
|
|
|
-lavutil \
|
|
|
|
-lswscale \
|
|
|
|
-lOpenAL32 \
|
|
|
|
-lopus \
|
|
|
|
-lqrencode \
|
|
|
|
-lsqlcipher \
|
|
|
|
-lcrypto \
|
|
|
|
-lopengl32 \
|
|
|
|
-lole32 \
|
|
|
|
-loleaut32 \
|
|
|
|
-lvfw32 \
|
|
|
|
-lws2_32 \
|
|
|
|
-liphlpapi \
|
|
|
|
-lgdi32 \
|
|
|
|
-lshlwapi \
|
|
|
|
-luuid
|
2015-05-16 05:01:38 +08:00
|
|
|
LIBS += -lstrmiids # For DirectShow
|
2014-07-07 00:38:05 +08:00
|
|
|
} else {
|
2014-09-08 06:41:21 +08:00
|
|
|
macx {
|
2015-09-19 15:55:28 +08:00
|
|
|
BUNDLEID = chat.tox.qtox
|
2014-10-22 22:05:04 +08:00
|
|
|
ICON = img/icons/qtox.icns
|
2014-11-15 09:30:47 +08:00
|
|
|
QMAKE_INFO_PLIST = osx/info.plist
|
2015-02-24 09:39:32 +08:00
|
|
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
|
2016-12-29 03:05:23 +08:00
|
|
|
LIBS += -L$$PWD/libs/lib/ \
|
|
|
|
-ltoxcore \
|
|
|
|
-ltoxav \
|
|
|
|
-ltoxencryptsave \
|
|
|
|
-lsodium \
|
|
|
|
-lvpx \
|
|
|
|
-lopus \
|
|
|
|
-framework OpenAL \
|
|
|
|
-lavformat \
|
|
|
|
-lavdevice \
|
|
|
|
-lavcodec \
|
|
|
|
-lavutil \
|
|
|
|
-lswscale \
|
|
|
|
-mmacosx-version-min=10.7 \
|
|
|
|
-framework AVFoundation \
|
|
|
|
-framework Foundation \
|
|
|
|
-framework CoreMedia \
|
|
|
|
-framework ApplicationServices \
|
|
|
|
-lqrencode \
|
|
|
|
-lsqlcipher
|
|
|
|
contains(DEFINES, QTOX_PLATFORM_EXT) {
|
|
|
|
LIBS += -framework IOKit \
|
|
|
|
-framework CoreFoundation
|
|
|
|
}
|
|
|
|
|
|
|
|
# Files to be includes into the qTox.app/Contents/Resources folder
|
|
|
|
# OSX-Migrater.sh part of migrateProfiles() compatabilty code
|
|
|
|
APP_RESOURCE.files = img/icons/qtox_profile.icns \
|
|
|
|
OSX-Migrater.sh
|
2016-01-19 03:36:35 +08:00
|
|
|
APP_RESOURCE.path = Contents/Resources
|
|
|
|
QMAKE_BUNDLE_DATA += APP_RESOURCE
|
|
|
|
#Dynamic versioning for Info.plist
|
|
|
|
INFO_PLIST_PATH = $$shell_quote($${OUT_PWD}/$${TARGET}.app/Contents/Info.plist)
|
|
|
|
QMAKE_POST_LINK += /usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString $${GIT_DESCRIBE}\" $${INFO_PLIST_PATH}
|
2014-08-31 17:39:29 +08:00
|
|
|
} else {
|
2016-05-12 05:17:36 +08:00
|
|
|
isEmpty(PREFIX) {
|
|
|
|
PREFIX = /usr
|
|
|
|
}
|
|
|
|
|
|
|
|
BINDIR = $$PREFIX/bin
|
|
|
|
DATADIR = $$PREFIX/share
|
|
|
|
target.path = $$BINDIR
|
|
|
|
desktop.path = $$DATADIR/applications
|
|
|
|
desktop.files += qTox.desktop
|
2016-11-15 20:19:31 +08:00
|
|
|
appdata.path = $$DATADIR/appdata
|
|
|
|
appdata.files += res/qTox.appdata.xml
|
|
|
|
INSTALLS += target desktop appdata
|
2016-05-12 05:17:36 +08:00
|
|
|
|
|
|
|
# Install application icons according to the XDG spec
|
|
|
|
ICON_SIZES = 14 16 22 24 32 36 48 64 72 96 128 192 256 512
|
|
|
|
for(icon_size, ICON_SIZES) {
|
|
|
|
icon_$${icon_size}.files = img/icons/$${icon_size}x$${icon_size}/qtox.png
|
|
|
|
icon_$${icon_size}.path = $$DATADIR/icons/hicolor/$${icon_size}x$${icon_size}/apps
|
|
|
|
INSTALLS += icon_$${icon_size}
|
|
|
|
}
|
|
|
|
icon_scalable.files = img/icons/qtox.svg
|
|
|
|
icon_scalable.path = $$DATADIR/icons/hicolor/scalable/apps
|
|
|
|
INSTALLS += icon_scalable
|
|
|
|
|
2016-12-29 03:05:23 +08:00
|
|
|
# If we're building a package, static link libtox[core,av] and
|
|
|
|
# libsodium, since they are not provided by any package
|
2016-05-12 05:17:36 +08:00
|
|
|
contains(STATICPKG, YES) {
|
2016-12-29 03:05:23 +08:00
|
|
|
LIBS += -L$$PWD/libs/lib/ \
|
|
|
|
-lopus \
|
|
|
|
-lvpx \
|
|
|
|
-lopenal \
|
|
|
|
-Wl,-Bstatic \
|
|
|
|
-ltoxcore \
|
|
|
|
-ltoxav \
|
|
|
|
-ltoxencryptsave \
|
|
|
|
-lsodium \
|
|
|
|
-lavformat \
|
|
|
|
-lavdevice \
|
|
|
|
-lavcodec \
|
|
|
|
-lavutil \
|
|
|
|
-lswscale \
|
|
|
|
-lz \
|
|
|
|
-ljpeg \
|
|
|
|
-ltiff \
|
|
|
|
-lpng \
|
|
|
|
-ljasper \
|
|
|
|
-lIlmImf \
|
|
|
|
-lIlmThread \
|
|
|
|
-lIex \
|
|
|
|
-ldc1394 \
|
|
|
|
-lraw1394 \
|
|
|
|
-lHalf \
|
|
|
|
-llzma \
|
|
|
|
-ljbig \
|
|
|
|
-Wl,-Bdynamic \
|
|
|
|
-lv4l1 \
|
|
|
|
-lv4l2 \
|
|
|
|
-lavformat \
|
|
|
|
-lavcodec \
|
|
|
|
-lavutil \
|
|
|
|
-lswscale \
|
|
|
|
-lusb-1.0 \
|
|
|
|
-lqrencode \
|
|
|
|
-lsqlcipher
|
2014-09-08 06:41:21 +08:00
|
|
|
} else {
|
2016-12-29 03:05:23 +08:00
|
|
|
LIBS += -L$$PWD/libs/lib/ \
|
|
|
|
-ltoxcore \
|
|
|
|
-ltoxav \
|
|
|
|
-ltoxencryptsave \
|
|
|
|
-lvpx \
|
|
|
|
-lsodium \
|
|
|
|
-lopenal \
|
|
|
|
-lavformat \
|
|
|
|
-lavdevice \
|
|
|
|
-lavcodec \
|
|
|
|
-lavutil \
|
|
|
|
-lswscale \
|
|
|
|
-lqrencode \
|
|
|
|
-lsqlcipher
|
2016-05-12 05:17:36 +08:00
|
|
|
}
|
2016-03-08 11:44:10 +08:00
|
|
|
|
2016-05-12 05:17:36 +08:00
|
|
|
contains(DEFINES, QTOX_PLATFORM_EXT) {
|
2016-12-29 03:05:23 +08:00
|
|
|
LIBS += -lX11 \
|
|
|
|
-lXss
|
2016-05-12 05:17:36 +08:00
|
|
|
}
|
2016-04-05 22:54:06 +08:00
|
|
|
|
2016-05-12 05:17:36 +08:00
|
|
|
contains(JENKINS, YES) {
|
2016-12-29 03:05:23 +08:00
|
|
|
LIBS = ./libs/lib/libtoxav.a \
|
|
|
|
./libs/lib/libvpx.a \
|
|
|
|
./libs/lib/libopus.a \
|
|
|
|
./libs/lib/libtoxencryptsave.a \
|
|
|
|
./libs/lib/libtoxcore.a \
|
2017-01-03 00:32:34 +08:00
|
|
|
./libs/lib/libtoxgroup.a \
|
|
|
|
./libs/lib/libtoxmessenger.a \
|
|
|
|
./libs/lib/libtoxfriends.a \
|
|
|
|
./libs/lib/libtoxnetcrypto.a \
|
|
|
|
./libs/lib/libtoxdht.a \
|
|
|
|
./libs/lib/libtoxnetwork.a \
|
|
|
|
./libs/lib/libtoxcrypto.a \
|
2016-12-29 03:05:23 +08:00
|
|
|
./libs/lib/libopenal.a \
|
|
|
|
./libs/lib/libsodium.a \
|
|
|
|
./libs/lib/libavdevice.a \
|
|
|
|
./libs/lib/libavformat.a \
|
|
|
|
./libs/lib/libavcodec.a \
|
|
|
|
./libs/lib/libavutil.a \
|
|
|
|
./libs/lib/libswscale.a \
|
|
|
|
./libs/lib/libqrencode.a \
|
|
|
|
-ldl \
|
|
|
|
-lX11 \
|
|
|
|
-lXss
|
2016-05-12 05:17:36 +08:00
|
|
|
contains(ENABLE_SYSTRAY_UNITY_BACKEND, YES) {
|
2016-12-29 03:05:23 +08:00
|
|
|
LIBS += -lgobject-2.0 \
|
|
|
|
-lappindicator \
|
|
|
|
-lgtk-x11-2.0
|
2015-02-06 08:27:07 +08:00
|
|
|
}
|
2016-05-12 05:17:36 +08:00
|
|
|
LIBS += -s
|
2014-09-08 06:41:21 +08:00
|
|
|
}
|
2014-09-02 02:33:04 +08:00
|
|
|
}
|
2014-07-07 00:38:05 +08:00
|
|
|
}
|
|
|
|
|
2016-05-12 05:17:36 +08:00
|
|
|
unix:!macx {
|
2016-03-06 03:07:42 +08:00
|
|
|
# The systray Unity backend implements the system tray icon on Unity (Ubuntu) and GNOME desktops.
|
|
|
|
contains(ENABLE_SYSTRAY_UNITY_BACKEND, YES) {
|
|
|
|
DEFINES += ENABLE_SYSTRAY_UNITY_BACKEND
|
2015-02-24 03:18:03 +08:00
|
|
|
|
2016-03-06 03:07:42 +08:00
|
|
|
PKGCONFIG += glib-2.0 gtk+-2.0 atk
|
|
|
|
PKGCONFIG += cairo gdk-pixbuf-2.0 pango
|
|
|
|
PKGCONFIG += appindicator-0.1 dbusmenu-glib-0.4
|
2015-06-18 03:45:03 +08:00
|
|
|
}
|
|
|
|
|
2016-03-06 03:07:42 +08:00
|
|
|
# The systray Status Notifier backend implements the system tray icon on KDE and compatible desktops
|
|
|
|
!contains(ENABLE_SYSTRAY_STATUSNOTIFIER_BACKEND, NO) {
|
|
|
|
DEFINES += ENABLE_SYSTRAY_STATUSNOTIFIER_BACKEND
|
2015-06-18 03:45:03 +08:00
|
|
|
|
2016-03-06 03:07:42 +08:00
|
|
|
PKGCONFIG += glib-2.0 gtk+-2.0 atk
|
|
|
|
PKGCONFIG += cairo gdk-pixbuf-2.0 pango
|
2015-02-23 07:01:57 +08:00
|
|
|
|
2016-03-06 03:07:42 +08:00
|
|
|
SOURCES += src/platform/statusnotifier/closures.c \
|
|
|
|
src/platform/statusnotifier/enums.c \
|
|
|
|
src/platform/statusnotifier/statusnotifier.c
|
2015-02-23 07:01:57 +08:00
|
|
|
|
2016-03-06 03:07:42 +08:00
|
|
|
HEADERS += src/platform/statusnotifier/closures.h \
|
|
|
|
src/platform/statusnotifier/enums.h \
|
|
|
|
src/platform/statusnotifier/interfaces.h \
|
|
|
|
src/platform/statusnotifier/statusnotifier.h
|
2015-06-18 03:45:03 +08:00
|
|
|
}
|
|
|
|
|
2016-03-06 03:07:42 +08:00
|
|
|
# The systray GTK backend implements a system tray icon compatible with many systems
|
|
|
|
!contains(ENABLE_SYSTRAY_GTK_BACKEND, NO) {
|
|
|
|
DEFINES += ENABLE_SYSTRAY_GTK_BACKEND
|
2015-06-18 03:45:03 +08:00
|
|
|
|
2016-03-06 03:07:42 +08:00
|
|
|
PKGCONFIG += glib-2.0 gtk+-2.0 atk
|
|
|
|
PKGCONFIG += gdk-pixbuf-2.0 cairo pango
|
|
|
|
}
|
2016-07-05 10:37:26 +08:00
|
|
|
|
|
|
|
# ffmpeg
|
|
|
|
PKGCONFIG += libavformat libavdevice libavcodec
|
|
|
|
PKGCONFIG += libavutil libswscale
|
2015-02-25 06:27:08 +08:00
|
|
|
}
|
|
|
|
|
2015-05-16 05:01:38 +08:00
|
|
|
win32 {
|
|
|
|
HEADERS += \
|
|
|
|
src/platform/camera/directshow.h
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
src/platform/camera/directshow.cpp
|
|
|
|
}
|
|
|
|
|
2015-06-05 03:18:31 +08:00
|
|
|
unix:!macx {
|
2015-06-01 23:11:54 +08:00
|
|
|
HEADERS += \
|
|
|
|
src/platform/camera/v4l2.h
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
src/platform/camera/v4l2.cpp
|
|
|
|
}
|
|
|
|
|
2015-06-05 18:44:22 +08:00
|
|
|
macx {
|
|
|
|
SOURCES += \
|
|
|
|
src/platform/install_osx.cpp
|
|
|
|
|
|
|
|
HEADERS += \
|
2015-12-21 03:17:14 +08:00
|
|
|
src/platform/install_osx.h \
|
|
|
|
src/platform/camera/avfoundation.h
|
|
|
|
|
|
|
|
OBJECTIVE_SOURCES += \
|
|
|
|
src/platform/camera/avfoundation.mm
|
2015-06-05 18:44:22 +08:00
|
|
|
}
|
|
|
|
|
2016-07-30 01:57:42 +08:00
|
|
|
macx {
|
|
|
|
INCLUDEPATH += /usr/local/include
|
|
|
|
LIBPATH += /usr/local/lib
|
|
|
|
}
|
|
|
|
|
2017-01-06 03:06:58 +08:00
|
|
|
freebsd {
|
2016-12-26 07:58:35 +08:00
|
|
|
target.path = $$PREFIX/bin
|
|
|
|
|
|
|
|
desktop.files = qTox.desktop
|
|
|
|
desktop.path = $$PREFIX/share/applications
|
|
|
|
|
|
|
|
icon.files = img/qtox.png
|
|
|
|
icon.path = $$PREFIX/share/pixmaps
|
|
|
|
|
|
|
|
INSTALLS = target desktop icon
|
|
|
|
}
|
|
|
|
|
2017-01-05 04:07:34 +08:00
|
|
|
RESOURCES += res.qrc \
|
|
|
|
translations/translations.qrc
|
2016-09-23 06:10:55 +08:00
|
|
|
|
2017-01-07 05:45:40 +08:00
|
|
|
!contains(SMILEYS, DISABLED) {
|
2016-09-23 06:10:55 +08:00
|
|
|
RESOURCES += smileys/emojione.qrc
|
|
|
|
!contains(SMILEYS, MIN) {
|
|
|
|
RESOURCES += smileys/smileys.qrc
|
|
|
|
}
|
|
|
|
}
|
2014-12-17 21:44:23 +08:00
|
|
|
|
2016-05-12 05:17:36 +08:00
|
|
|
HEADERS += \
|
2015-06-06 07:44:47 +08:00
|
|
|
src/audio/audio.h \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/chatlog/chatline.h \
|
|
|
|
src/chatlog/chatlinecontent.h \
|
|
|
|
src/chatlog/chatlinecontentproxy.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/chatlog/chatlog.h \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/chatlog/chatmessage.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/chatlog/content/filetransferwidget.h \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/chatlog/content/image.h \
|
|
|
|
src/chatlog/content/notificationicon.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/chatlog/content/spinner.h \
|
|
|
|
src/chatlog/content/text.h \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/chatlog/content/timestamp.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/chatlog/customtextdocument.h \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/chatlog/documentcache.h \
|
|
|
|
src/chatlog/pixmapcache.h \
|
2017-02-06 23:20:45 +08:00
|
|
|
src/chatlog/textformatter.h \
|
2015-04-24 08:32:09 +08:00
|
|
|
src/core/core.h \
|
|
|
|
src/core/coreav.h \
|
|
|
|
src/core/corefile.h \
|
|
|
|
src/core/corestructs.h \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/core/indexedlist.h \
|
2016-08-07 10:56:10 +08:00
|
|
|
src/core/recursivesignalblocker.h \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/core/toxcall.h \
|
2017-01-09 02:48:36 +08:00
|
|
|
src/core/toxencrypt.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/core/toxid.h \
|
2016-12-30 00:09:20 +08:00
|
|
|
src/core/toxpk.h \
|
2017-03-06 04:25:25 +08:00
|
|
|
src/core/toxstring.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/friend.h \
|
|
|
|
src/friendlist.h \
|
|
|
|
src/group.h \
|
2017-03-01 03:48:40 +08:00
|
|
|
src/groupinvite.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/grouplist.h \
|
|
|
|
src/ipc.h \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/net/autoupdate.h \
|
|
|
|
src/net/avatarbroadcaster.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/net/toxme.h \
|
|
|
|
src/net/toxuri.h \
|
|
|
|
src/nexus.h \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/persistence/db/rawdatabase.h \
|
|
|
|
src/persistence/history.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/persistence/offlinemsgengine.h \
|
|
|
|
src/persistence/profile.h \
|
|
|
|
src/persistence/profilelocker.h \
|
|
|
|
src/persistence/serialize.h \
|
2015-06-06 07:44:47 +08:00
|
|
|
src/persistence/settings.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/persistence/settingsserializer.h \
|
|
|
|
src/persistence/smileypack.h \
|
|
|
|
src/persistence/toxsave.h \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/video/cameradevice.h \
|
|
|
|
src/video/camerasource.h \
|
|
|
|
src/video/corevideosource.h \
|
|
|
|
src/video/genericnetcamview.h \
|
|
|
|
src/video/groupnetcamview.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/video/netcamview.h \
|
|
|
|
src/video/videoframe.h \
|
|
|
|
src/video/videomode.h \
|
|
|
|
src/video/videosource.h \
|
|
|
|
src/video/videosurface.h \
|
|
|
|
src/widget/about/aboutuser.h \
|
|
|
|
src/widget/categorywidget.h \
|
|
|
|
src/widget/circlewidget.h \
|
|
|
|
src/widget/contentdialog.h \
|
|
|
|
src/widget/contentlayout.h \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/widget/emoticonswidget.h \
|
|
|
|
src/widget/form/addfriendform.h \
|
|
|
|
src/widget/form/chatform.h \
|
|
|
|
src/widget/form/filesform.h \
|
|
|
|
src/widget/form/genericchatform.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/form/groupchatform.h \
|
|
|
|
src/widget/form/groupinviteform.h \
|
2017-03-01 03:48:40 +08:00
|
|
|
src/widget/form/groupinvitewidget.h \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/widget/form/loadhistorydialog.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/form/profileform.h \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/widget/form/setpassworddialog.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/form/settings/aboutform.h \
|
|
|
|
src/widget/form/settings/advancedform.h \
|
|
|
|
src/widget/form/settings/avform.h \
|
|
|
|
src/widget/form/settings/generalform.h \
|
|
|
|
src/widget/form/settings/genericsettings.h \
|
|
|
|
src/widget/form/settings/privacyform.h \
|
|
|
|
src/widget/form/settings/userinterfaceform.h \
|
2015-05-18 02:17:14 +08:00
|
|
|
src/widget/form/settings/verticalonlyscroller.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/form/settingswidget.h \
|
|
|
|
src/widget/form/tabcompleter.h \
|
2015-06-02 02:39:40 +08:00
|
|
|
src/widget/friendlistlayout.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/friendlistwidget.h \
|
|
|
|
src/widget/friendwidget.h \
|
2015-06-18 03:45:03 +08:00
|
|
|
src/widget/genericchatitemlayout.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/genericchatitemwidget.h \
|
|
|
|
src/widget/genericchatroomwidget.h \
|
|
|
|
src/widget/groupwidget.h \
|
|
|
|
src/widget/gui.h \
|
|
|
|
src/widget/loginscreen.h \
|
|
|
|
src/widget/maskablepixmapwidget.h \
|
|
|
|
src/widget/notificationedgewidget.h \
|
|
|
|
src/widget/notificationscrollarea.h \
|
|
|
|
src/widget/passwordedit.h \
|
|
|
|
src/widget/qrwidget.h \
|
2017-02-26 06:06:07 +08:00
|
|
|
src/widget/splitterrestorer.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/style.h \
|
|
|
|
src/widget/systemtrayicon.h \
|
|
|
|
src/widget/systemtrayicon_private.h \
|
2015-07-30 07:46:19 +08:00
|
|
|
src/widget/tool/activatedialog.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/tool/adjustingscrollarea.h \
|
|
|
|
src/widget/tool/callconfirmwidget.h \
|
|
|
|
src/widget/tool/chattextedit.h \
|
|
|
|
src/widget/tool/croppinglabel.h \
|
|
|
|
src/widget/tool/flyoutoverlaywidget.h \
|
|
|
|
src/widget/tool/friendrequestdialog.h \
|
2015-10-18 16:15:02 +08:00
|
|
|
src/widget/tool/micfeedbackwidget.h \
|
2015-08-19 01:40:11 +08:00
|
|
|
src/widget/tool/movablewidget.h \
|
2016-05-15 20:17:40 +08:00
|
|
|
src/widget/tool/profileimporter.h \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/tool/removefrienddialog.h \
|
|
|
|
src/widget/tool/screengrabberchooserrectitem.h \
|
|
|
|
src/widget/tool/screengrabberoverlayitem.h \
|
|
|
|
src/widget/tool/screenshotgrabber.h \
|
|
|
|
src/widget/tool/toolboxgraphicsitem.h \
|
|
|
|
src/widget/translator.h \
|
|
|
|
src/widget/widget.h
|
2016-05-12 05:17:36 +08:00
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
src/audio/audio.cpp \
|
|
|
|
src/chatlog/chatline.cpp \
|
|
|
|
src/chatlog/chatlinecontent.cpp \
|
|
|
|
src/chatlog/chatlinecontentproxy.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/chatlog/chatlog.cpp \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/chatlog/chatmessage.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/chatlog/content/filetransferwidget.cpp \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/chatlog/content/image.cpp \
|
|
|
|
src/chatlog/content/notificationicon.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/chatlog/content/spinner.cpp \
|
|
|
|
src/chatlog/content/text.cpp \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/chatlog/content/timestamp.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/chatlog/customtextdocument.cpp\
|
2016-05-12 05:17:36 +08:00
|
|
|
src/chatlog/documentcache.cpp \
|
|
|
|
src/chatlog/pixmapcache.cpp \
|
2017-02-06 23:20:45 +08:00
|
|
|
src/chatlog/textformatter.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/core/core.cpp \
|
|
|
|
src/core/coreav.cpp \
|
|
|
|
src/core/corefile.cpp \
|
|
|
|
src/core/corestructs.cpp \
|
|
|
|
src/core/recursivesignalblocker.cpp \
|
|
|
|
src/core/toxcall.cpp \
|
2017-01-09 02:48:36 +08:00
|
|
|
src/core/toxencrypt.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/core/toxid.cpp \
|
2016-12-30 00:09:20 +08:00
|
|
|
src/core/toxpk.cpp \
|
2017-03-06 04:25:25 +08:00
|
|
|
src/core/toxstring.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/friend.cpp \
|
|
|
|
src/friendlist.cpp \
|
|
|
|
src/group.cpp \
|
2017-03-01 03:48:40 +08:00
|
|
|
src/groupinvite.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/grouplist.cpp \
|
|
|
|
src/ipc.cpp \
|
|
|
|
src/main.cpp \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/net/autoupdate.cpp \
|
|
|
|
src/net/avatarbroadcaster.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/net/toxme.cpp \
|
|
|
|
src/net/toxuri.cpp \
|
|
|
|
src/nexus.cpp \
|
|
|
|
src/persistence/db/rawdatabase.cpp \
|
|
|
|
src/persistence/history.cpp \
|
|
|
|
src/persistence/offlinemsgengine.cpp \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/persistence/profile.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/persistence/profilelocker.cpp \
|
|
|
|
src/persistence/serialize.cpp \
|
|
|
|
src/persistence/settings.cpp \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/persistence/settingsserializer.cpp \
|
|
|
|
src/persistence/smileypack.cpp \
|
|
|
|
src/persistence/toxsave.cpp \
|
|
|
|
src/video/cameradevice.cpp \
|
|
|
|
src/video/camerasource.cpp \
|
|
|
|
src/video/corevideosource.cpp \
|
|
|
|
src/video/genericnetcamview.cpp \
|
|
|
|
src/video/groupnetcamview.cpp \
|
|
|
|
src/video/netcamview.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/video/videoframe.cpp \
|
2016-07-02 07:28:08 +08:00
|
|
|
src/video/videomode.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/video/videosource.cpp \
|
|
|
|
src/video/videosurface.cpp \
|
|
|
|
src/widget/about/aboutuser.cpp \
|
|
|
|
src/widget/categorywidget.cpp \
|
|
|
|
src/widget/circlewidget.cpp \
|
|
|
|
src/widget/contentdialog.cpp \
|
|
|
|
src/widget/contentlayout.cpp \
|
|
|
|
src/widget/emoticonswidget.cpp \
|
|
|
|
src/widget/flowlayout.cpp \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/widget/form/addfriendform.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/form/chatform.cpp \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/widget/form/filesform.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/form/genericchatform.cpp \
|
|
|
|
src/widget/form/groupchatform.cpp \
|
|
|
|
src/widget/form/groupinviteform.cpp \
|
2017-03-01 03:48:40 +08:00
|
|
|
src/widget/form/groupinvitewidget.cpp \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/widget/form/loadhistorydialog.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/form/profileform.cpp \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/widget/form/setpassworddialog.cpp \
|
|
|
|
src/widget/form/settings/aboutform.cpp \
|
|
|
|
src/widget/form/settings/advancedform.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/form/settings/avform.cpp \
|
|
|
|
src/widget/form/settings/generalform.cpp \
|
|
|
|
src/widget/form/settings/genericsettings.cpp \
|
|
|
|
src/widget/form/settings/privacyform.cpp \
|
|
|
|
src/widget/form/settings/userinterfaceform.cpp \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/widget/form/settings/verticalonlyscroller.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/form/settingswidget.cpp \
|
|
|
|
src/widget/form/tabcompleter.cpp \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/widget/friendlistlayout.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/friendlistwidget.cpp \
|
|
|
|
src/widget/friendwidget.cpp \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/widget/genericchatitemlayout.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/genericchatitemwidget.cpp \
|
|
|
|
src/widget/genericchatroomwidget.cpp \
|
|
|
|
src/widget/groupwidget.cpp \
|
|
|
|
src/widget/gui.cpp \
|
|
|
|
src/widget/loginscreen.cpp \
|
|
|
|
src/widget/maskablepixmapwidget.cpp \
|
|
|
|
src/widget/notificationedgewidget.cpp \
|
|
|
|
src/widget/notificationscrollarea.cpp \
|
|
|
|
src/widget/passwordedit.cpp \
|
|
|
|
src/widget/qrwidget.cpp \
|
2017-02-26 06:06:07 +08:00
|
|
|
src/widget/splitterrestorer.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/style.cpp \
|
|
|
|
src/widget/systemtrayicon.cpp \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/widget/tool/activatedialog.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/tool/adjustingscrollarea.cpp \
|
|
|
|
src/widget/tool/callconfirmwidget.cpp \
|
|
|
|
src/widget/tool/chattextedit.cpp \
|
|
|
|
src/widget/tool/croppinglabel.cpp \
|
|
|
|
src/widget/tool/flyoutoverlaywidget.cpp \
|
|
|
|
src/widget/tool/friendrequestdialog.cpp \
|
2016-05-12 05:17:36 +08:00
|
|
|
src/widget/tool/micfeedbackwidget.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/tool/movablewidget.cpp \
|
2016-05-15 20:17:40 +08:00
|
|
|
src/widget/tool/profileimporter.cpp \
|
2016-12-19 09:04:29 +08:00
|
|
|
src/widget/tool/removefrienddialog.cpp \
|
|
|
|
src/widget/tool/screengrabberchooserrectitem.cpp \
|
|
|
|
src/widget/tool/screengrabberoverlayitem.cpp \
|
|
|
|
src/widget/tool/screenshotgrabber.cpp \
|
|
|
|
src/widget/tool/toolboxgraphicsitem.cpp \
|
|
|
|
src/widget/translator.cpp \
|
|
|
|
src/widget/widget.cpp
|