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
|
|
|
|
|
|
|
# Copyright (C) 2014 by Project Tox <https://tox.im>
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
2014-10-11 17:26:47 +08:00
|
|
|
QT += core gui network xml opengl sql
|
2014-07-07 00:38:05 +08:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
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 += \
|
2014-10-08 12:26:25 +08:00
|
|
|
src/mainwindow.ui \
|
|
|
|
src/widget/form/settings/generalsettings.ui \
|
|
|
|
src/widget/form/settings/avsettings.ui \
|
2014-10-12 18:24:05 +08:00
|
|
|
src/widget/form/settings/identitysettings.ui \
|
|
|
|
src/widget/form/settings/privacysettings.ui \
|
2014-10-19 01:38:47 +08:00
|
|
|
src/widget/form/loadhistorydialog.ui \
|
|
|
|
src/widget/form/inputpassworddialog.ui \
|
2014-11-13 00:30:55 +08:00
|
|
|
src/widget/form/setpassworddialog.ui \
|
|
|
|
src/widget/form/settings/advancedsettings.ui
|
2014-10-12 18:24:05 +08:00
|
|
|
|
2014-07-07 00:38:05 +08:00
|
|
|
CONFIG += c++11
|
|
|
|
|
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
|
|
|
|
|
|
|
RESOURCES += res.qrc
|
|
|
|
|
2014-11-01 13:27:10 +08:00
|
|
|
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)\\\"\"
|
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
|
2014-10-18 15:47:42 +08:00
|
|
|
|
2014-09-02 02:33:04 +08:00
|
|
|
contains(JENKINS,YES) {
|
|
|
|
INCLUDEPATH += ./libs/include/
|
|
|
|
} else {
|
|
|
|
INCLUDEPATH += libs/include
|
|
|
|
}
|
2014-08-31 17:39:29 +08:00
|
|
|
|
|
|
|
# Rules for Windows, Mac OSX, and Linux
|
2014-07-07 00:38:05 +08:00
|
|
|
win32 {
|
2014-10-26 23:35:42 +08:00
|
|
|
RC_FILE = windows/qtox.rc
|
2014-11-10 06:24:23 +08:00
|
|
|
LIBS += -liphlpapi -L$$PWD/libs/lib -lsodium -ltoxav -ltoxcore -ltoxencryptsave -ltoxdns -lvpx -lpthread
|
2014-10-01 07:39:53 +08:00
|
|
|
LIBS += -L$$PWD/libs/lib -lopencv_core248 -lopencv_highgui248 -lopencv_imgproc248 -lOpenAL32 -lopus
|
|
|
|
LIBS += -lz -lopengl32 -lole32 -loleaut32 -luuid -lvfw32 -ljpeg -ltiff -lpng -ljasper -lIlmImf -lHalf -lws2_32
|
2014-07-07 00:38:05 +08:00
|
|
|
} else {
|
2014-09-08 06:41:21 +08:00
|
|
|
macx {
|
2014-11-06 14:57:46 +08:00
|
|
|
BUNDLEID = im.tox.qtox
|
2014-10-22 22:05:04 +08:00
|
|
|
ICON = img/icons/qtox.icns
|
2014-11-06 14:57:46 +08:00
|
|
|
QMAKE_INFO_PLIST = res/info.plist
|
2014-11-06 06:27:51 +08:00
|
|
|
LIBS += -L$$PWD/libs/lib/ -ltoxcore -ltoxav -ltoxencryptsave -ltoxdns -lsodium -lvpx -framework OpenAL -lopencv_core -lopencv_highgui
|
2014-08-31 17:39:29 +08:00
|
|
|
} else {
|
2014-09-08 06:41:21 +08:00
|
|
|
# If we're building a package, static link libtox[core,av] and libsodium, since they are not provided by any package
|
|
|
|
contains(STATICPKG, YES) {
|
|
|
|
target.path = /usr/bin
|
|
|
|
INSTALLS += target
|
2014-11-06 06:27:51 +08:00
|
|
|
LIBS += -L$$PWD/libs/lib/ -lopus -lvpx -lopenal -Wl,-Bstatic -ltoxcore -ltoxav -ltoxencryptsave -ltoxdns -lsodium -lopencv_highgui -lopencv_imgproc -lopencv_core -lz -Wl,-Bdynamic
|
2014-10-08 06:41:56 +08:00
|
|
|
LIBS += -Wl,-Bstatic -ljpeg -ltiff -lpng -ljasper -lIlmImf -lIlmThread -lIex -ldc1394 -lraw1394 -lHalf -lz -llzma -ljbig
|
2014-10-19 04:25:14 +08:00
|
|
|
LIBS += -Wl,-Bdynamic -lv4l1 -lv4l2 -lavformat -lavcodec -lavutil -lswscale -lusb-1.0
|
2014-10-08 06:41:56 +08:00
|
|
|
|
2014-09-08 06:41:21 +08:00
|
|
|
} else {
|
2014-11-09 22:51:00 +08:00
|
|
|
LIBS += -L$$PWD/libs/lib/ -ltoxcore -ltoxav -ltoxencryptsave -ltoxdns -lvpx -lsodium -lopenal -lopencv_core -lopencv_highgui -lopencv_imgproc
|
2014-09-08 06:41:21 +08:00
|
|
|
}
|
2014-09-02 02:33:04 +08:00
|
|
|
|
2014-09-08 06:41:21 +08:00
|
|
|
contains(JENKINS, YES) {
|
2014-11-06 13:44:34 +08:00
|
|
|
LIBS = ./libs/lib/libtoxav.a ./libs/lib/libvpx.a ./libs/lib/libopus.a ./libs/lib/libtoxdns.a ./libs/lib/libtoxencryptsave.a ./libs/lib/libtoxcore.a ./libs/lib/libsodium.a /usr/lib/libopencv_core.so /usr/lib/libopencv_highgui.so /usr/lib/libopencv_imgproc.so -lopenal -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
|
|
|
}
|
|
|
|
|
2014-10-08 12:26:25 +08:00
|
|
|
HEADERS += src/widget/form/addfriendform.h \
|
|
|
|
src/widget/form/chatform.h \
|
|
|
|
src/widget/form/groupchatform.h \
|
|
|
|
src/widget/form/settingswidget.h \
|
|
|
|
src/widget/form/settings/genericsettings.h \
|
|
|
|
src/widget/form/settings/generalform.h \
|
|
|
|
src/widget/form/settings/identityform.h \
|
|
|
|
src/widget/form/settings/privacyform.h \
|
|
|
|
src/widget/form/settings/avform.h \
|
|
|
|
src/widget/form/filesform.h \
|
|
|
|
src/widget/tool/chattextedit.h \
|
|
|
|
src/widget/tool/friendrequestdialog.h \
|
|
|
|
src/widget/friendwidget.h \
|
|
|
|
src/widget/groupwidget.h \
|
|
|
|
src/widget/widget.h \
|
|
|
|
src/friend.h \
|
|
|
|
src/group.h \
|
|
|
|
src/grouplist.h \
|
|
|
|
src/misc/settings.h \
|
|
|
|
src/core.h \
|
|
|
|
src/friendlist.h \
|
|
|
|
src/misc/cdata.h \
|
|
|
|
src/misc/cstring.h \
|
2014-10-24 04:07:44 +08:00
|
|
|
src/video/camera.h \
|
2014-10-08 12:26:25 +08:00
|
|
|
src/widget/netcamview.h \
|
|
|
|
src/misc/smileypack.h \
|
|
|
|
src/widget/emoticonswidget.h \
|
|
|
|
src/misc/style.h \
|
|
|
|
src/widget/adjustingscrollarea.h \
|
|
|
|
src/widget/croppinglabel.h \
|
|
|
|
src/widget/friendlistwidget.h \
|
|
|
|
src/widget/genericchatroomwidget.h \
|
|
|
|
src/widget/form/genericchatform.h \
|
|
|
|
src/widget/tool/chatactions/chataction.h \
|
|
|
|
src/widget/chatareawidget.h \
|
|
|
|
src/filetransferinstance.h \
|
|
|
|
src/corestructs.h \
|
|
|
|
src/coredefines.h \
|
|
|
|
src/coreav.h \
|
|
|
|
src/widget/tool/chatactions/messageaction.h \
|
|
|
|
src/widget/tool/chatactions/filetransferaction.h \
|
|
|
|
src/widget/tool/chatactions/systemmessageaction.h \
|
|
|
|
src/widget/tool/chatactions/actionaction.h \
|
2014-10-20 19:05:45 +08:00
|
|
|
src/widget/tool/chatactions/alertaction.h \
|
2014-10-11 06:21:54 +08:00
|
|
|
src/widget/maskablepixmapwidget.h \
|
2014-10-24 04:07:44 +08:00
|
|
|
src/video/videosource.h \
|
|
|
|
src/video/cameraworker.h \
|
2014-10-12 18:24:05 +08:00
|
|
|
src/widget/videosurface.h \
|
|
|
|
src/widget/form/loadhistorydialog.h \
|
2014-10-15 21:48:08 +08:00
|
|
|
src/historykeeper.h \
|
|
|
|
src/misc/db/genericddinterface.h \
|
|
|
|
src/misc/db/plaindb.h \
|
2014-10-19 01:38:47 +08:00
|
|
|
src/misc/db/encrypteddb.h \
|
|
|
|
src/widget/form/inputpassworddialog.h \
|
2014-10-22 22:05:04 +08:00
|
|
|
src/widget/form/setpassworddialog.h \
|
2014-10-24 04:31:39 +08:00
|
|
|
src/widget/form/tabcompleter.h \
|
2014-11-02 17:41:58 +08:00
|
|
|
src/video/videoframe.h \
|
2014-11-06 22:12:10 +08:00
|
|
|
src/misc/flowlayout.h \
|
|
|
|
src/ipc.h \
|
|
|
|
src/widget/toxuri.h \
|
2014-11-08 05:45:21 +08:00
|
|
|
src/toxdns.h \
|
2014-11-09 22:51:00 +08:00
|
|
|
src/widget/toxsave.h \
|
2014-11-10 00:55:38 +08:00
|
|
|
src/autoupdate.h \
|
2014-11-13 00:30:55 +08:00
|
|
|
src/misc/serialize.h \
|
|
|
|
src/widget/form/settings/advancedform.h
|
2014-07-07 00:38:05 +08:00
|
|
|
|
|
|
|
SOURCES += \
|
2014-10-08 12:26:25 +08:00
|
|
|
src/widget/form/addfriendform.cpp \
|
|
|
|
src/widget/form/chatform.cpp \
|
|
|
|
src/widget/form/groupchatform.cpp \
|
|
|
|
src/widget/form/settingswidget.cpp \
|
|
|
|
src/widget/form/settings/generalform.cpp \
|
|
|
|
src/widget/form/settings/identityform.cpp \
|
|
|
|
src/widget/form/settings/privacyform.cpp \
|
|
|
|
src/widget/form/settings/avform.cpp \
|
|
|
|
src/widget/form/filesform.cpp \
|
|
|
|
src/widget/tool/chattextedit.cpp \
|
|
|
|
src/widget/tool/friendrequestdialog.cpp \
|
|
|
|
src/widget/friendwidget.cpp \
|
|
|
|
src/widget/groupwidget.cpp \
|
|
|
|
src/widget/widget.cpp \
|
|
|
|
src/core.cpp \
|
|
|
|
src/friend.cpp \
|
|
|
|
src/friendlist.cpp \
|
|
|
|
src/group.cpp \
|
|
|
|
src/grouplist.cpp \
|
|
|
|
src/main.cpp \
|
|
|
|
src/misc/settings.cpp \
|
|
|
|
src/misc/cdata.cpp \
|
|
|
|
src/misc/cstring.cpp \
|
2014-10-24 04:07:44 +08:00
|
|
|
src/video/camera.cpp \
|
2014-10-08 12:26:25 +08:00
|
|
|
src/widget/netcamview.cpp \
|
|
|
|
src/misc/smileypack.cpp \
|
|
|
|
src/widget/emoticonswidget.cpp \
|
|
|
|
src/misc/style.cpp \
|
|
|
|
src/widget/adjustingscrollarea.cpp \
|
|
|
|
src/widget/croppinglabel.cpp \
|
|
|
|
src/widget/friendlistwidget.cpp \
|
|
|
|
src/coreav.cpp \
|
|
|
|
src/widget/genericchatroomwidget.cpp \
|
|
|
|
src/widget/form/genericchatform.cpp \
|
|
|
|
src/widget/tool/chatactions/chataction.cpp \
|
|
|
|
src/widget/chatareawidget.cpp \
|
|
|
|
src/filetransferinstance.cpp \
|
|
|
|
src/corestructs.cpp \
|
|
|
|
src/widget/tool/chatactions/messageaction.cpp \
|
|
|
|
src/widget/tool/chatactions/filetransferaction.cpp \
|
|
|
|
src/widget/tool/chatactions/systemmessageaction.cpp \
|
|
|
|
src/widget/tool/chatactions/actionaction.cpp \
|
2014-10-20 19:05:45 +08:00
|
|
|
src/widget/tool/chatactions/alertaction.cpp \
|
2014-10-11 06:21:54 +08:00
|
|
|
src/widget/maskablepixmapwidget.cpp \
|
2014-10-24 04:07:44 +08:00
|
|
|
src/video/cameraworker.cpp \
|
2014-10-12 18:24:05 +08:00
|
|
|
src/widget/videosurface.cpp \
|
|
|
|
src/widget/form/loadhistorydialog.cpp \
|
2014-10-15 21:48:08 +08:00
|
|
|
src/historykeeper.cpp \
|
|
|
|
src/misc/db/genericddinterface.cpp \
|
|
|
|
src/misc/db/plaindb.cpp \
|
2014-10-19 01:38:47 +08:00
|
|
|
src/misc/db/encrypteddb.cpp \
|
|
|
|
src/widget/form/inputpassworddialog.cpp \
|
2014-10-22 22:05:04 +08:00
|
|
|
src/widget/form/setpassworddialog.cpp \
|
2014-10-24 04:07:44 +08:00
|
|
|
src/video/netvideosource.cpp \
|
2014-10-24 04:31:39 +08:00
|
|
|
src/widget/form/tabcompleter.cpp \
|
2014-11-02 17:41:58 +08:00
|
|
|
src/video/videoframe.cpp \
|
2014-11-06 22:12:10 +08:00
|
|
|
src/misc/flowlayout.cpp \
|
|
|
|
src/widget/toxuri.cpp \
|
|
|
|
src/toxdns.cpp \
|
2014-11-08 05:45:21 +08:00
|
|
|
src/ipc.cpp \
|
2014-11-09 22:51:00 +08:00
|
|
|
src/widget/toxsave.cpp \
|
2014-11-10 00:55:38 +08:00
|
|
|
src/autoupdate.cpp \
|
2014-11-13 00:30:55 +08:00
|
|
|
src/misc/serialize.cpp \
|
|
|
|
src/widget/form/settings/advancedform.cpp
|