1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
qTox/qtox.pro

178 lines
6.0 KiB
Prolog
Raw Normal View History

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.
QT += core gui network xml
2014-07-07 00:38:05 +08:00
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = qtox
2014-07-07 00:38:05 +08:00
TEMPLATE = app
FORMS += \
2014-10-06 00:17:01 +08:00
mainwindow.ui \
widget/form/settings/generalsettings.ui \
widget/form/settings/avsettings.ui \
widget/form/settings/identitysettings.ui
2014-07-07 00:38:05 +08:00
CONFIG += c++11
TRANSLATIONS = translations/de.ts \
translations/fr.ts \
translations/it.ts \
2014-09-13 03:59:49 +08:00
translations/ru.ts \
2014-09-13 17:49:58 +08:00
translations/pl.ts \
translations/fi.ts \
2014-09-30 03:05:48 +08:00
translations/mannol.ts \
translations/uk.ts
2014-07-07 00:38:05 +08:00
RESOURCES += res.qrc
2014-09-02 02:33:04 +08:00
contains(JENKINS,YES) {
INCLUDEPATH += ./libs/include/
} else {
INCLUDEPATH += libs/include
}
# Rules for Windows, Mac OSX, and Linux
2014-07-07 00:38:05 +08:00
win32 {
2014-10-01 07:39:53 +08:00
LIBS += -liphlpapi -L$$PWD/libs/lib -ltoxav -ltoxcore -lvpx -lpthread
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 {
LIBS += -L$$PWD/libs/lib/ -ltoxcore -ltoxav -lsodium -lvpx -framework OpenAL -lopencv_core -lopencv_highgui
} 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
LIBS += -L$$PWD/libs/lib/ -Wl,-Bstatic -ltoxcore -ltoxav -lsodium -Wl,-Bdynamic -lopus -lvpx -lopenal -lopencv_core -lopencv_highgui
} else {
LIBS += -L$$PWD/libs/lib/ -ltoxcore -ltoxav -lvpx -lopenal -lopencv_core -lopencv_highgui
}
2014-09-02 02:33:04 +08:00
2014-09-08 06:41:21 +08:00
contains(JENKINS, YES) {
LIBS = ./libs/lib/libtoxav.a ./libs/lib/libvpx.a ./libs/lib/libopus.a ./libs/lib/libtoxcore.a ./libs/lib/libsodium.a -lopencv_core -lopencv_highgui -lopenal
}
2014-09-02 02:33:04 +08:00
}
2014-07-07 00:38:05 +08:00
}
2014-07-07 00:38:05 +08:00
#### Static linux build
2014-07-13 04:37:11 +08:00
#LIBS += -Wl,-Bstatic -ltoxcore -ltoxav -lsodium -lvpx -lopus \
# -lgstbase-0.10 -lgstreamer-0.10 -lgmodule-2.0 -lgstaudio-0.10 -lxml2 \
# -lX11-xcb -lXi -lxcb-render-util -lxcb-glx -lxcb-render -ldbus-1 \
# -lxcb -lXau -lXdmcp -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape \
2014-07-07 00:38:05 +08:00
# -lxcb-keysyms -lxcb-xkb -lfontconfig -lfreetype -lXrender -lXext -lX11 \
2014-07-13 04:37:11 +08:00
# -lpng -lz -licui18n -licuuc -licudata -lm -lgthread-2.0 \
# -pthread -lrt -lGL -lpthread -Wl,-Bdynamic -ldl -lc
2014-07-07 00:38:05 +08:00
#QMAKE_CXXFLAGS += -Os -flto -static-libstdc++ -static-libgcc
HEADERS += widget/form/addfriendform.h \
widget/form/chatform.h \
widget/form/groupchatform.h \
widget/form/settingswidget.h \
widget/form/settings/genericsettings.h \
widget/form/settings/generalform.h \
widget/form/settings/identityform.h \
widget/form/settings/privacyform.h \
widget/form/settings/avform.h \
widget/form/filesform.h \
2014-07-07 00:38:05 +08:00
widget/tool/chattextedit.h \
widget/tool/friendrequestdialog.h \
widget/friendwidget.h \
widget/groupwidget.h \
widget/widget.h \
friend.h \
group.h \
grouplist.h \
2014-09-30 02:28:59 +08:00
misc/settings.h \
2014-07-07 00:38:05 +08:00
core.h \
friendlist.h \
2014-09-30 02:28:59 +08:00
misc/cdata.h \
misc/cstring.h \
2014-07-07 00:38:05 +08:00
widget/selfcamview.h \
widget/camera.h \
widget/netcamview.h \
2014-09-30 02:28:59 +08:00
misc/smileypack.h \
2014-08-11 00:14:50 +08:00
widget/emoticonswidget.h \
2014-09-30 02:28:59 +08:00
misc/style.h \
2014-08-14 15:47:30 +08:00
widget/adjustingscrollarea.h \
2014-08-22 23:19:16 +08:00
widget/croppinglabel.h \
widget/friendlistwidget.h \
widget/genericchatroomwidget.h \
2014-09-06 03:27:26 +08:00
widget/form/genericchatform.h \
widget/tool/chatactions/chataction.h \
2014-09-06 03:27:26 +08:00
widget/chatareawidget.h \
2014-09-11 21:44:34 +08:00
filetransferinstance.h \
corestructs.h \
coredefines.h \
2014-09-12 21:41:41 +08:00
coreav.h \
widget/tool/chatactions/messageaction.h \
widget/tool/chatactions/filetransferaction.h \
2014-09-24 22:51:16 +08:00
widget/tool/chatactions/systemmessageaction.h \
widget/tool/chatactions/actionaction.h \
widget/maskablepixmapwidget.h
2014-07-07 00:38:05 +08:00
SOURCES += \
widget/form/addfriendform.cpp \
widget/form/chatform.cpp \
widget/form/groupchatform.cpp \
widget/form/settingswidget.cpp \
widget/form/settings/generalform.cpp \
widget/form/settings/identityform.cpp \
widget/form/settings/privacyform.cpp \
widget/form/settings/avform.cpp \
widget/form/filesform.cpp \
2014-07-07 00:38:05 +08:00
widget/tool/chattextedit.cpp \
widget/tool/friendrequestdialog.cpp \
widget/friendwidget.cpp \
widget/groupwidget.cpp \
widget/widget.cpp \
core.cpp \
friend.cpp \
friendlist.cpp \
group.cpp \
grouplist.cpp \
main.cpp \
2014-09-30 02:28:59 +08:00
misc/settings.cpp \
misc/cdata.cpp \
misc/cstring.cpp \
2014-07-07 00:38:05 +08:00
widget/selfcamview.cpp \
widget/camera.cpp \
widget/netcamview.cpp \
2014-09-30 02:28:59 +08:00
misc/smileypack.cpp \
2014-08-11 00:14:50 +08:00
widget/emoticonswidget.cpp \
2014-09-30 02:28:59 +08:00
misc/style.cpp \
2014-08-14 15:47:30 +08:00
widget/adjustingscrollarea.cpp \
2014-08-22 23:19:16 +08:00
widget/croppinglabel.cpp \
2014-08-28 20:30:38 +08:00
widget/friendlistwidget.cpp \
coreav.cpp \
widget/genericchatroomwidget.cpp \
2014-09-06 03:27:26 +08:00
widget/form/genericchatform.cpp \
widget/tool/chatactions/chataction.cpp \
2014-09-06 03:27:26 +08:00
widget/chatareawidget.cpp \
2014-09-11 21:44:34 +08:00
filetransferinstance.cpp \
2014-09-12 21:41:41 +08:00
corestructs.cpp \
widget/tool/chatactions/messageaction.cpp \
widget/tool/chatactions/filetransferaction.cpp \
widget/tool/chatactions/systemmessageaction.cpp \
widget/tool/chatactions/actionaction.cpp \
widget/maskablepixmapwidget.cpp