mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-12 17:34:51 +00:00
30 lines
940 B
Bash
Executable File
30 lines
940 B
Bash
Executable File
set -e
|
|
FullExecPath=$PWD
|
|
pushd `dirname $0` > /dev/null
|
|
FullScriptPath=`pwd`
|
|
popd > /dev/null
|
|
|
|
MySystem=`uname -s`
|
|
cd $FullScriptPath
|
|
|
|
if [ "$MySystem" == "Linux" ]; then
|
|
../../../Libraries/gyp/gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=cmake
|
|
cd ../../out/Debug
|
|
../../../Libraries/cmake-3.6.2/bin/cmake .
|
|
cd ../Release
|
|
../../../Libraries/cmake-3.6.2/bin/cmake .
|
|
cd ../../Telegram/gyp
|
|
else
|
|
#gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=ninja
|
|
#gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=xcode-ninja
|
|
#gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=xcode
|
|
# use patched gyp with Xcode project generator
|
|
../../../Libraries/gyp/gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp -Gxcode_upgrade_check_project_version=800 --format=xcode
|
|
fi
|
|
|
|
cd ../..
|
|
|
|
cd $FullExecPath
|
|
exit
|
|
|