-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Changed file structure for prebuilt binaries
* Updated CHANGELOG
- Loading branch information
Showing
10 changed files
with
89 additions
and
10 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
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
include README.md requirements.txt | ||
recursive-include aiotdlib/tdlib libtdjson.1.7.6.dylib | ||
recursive-include aiotdlib/tdlib libtdjson.so.1.7.6 | ||
recursive-include aiotdlib/tdlib * |
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,2 @@ | ||
!**/libtdjson.so | ||
!**/libtdjson.dylib |
Binary file renamed
BIN
+17.2 MB
aiotdlib/tdlib/libtdjson.1.7.6.dylib → aiotdlib/tdlib/darwin/arm64/libtdjson.dylib
Binary file not shown.
Binary file renamed
BIN
+23.9 MB
aiotdlib/tdlib/libtdjson.so.1.7.6 → aiotdlib/tdlib/linux/amd64/libtdjson.so
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM debian:buster | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV DEBCONF_NONINTERACTIVE_SEEN true | ||
|
||
# install build dependencies, then clean up system packages | ||
RUN apt-get update && apt-get -y install \ | ||
make \ | ||
zlib1g-dev \ | ||
libssl-dev \ | ||
gperf \ | ||
cmake \ | ||
clang \ | ||
libc++-dev \ | ||
libc++abi-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /build | ||
|
||
code: | ||
GIT CLONE https://github.com/pylakey/td /code | ||
|
||
build: | ||
FROM +code | ||
ARG TARGETARCH | ||
|
||
RUN CXXFLAGS="-stdlib=libc++" \ | ||
CC=/usr/bin/clang \ | ||
CXX=/usr/bin/clang++ \ | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX:PATH=/tdlib \ | ||
-S /code \ | ||
-B /build | ||
|
||
RUN cmake --build /build --target install | ||
|
||
SAVE ARTIFACT /tdlib/lib/libtdjson.so.1.7.6 AS LOCAL ../aiotdlib/tdlib/linux/${TARGETARCH}/libtdjson.so |
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,4 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
earthly --platform="linux/arm64" +build | ||
earthly --platform="linux/amd64" +build |
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,17 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
git clone https://github.com/pylakey/td | ||
cd td | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_BUILD_TYPE=Release \ | ||
-DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl/ \ | ||
-DCMAKE_INSTALL_PREFIX:PATH=../tdlib \ | ||
-DTD_ENABLE_LTO=ON \ | ||
.. | ||
cmake --build . --target install | ||
cd ../.. | ||
BINARY_DIR="../aiotdlib/tdlib/darwin/$(uname -m)" | ||
mkdir -p "$BINARY_DIR" | ||
mv td/tdlib/lib/libtdjson.1.7.6.dylib "$BINARY_DIR/libtdjson.dylib" | ||
rm -rf td |