2014-09-04 19:24:03 +00:00
|
|
|
QT += core gui network widgets
|
2014-07-08 10:24:21 +00:00
|
|
|
|
|
|
|
CONFIG += plugin static
|
2014-06-14 19:32:11 +00:00
|
|
|
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
DEFINES += _DEBUG
|
2014-07-10 08:53:23 +00:00
|
|
|
OBJECTS_DIR = ./../DebugIntermediate
|
2014-07-14 05:16:21 +00:00
|
|
|
MOC_DIR = ./GenFiles/Debug
|
|
|
|
RCC_DIR = ./GenFiles
|
2014-07-10 08:53:23 +00:00
|
|
|
DESTDIR = ./../Debug
|
2014-06-14 19:32:11 +00:00
|
|
|
}
|
|
|
|
CONFIG(release, debug|release) {
|
2014-10-22 19:26:33 +00:00
|
|
|
DEFINES += _WITH_DEBUG CUSTOM_API_ID
|
2014-07-10 08:53:23 +00:00
|
|
|
OBJECTS_DIR = ./../ReleaseIntermediate
|
2014-07-14 05:16:21 +00:00
|
|
|
MOC_DIR = ./GenFiles/Release
|
|
|
|
RCC_DIR = ./GenFiles
|
2014-07-10 08:53:23 +00:00
|
|
|
DESTDIR = ./../Release
|
2014-06-14 19:32:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
macx {
|
|
|
|
QMAKE_INFO_PLIST = ./SourceFiles/Telegram.plist
|
|
|
|
OBJECTIVE_SOURCES += ./SourceFiles/pspecific_mac_p.mm
|
|
|
|
OBJECTIVE_HEADERS += ./SourceFiles/pspecific_mac_p.h
|
|
|
|
QMAKE_LFLAGS += -framework Cocoa
|
|
|
|
}
|
|
|
|
|
2014-07-08 10:24:21 +00:00
|
|
|
linux {
|
|
|
|
SOURCES += ./SourceFiles/pspecific_linux.cpp
|
|
|
|
HEADERS += ./SourceFiles/pspecific_linux.h
|
|
|
|
}
|
|
|
|
|
2014-07-14 05:16:21 +00:00
|
|
|
style_auto_cpp.target = ./GeneratedFiles/style_auto.cpp
|
2014-07-09 05:54:12 +00:00
|
|
|
style_auto_cpp.depends = FORCE
|
2014-07-14 05:16:21 +00:00
|
|
|
style_auto_cpp.commands = mkdir -p ./../../Telegram/GeneratedFiles && ./../DebugStyle/MetaStyle -classes_in ./../../Telegram/Resources/style_classes.txt -classes_out ./../../Telegram/GeneratedFiles/style_classes.h -styles_in ./../../Telegram/Resources/style.txt -styles_out ./../../Telegram/GeneratedFiles/style_auto.h -path_to_sprites ./../../Telegram/SourceFiles/art/
|
2014-07-10 08:53:23 +00:00
|
|
|
style_auto_cpp.depends = ./../../Telegram/Resources/style.txt ./../../Telegram/Resources/style_classes.txt
|
2014-07-09 05:54:12 +00:00
|
|
|
|
2014-07-14 05:16:21 +00:00
|
|
|
style_auto_h.target = ./GeneratedFiles/style_auto.h
|
2014-07-09 05:54:12 +00:00
|
|
|
style_auto_h.depends = FORCE
|
2014-07-14 05:16:21 +00:00
|
|
|
style_auto_h.commands = mkdir -p ./../../Telegram/GeneratedFiles && ./../DebugStyle/MetaStyle -classes_in ./../../Telegram/Resources/style_classes.txt -classes_out ./../../Telegram/GeneratedFiles/style_classes.h -styles_in ./../../Telegram/Resources/style.txt -styles_out ./../../Telegram/GeneratedFiles/style_auto.h -path_to_sprites ./../../Telegram/SourceFiles/art/
|
2014-07-10 08:53:23 +00:00
|
|
|
style_auto_h.depends = ./../../Telegram/Resources/style.txt ./../../Telegram/Resources/style_classes.txt
|
2014-07-09 05:54:12 +00:00
|
|
|
|
2014-07-14 05:16:21 +00:00
|
|
|
style_classes_h.target = ./GeneratedFiles/style_classes.h
|
2014-07-09 05:54:12 +00:00
|
|
|
style_classes_h.depends = FORCE
|
2014-07-14 05:16:21 +00:00
|
|
|
style_classes_h.commands = mkdir -p ./../../Telegram/GeneratedFiles && ./../DebugStyle/MetaStyle -classes_in ./../../Telegram/Resources/style_classes.txt -classes_out ./../../Telegram/GeneratedFiles/style_classes.h -styles_in ./../../Telegram/Resources/style.txt -styles_out ./../../Telegram/GeneratedFiles/style_auto.h -path_to_sprites ./../../Telegram/SourceFiles/art/
|
2014-07-10 08:53:23 +00:00
|
|
|
style_classes_h.depends = ./../../Telegram/Resources/style.txt ./../../Telegram/Resources/style_classes.txt
|
2014-07-09 05:54:12 +00:00
|
|
|
|
2014-07-14 05:16:21 +00:00
|
|
|
lang_cpp.target = ./GeneratedFiles/lang.cpp
|
2014-07-09 05:54:12 +00:00
|
|
|
lang_cpp.depends = FORCE
|
2014-07-14 05:16:21 +00:00
|
|
|
lang_cpp.commands = mkdir -p ./../../Telegram/GeneratedFiles && ./../DebugLang/MetaLang -lang_in ./../../Telegram/Resources/lang.txt -lang_out ./../../Telegram/GeneratedFiles/lang
|
2014-07-10 08:53:23 +00:00
|
|
|
lang_cpp.depends = ./../../Telegram/Resources/lang.txt
|
2014-07-09 05:54:12 +00:00
|
|
|
|
2014-07-14 05:16:21 +00:00
|
|
|
lang_h.target = ./GeneratedFiles/lang.h
|
2014-07-09 05:54:12 +00:00
|
|
|
lang_h.depends = FORCE
|
2014-07-14 05:16:21 +00:00
|
|
|
lang_h.commands = mkdir -p ./../../Telegram/GeneratedFiles && ./../DebugLang/MetaLang -lang_in ./../../Telegram/Resources/lang.txt -lang_out ./../../Telegram/GeneratedFiles/lang
|
2014-07-10 08:53:23 +00:00
|
|
|
lang_h.depends = ./../../Telegram/Resources/lang.txt
|
2014-07-09 05:54:12 +00:00
|
|
|
|
|
|
|
hook.depends = style_auto_cpp style_auto_h style_classes_h lang_cpp lang_h
|
|
|
|
CONFIG(debug,debug|release):hook.target = Makefile.Debug
|
|
|
|
CONFIG(release,debug|release):hook.target = Makefile.Release
|
|
|
|
|
|
|
|
QMAKE_EXTRA_TARGETS += style_auto_cpp style_auto_h style_classes_h lang_cpp lang_h hook
|
|
|
|
|
|
|
|
PRE_TARGETDEPS += ./GeneratedFiles/style_auto.cpp ./GeneratedFiles/style_auto.h ./GeneratedFiles/style_classes.h ./GeneratedFiles/lang.h ./GeneratedFiles/lang.cpp
|
|
|
|
|
2014-07-17 09:42:06 +00:00
|
|
|
unix {
|
|
|
|
linux-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
|
|
|
|
linux-g++-32:QMAKE_TARGET.arch = x86
|
|
|
|
linux-g++-64:QMAKE_TARGET.arch = x86_64
|
|
|
|
|
|
|
|
contains(QMAKE_TARGET.arch, x86_64) {
|
|
|
|
CONFIG(release,debug|release):QMAKE_PRE_LINK = ./../../Telegram/FixMake.sh
|
|
|
|
DEFINES += Q_OS_LINUX64
|
|
|
|
} else {
|
|
|
|
CONFIG(release,debug|release):QMAKE_PRE_LINK = ./../../Telegram/FixMake32.sh
|
|
|
|
DEFINES += Q_OS_LINUX32
|
|
|
|
}
|
|
|
|
}
|
2014-07-14 05:16:21 +00:00
|
|
|
|
2014-06-14 19:32:11 +00:00
|
|
|
SOURCES += \
|
|
|
|
./SourceFiles/main.cpp \
|
|
|
|
./SourceFiles/stdafx.cpp \
|
|
|
|
./SourceFiles/app.cpp \
|
|
|
|
./SourceFiles/application.cpp \
|
2014-09-04 19:24:03 +00:00
|
|
|
./SourceFiles/audio.cpp \
|
2014-06-14 19:32:11 +00:00
|
|
|
./SourceFiles/dialogswidget.cpp \
|
|
|
|
./SourceFiles/dropdown.cpp \
|
|
|
|
./SourceFiles/fileuploader.cpp \
|
|
|
|
./SourceFiles/history.cpp \
|
|
|
|
./SourceFiles/historywidget.cpp \
|
|
|
|
./SourceFiles/langloaderplain.cpp \
|
|
|
|
./SourceFiles/layerwidget.cpp \
|
2014-08-11 12:50:58 +00:00
|
|
|
./SourceFiles/mediaview.cpp \
|
2014-08-15 12:19:18 +00:00
|
|
|
./SourceFiles/overviewwidget.cpp \
|
2014-06-14 19:32:11 +00:00
|
|
|
./SourceFiles/profilewidget.cpp \
|
|
|
|
./SourceFiles/localimageloader.cpp \
|
2014-11-22 09:45:04 +00:00
|
|
|
./SourceFiles/localstorage.cpp \
|
2014-06-14 19:32:11 +00:00
|
|
|
./SourceFiles/logs.cpp \
|
|
|
|
./SourceFiles/mainwidget.cpp \
|
|
|
|
./SourceFiles/settings.cpp \
|
|
|
|
./SourceFiles/settingswidget.cpp \
|
|
|
|
./SourceFiles/supporttl.cpp \
|
|
|
|
./SourceFiles/sysbuttons.cpp \
|
|
|
|
./SourceFiles/title.cpp \
|
|
|
|
./SourceFiles/types.cpp \
|
|
|
|
./SourceFiles/window.cpp \
|
|
|
|
./SourceFiles/mtproto/mtp.cpp \
|
|
|
|
./SourceFiles/mtproto/mtpConnection.cpp \
|
2014-10-22 19:26:33 +00:00
|
|
|
./SourceFiles/mtproto/mtpCoreTypes.cpp \
|
2014-06-14 19:32:11 +00:00
|
|
|
./SourceFiles/mtproto/mtpDC.cpp \
|
|
|
|
./SourceFiles/mtproto/mtpFileLoader.cpp \
|
|
|
|
./SourceFiles/mtproto/mtpRPC.cpp \
|
2014-10-22 19:26:33 +00:00
|
|
|
./SourceFiles/mtproto/mtpScheme.cpp \
|
2014-06-14 19:32:11 +00:00
|
|
|
./SourceFiles/mtproto/mtpSession.cpp \
|
|
|
|
./SourceFiles/gui/animation.cpp \
|
|
|
|
./SourceFiles/gui/boxshadow.cpp \
|
|
|
|
./SourceFiles/gui/button.cpp \
|
2014-09-30 14:45:47 +00:00
|
|
|
./SourceFiles/gui/contextmenu.cpp \
|
2014-06-14 19:32:11 +00:00
|
|
|
./SourceFiles/gui/countrycodeinput.cpp \
|
|
|
|
./SourceFiles/gui/countryinput.cpp \
|
|
|
|
./SourceFiles/gui/emoji_config.cpp \
|
|
|
|
./SourceFiles/gui/filedialog.cpp \
|
|
|
|
./SourceFiles/gui/flatbutton.cpp \
|
|
|
|
./SourceFiles/gui/flatcheckbox.cpp \
|
|
|
|
./SourceFiles/gui/flatinput.cpp \
|
|
|
|
./SourceFiles/gui/flatlabel.cpp \
|
|
|
|
./SourceFiles/gui/flattextarea.cpp \
|
|
|
|
./SourceFiles/gui/images.cpp \
|
|
|
|
./SourceFiles/gui/phoneinput.cpp \
|
|
|
|
./SourceFiles/gui/scrollarea.cpp \
|
|
|
|
./SourceFiles/gui/style_core.cpp \
|
|
|
|
./SourceFiles/gui/text.cpp \
|
|
|
|
./SourceFiles/gui/twidget.cpp \
|
2014-07-09 05:54:12 +00:00
|
|
|
./SourceFiles/gui/switcher.cpp \
|
2014-06-14 19:32:11 +00:00
|
|
|
./GeneratedFiles/lang.cpp \
|
|
|
|
./GeneratedFiles/style_auto.cpp \
|
|
|
|
./SourceFiles/boxes/aboutbox.cpp \
|
|
|
|
./SourceFiles/boxes/addcontactbox.cpp \
|
|
|
|
./SourceFiles/boxes/addparticipantbox.cpp \
|
|
|
|
./SourceFiles/boxes/confirmbox.cpp \
|
|
|
|
./SourceFiles/boxes/connectionbox.cpp \
|
|
|
|
./SourceFiles/boxes/contactsbox.cpp \
|
|
|
|
./SourceFiles/boxes/downloadpathbox.cpp \
|
|
|
|
./SourceFiles/boxes/emojibox.cpp \
|
|
|
|
./SourceFiles/boxes/newgroupbox.cpp \
|
|
|
|
./SourceFiles/boxes/photocropbox.cpp \
|
|
|
|
./SourceFiles/boxes/photosendbox.cpp \
|
2014-10-22 18:55:15 +00:00
|
|
|
./SourceFiles/boxes/usernamebox.cpp \
|
2014-06-14 19:32:11 +00:00
|
|
|
./SourceFiles/intro/intro.cpp \
|
|
|
|
./SourceFiles/intro/introcode.cpp \
|
|
|
|
./SourceFiles/intro/introphone.cpp \
|
|
|
|
./SourceFiles/intro/introsignup.cpp \
|
|
|
|
./SourceFiles/intro/introsteps.cpp
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
./SourceFiles/stdafx.h \
|
|
|
|
./SourceFiles/app.h \
|
|
|
|
./SourceFiles/application.h \
|
2014-09-04 19:24:03 +00:00
|
|
|
./SourceFiles/audio.h \
|
2014-06-14 19:32:11 +00:00
|
|
|
./SourceFiles/config.h \
|
|
|
|
./SourceFiles/countries.h \
|
|
|
|
./SourceFiles/dialogswidget.h \
|
|
|
|
./SourceFiles/dropdown.h \
|
|
|
|
./SourceFiles/fileuploader.h \
|
|
|
|
./SourceFiles/history.h \
|
|
|
|
./SourceFiles/historywidget.h \
|
|
|
|
./SourceFiles/langloaderplain.h \
|
|
|
|
./SourceFiles/layerwidget.h \
|
2014-08-11 12:50:58 +00:00
|
|
|
./SourceFiles/mediaview.h \
|
2014-08-15 12:19:18 +00:00
|
|
|
./SourceFiles/overviewwidget.h \
|
2014-06-14 19:32:11 +00:00
|
|
|
./SourceFiles/profilewidget.h \
|
|
|
|
./SourceFiles/localimageloader.h \
|
2014-11-22 09:45:04 +00:00
|
|
|
./SourceFiles/localstorage.h \
|
2014-06-14 19:32:11 +00:00
|
|
|
./SourceFiles/logs.h \
|
|
|
|
./SourceFiles/mainwidget.h \
|
|
|
|
./SourceFiles/settings.h \
|
|
|
|
./SourceFiles/settingswidget.h \
|
|
|
|
./SourceFiles/style.h \
|
|
|
|
./SourceFiles/supporttl.h \
|
|
|
|
./SourceFiles/sysbuttons.h \
|
|
|
|
./SourceFiles/title.h \
|
|
|
|
./SourceFiles/types.h \
|
|
|
|
./SourceFiles/window.h \
|
|
|
|
./SourceFiles/mtproto/mtpSessionImpl.h \
|
|
|
|
./SourceFiles/mtproto/mtp.h \
|
|
|
|
./SourceFiles/mtproto/mtpAuthKey.h \
|
|
|
|
./SourceFiles/mtproto/mtpConnection.h \
|
|
|
|
./SourceFiles/mtproto/mtpCoreTypes.h \
|
|
|
|
./SourceFiles/mtproto/mtpDC.h \
|
|
|
|
./SourceFiles/mtproto/mtpFileLoader.h \
|
|
|
|
./SourceFiles/mtproto/mtpPublicRSA.h \
|
|
|
|
./SourceFiles/mtproto/mtpRPC.h \
|
|
|
|
./SourceFiles/mtproto/mtpScheme.h \
|
|
|
|
./SourceFiles/mtproto/mtpSession.h \
|
|
|
|
./SourceFiles/pspecific.h \
|
|
|
|
./SourceFiles/gui/animation.h \
|
|
|
|
./SourceFiles/gui/boxshadow.h \
|
|
|
|
./SourceFiles/gui/button.h \
|
2014-09-30 14:45:47 +00:00
|
|
|
./SourceFiles/gui/contextmenu.h \
|
2014-06-14 19:32:11 +00:00
|
|
|
./SourceFiles/gui/countrycodeinput.h \
|
|
|
|
./SourceFiles/gui/countryinput.h \
|
|
|
|
./SourceFiles/gui/emoji_config.h \
|
|
|
|
./SourceFiles/gui/filedialog.h \
|
|
|
|
./SourceFiles/gui/flatbutton.h \
|
|
|
|
./SourceFiles/gui/flatcheckbox.h \
|
|
|
|
./SourceFiles/gui/flatinput.h \
|
|
|
|
./SourceFiles/gui/flatlabel.h \
|
|
|
|
./SourceFiles/gui/flattextarea.h \
|
|
|
|
./SourceFiles/gui/images.h \
|
|
|
|
./SourceFiles/gui/phoneinput.h \
|
|
|
|
./SourceFiles/gui/scrollarea.h \
|
|
|
|
./SourceFiles/gui/style_core.h \
|
|
|
|
./SourceFiles/gui/text.h \
|
|
|
|
./SourceFiles/gui/twidget.h \
|
2014-07-09 05:54:12 +00:00
|
|
|
./SourceFiles/gui/switcher.h \
|
2014-06-14 19:32:11 +00:00
|
|
|
./GeneratedFiles/lang.h \
|
|
|
|
./GeneratedFiles/style_auto.h \
|
|
|
|
./GeneratedFiles/style_classes.h \
|
|
|
|
./SourceFiles/boxes/aboutbox.h \
|
|
|
|
./SourceFiles/boxes/addcontactbox.h \
|
|
|
|
./SourceFiles/boxes/addparticipantbox.h \
|
|
|
|
./SourceFiles/boxes/confirmbox.h \
|
|
|
|
./SourceFiles/boxes/connectionbox.h \
|
|
|
|
./SourceFiles/boxes/contactsbox.h \
|
|
|
|
./SourceFiles/boxes/downloadpathbox.h \
|
|
|
|
./SourceFiles/boxes/emojibox.h \
|
|
|
|
./SourceFiles/boxes/newgroupbox.h \
|
|
|
|
./SourceFiles/boxes/photocropbox.h \
|
|
|
|
./SourceFiles/boxes/photosendbox.h \
|
2014-10-22 18:55:15 +00:00
|
|
|
./SourceFiles/boxes/usernamebox.h \
|
2014-06-14 19:32:11 +00:00
|
|
|
./SourceFiles/intro/intro.h \
|
|
|
|
./SourceFiles/intro/introcode.h \
|
|
|
|
./SourceFiles/intro/introphone.h \
|
|
|
|
./SourceFiles/intro/introsignup.h \
|
|
|
|
./SourceFiles/intro/introsteps.h
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
SOURCES += \
|
|
|
|
./SourceFiles/pspecific_wnd.cpp
|
|
|
|
HEADERS += \
|
|
|
|
./SourceFiles/pspecific_wnd.h
|
|
|
|
}
|
|
|
|
|
|
|
|
macx {
|
|
|
|
SOURCES += \
|
|
|
|
./SourceFiles/pspecific_mac.cpp
|
|
|
|
HEADERS += \
|
|
|
|
./SourceFiles/pspecific_mac.h
|
|
|
|
}
|
|
|
|
|
|
|
|
CONFIG += precompile_header
|
|
|
|
|
|
|
|
PRECOMPILED_HEADER = ./SourceFiles/stdafx.h
|
|
|
|
|
2014-10-17 19:49:02 +00:00
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-result -Wno-unused-parameter -Wno-unused-variable -Wno-switch -Wno-comment -Wno-unused-but-set-variable
|
2014-07-08 10:24:21 +00:00
|
|
|
|
2014-07-14 13:58:10 +00:00
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
QMAKE_CXXFLAGS_RELEASE -= -O2
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -Ofast -flto -fno-strict-aliasing
|
|
|
|
QMAKE_LFLAGS_RELEASE -= -O1
|
|
|
|
QMAKE_LFLAGS_RELEASE += -Ofast -flto
|
|
|
|
}
|
|
|
|
|
2014-07-08 10:24:21 +00:00
|
|
|
INCLUDEPATH += ./../../Libraries/QtStatic/qtbase/include/QtGui/5.3.1/QtGui\
|
|
|
|
./../../Libraries/QtStatic/qtbase/include/QtCore/5.3.1/QtCore\
|
2014-06-14 19:32:11 +00:00
|
|
|
./../../Libraries/QtStatic/qtbase/include\
|
2014-09-06 11:03:25 +00:00
|
|
|
/usr/local/include/opus\
|
2014-06-14 19:32:11 +00:00
|
|
|
./SourceFiles\
|
2014-07-17 09:42:06 +00:00
|
|
|
./GeneratedFiles
|
2014-09-04 19:24:03 +00:00
|
|
|
LIBS += -lcrypto -lssl -lz -ldl -llzma -lexif -lopus -lopusfile -logg -lopenal
|
2014-07-30 07:08:21 +00:00
|
|
|
LIBS += ./../../../Libraries/QtStatic/qtbase/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.a
|
2014-07-24 16:00:35 +00:00
|
|
|
|
2014-06-14 19:32:11 +00:00
|
|
|
RESOURCES += \
|
2014-07-14 05:16:21 +00:00
|
|
|
./SourceFiles/telegram_linux.qrc
|
|
|
|
|
|
|
|
OTHER_FILES += \
|
|
|
|
Resources/style_classes.txt \
|
|
|
|
Resources/style.txt \
|
|
|
|
Resources/lang.txt
|