2016-11-20 13:09:00 +00:00
|
|
|
#!/usr/bin/env bash
|
2016-08-28 19:36:51 +00:00
|
|
|
set -e
|
|
|
|
FullExecPath=$PWD
|
|
|
|
pushd `dirname $0` > /dev/null
|
|
|
|
FullScriptPath=`pwd`
|
|
|
|
popd > /dev/null
|
|
|
|
|
2016-09-09 06:15:11 +00:00
|
|
|
MySystem=`uname -s`
|
2016-08-28 19:36:51 +00:00
|
|
|
cd $FullScriptPath
|
2016-09-09 06:15:11 +00:00
|
|
|
|
|
|
|
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 .
|
2016-09-15 10:50:43 +00:00
|
|
|
cd ../Release
|
2016-09-09 06:15:11 +00:00
|
|
|
../../../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
|
2017-03-30 15:20:51 +00:00
|
|
|
../../../Libraries/gyp/gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp -Gxcode_upgrade_check_project_version=830 --format=xcode
|
2016-09-09 06:15:11 +00:00
|
|
|
fi
|
|
|
|
|
2016-08-28 19:36:51 +00:00
|
|
|
cd ../..
|
|
|
|
|
|
|
|
cd $FullExecPath
|
|
|
|
exit
|
|
|
|
|