mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-20 23:27:23 +00:00
ubuntu 0.5.7 build done, build instruction for qt creator added
This commit is contained in:
parent
523ef4203d
commit
ee8ac26e47
@ -8,5 +8,5 @@ sed -i 's/\-lxcb\-shm/\/usr\/lib\/x86_64\-linux\-gnu\/libxcb\-shm\.a/g' Makefile
|
||||
sed -i 's/\-lxcb\-randr/\/usr\/lib\/x86_64\-linux\-gnu\/libxcb\-randr\.a/g' Makefile
|
||||
sed -i 's/\-lxcb\-shape/\/usr\/lib\/x86_64\-linux\-gnu\/libxcb\-shape\.a/g' Makefile
|
||||
sed -i 's/\-llzma/\/usr\/local\/lib\/liblzma\.a/g' Makefile
|
||||
#sed -i 's/\-lX11\-xcb/\/usr\/lib\/x86_64\-linux\-gnu\/libX11\-xcb\.a/g' Makefile
|
||||
#sed -i 's/\-lX11/\/usr\/lib\/x86_64\-linux\-gnu\/libX11\.a/g' Makefile
|
||||
sed -i 's/\-lglib\-2\.0/\/usr\/lib\/x86_64\-linux\-gnu\/libglib\-2\.0\.a/g' Makefile
|
||||
|
||||
|
@ -1,39 +1,39 @@
|
||||
AppVersionStr=0.5.6
|
||||
AppVersion=5006
|
||||
AppVersionStr=0.5.7
|
||||
AppVersion=5007
|
||||
|
||||
if [ -d "deploy/$AppVersionStr" ]; then
|
||||
if [ -d "./../Linux/Release/deploy/$AppVersionStr" ]; then
|
||||
echo "Deploy folder for version $AppVersionStr already exists!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -f "tlinuxupd$AppVersion" ]; then
|
||||
if [ -f "./../Linux/Release/tlinuxupd$AppVersion" ]; then
|
||||
echo "Update file for version $AppVersion already exists!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f "Telegram" ]; then
|
||||
if [ ! -f "./../Linux/Release/Telegram" ]; then
|
||||
echo "Telegram not found!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f "Updater" ]; then
|
||||
if [ ! -f "./../Linux/Release/Updater" ]; then
|
||||
echo "Updater not found!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Preparing version $AppVersionStr, executing Packer.."
|
||||
./Packer -path Telegram -path Updater -version $AppVersion
|
||||
cd ./../Linux/Release && ./Packer -path Telegram -path Updater -version $AppVersion && cd ./../../Telegram
|
||||
echo "Packer done!"
|
||||
|
||||
if [ ! -d "deploy/" ]; then
|
||||
mkdir "deploy"
|
||||
if [ ! -d "./../Linux/Release/deploy" ]; then
|
||||
mkdir "./../Linux/Release/deploy"
|
||||
fi
|
||||
echo "Copying Telegram, Updater and tlinuxupd$AppVersion to deploy/$AppVersionStr..";
|
||||
mkdir "deploy/$AppVersionStr"
|
||||
mkdir "deploy/$AppVersionStr/Telegram"
|
||||
mv Telegram deploy/$AppVersionStr/Telegram/
|
||||
mv Updater deploy/$AppVersionStr/Telegram/
|
||||
mv tlinuxupd$AppVersion deploy/$AppVersionStr/
|
||||
cd deploy/$AppVersionStr && tar -czvf tsetup.$AppVersionStr.tar.gz Telegram/ && cd ../..
|
||||
mkdir "./../Linux/Release/deploy/$AppVersionStr"
|
||||
mkdir "./../Linux/Release/deploy/$AppVersionStr/Telegram"
|
||||
mv ./../Linux/Release/Telegram ./../Linux/Release/deploy/$AppVersionStr/Telegram/
|
||||
mv ./../Linux/Release/Updater ./../Linux/Release/deploy/$AppVersionStr/Telegram/
|
||||
mv ./../Linux/Release/tlinuxupd$AppVersion ./../Linux/Release/deploy/$AppVersionStr/
|
||||
cd ./../Linux/Release/deploy/$AppVersionStr && tar -czvf tsetup.$AppVersionStr.tar.gz Telegram/ && cd ./../../../../Telegram
|
||||
echo "Version $AppVersionStr prepared!";
|
||||
|
||||
|
@ -35,7 +35,7 @@ void LocalImageLoaderPrivate::prepareImages() {
|
||||
QImage img;
|
||||
QByteArray data;
|
||||
PeerId peer;
|
||||
uint64 id, jpeg_id;
|
||||
uint64 id, jpeg_id = 0;
|
||||
ToPrepareMediaType type;
|
||||
{
|
||||
QMutexLocker lock(loader->toPrepareMutex());
|
||||
|
@ -225,17 +225,24 @@ CONFIG += precompile_header
|
||||
|
||||
PRECOMPILED_HEADER = ./SourceFiles/stdafx.h
|
||||
|
||||
QMAKE_CXXFLAGS += -fno-strict-aliasing
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-parameter -Wno-unused-variable -Wno-switch -Wno-comment -Wno-unused-but-set-variable
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
INCLUDEPATH += ./../../Libraries/QtStatic/qtbase/include/QtGui/5.3.1/QtGui\
|
||||
./../../Libraries/QtStatic/qtbase/include/QtCore/5.3.1/QtCore\
|
||||
./../../Libraries/QtStatic/qtbase/include\
|
||||
./SourceFiles\
|
||||
./GeneratedFiles\
|
||||
./../../Telegram/GeneratedFiles\ # qmake bug?.. Sometimes ./GeneratedFiles does not mean this path :(
|
||||
./../../Libraries/libexif-0.6.20\
|
||||
/usr/local/ssl/include
|
||||
LIBS += -L/usr/local/ssl/lib -lcrypto -lssl -lz -ldl -llzma
|
||||
LIBS += -L/usr/local/ssl/lib -lcrypto -lssl -lz -ldl -llzma -lpulse
|
||||
LIBS += ./../../../Libraries/libexif-0.6.20/libexif/.libs/libexif.a
|
||||
LIBS += ./../../../Libraries/QtStatic/qtmultimedia/plugins/audio/libqtmedia_pulse.a
|
||||
RESOURCES += \
|
||||
|
@ -0,0 +1,26 @@
|
||||
TARGET = qtmedia_pulse
|
||||
QT += multimedia-private
|
||||
|
||||
PLUGIN_TYPE = audio
|
||||
PLUGIN_CLASS_NAME = QPulseAudioPlugin
|
||||
load(qt_plugin)
|
||||
|
||||
CONFIG += link_pkgconfig
|
||||
PKGCONFIG += libpulse
|
||||
CONFIG += static plugin
|
||||
HEADERS += qpulseaudioplugin.h \
|
||||
qaudiodeviceinfo_pulse.h \
|
||||
qaudiooutput_pulse.h \
|
||||
qaudioinput_pulse.h \
|
||||
qpulseaudioengine.h \
|
||||
qpulsehelpers.h
|
||||
|
||||
SOURCES += qpulseaudioplugin.cpp \
|
||||
qaudiodeviceinfo_pulse.cpp \
|
||||
qaudiooutput_pulse.cpp \
|
||||
qaudioinput_pulse.cpp \
|
||||
qpulseaudioengine.cpp \
|
||||
qpulsehelpers.cpp
|
||||
|
||||
OTHER_FILES += \
|
||||
pulseaudio.json
|
1
XCODE.md
1
XCODE.md
@ -91,4 +91,5 @@ building (**make** command) will take really long time.
|
||||
* Open MetaEmoji.xcodeproj and build for Debug (Release optionally)
|
||||
* Open MetaLang.xcodeproj and build for Debug (Release optionally)
|
||||
* Open Telegram.xcodeproj and build for Debug
|
||||
* Build Updater target as well, it is required for Telegram relaunch
|
||||
* Release Telegram build will require removing **CUSTOM_API_ID** definition in Telegram target settings (Apple LLVM 5.1 - Custom Compiler Flags > Other C / C++ Flags > Release)
|
||||
|
Loading…
Reference in New Issue
Block a user