forked from zerochat2/TelegramSwift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
overtake
committed
Nov 6, 2019
1 parent
e6accb2
commit 23a7fce
Showing
45 changed files
with
208 additions
and
4,221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+19.2 KB
(100%)
Telegram-Mac.xcworkspace/xcuserdata/overtake.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// | ||
// TonBinding.xcconfig | ||
// TonBinding | ||
// | ||
// Created by Mikhail Filimonov on 06.11.2019. | ||
// Copyright © 2019 Telegram. All rights reserved. | ||
// | ||
|
||
// Configuration settings file format documentation can be found at: | ||
// https://help.apple.com/xcode/#/dev745c5c974 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#/bin/sh | ||
|
||
set -x | ||
set -e | ||
|
||
OUT_DIR="$1" | ||
SOURCE_DIR="$2" | ||
openssl_base_path="$3" | ||
if [ -z "$openssl_base_path" ]; then | ||
echo "Usage: sh build.sh path/to/openssl" | ||
exit 1 | ||
fi | ||
|
||
if [ ! -d "$openssl_base_path" ]; then | ||
echo "$openssl_base_path not found" | ||
exit 1 | ||
fi | ||
|
||
if [ -d "$OUT_DIR/build/out" ] | ||
then | ||
exit 0 | ||
fi | ||
|
||
td_path="$SOURCE_DIR" | ||
|
||
mkdir -p "$OUT_DIR" | ||
mkdir -p "$OUT_DIR/build" | ||
cd "$OUT_DIR/build" | ||
|
||
platforms="macOS" | ||
for platform in $platforms; do | ||
install="install-${platform}" | ||
build="build-${platform}" | ||
openssl_path="$openssl_base_path" | ||
echo "OpenSSL path = ${openssl_path}" | ||
openssl_crypto_library="${openssl_path}/lib/libcrypto.a" | ||
options="$options -DOPENSSL_FOUND=1" | ||
options="$options -DOPENSSL_CRYPTO_LIBRARY=${openssl_crypto_library}" | ||
options="$options -DOPENSSL_INCLUDE_DIR=${openssl_path}/include" | ||
options="$options -DOPENSSL_LIBRARIES=${openssl_crypto_library}" | ||
options="$options -DTON_ONLY_TONLIB=ON" | ||
options="$options -DCMAKE_BUILD_TYPE=Release" | ||
options="$options -DCMAKE_OSX_DEPLOYMENT_TARGET=10.11" | ||
rm -rf $build | ||
mkdir -p $build | ||
mkdir -p $install | ||
cd $build | ||
cmake $td_path $options -DCMAKE_INSTALL_PREFIX=../${install} ${SOURCE_DIR} -GNinja | ||
ninja install || exit | ||
cd .. | ||
done | ||
mkdir -p $platform | ||
|
||
mkdir -p "out" | ||
cp -r "install-macOS/include" "out/" | ||
mkdir -p "out/lib" | ||
|
||
for f in install-macOS/lib/*.a; do | ||
lib_name=$(basename "$f") | ||
lipo -create "install-macOS/lib/$lib_name" -o "out/lib/$lib_name" | ||
done | ||
|
274 changes: 119 additions & 155 deletions
274
core-xprojects/TonBinding/TonBinding_Xcode.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule Zip
updated
from 673ff6 to 2f2dfb
Submodule telegram-ios
updated
from 6df7b4 to c8d927
Oops, something went wrong.