mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-23 19:36:26 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
48 lines
1.1 KiB
Python
48 lines
1.1 KiB
Python
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
|
|
|
|
filegroup(
|
|
name = "yasm_sources",
|
|
srcs = glob([
|
|
"yasm-1.3.0/**/*"
|
|
]),
|
|
)
|
|
|
|
genrule(
|
|
name = "yasm",
|
|
srcs = [
|
|
":yasm_sources",
|
|
"@cmake_tar_gz//file",
|
|
],
|
|
cmd_bash =
|
|
"""
|
|
set -x
|
|
core_count=`PATH="$$PATH:/usr/sbin" sysctl -n hw.logicalcpu`
|
|
BUILD_DIR="$(RULEDIR)/build"
|
|
rm -rf "$$BUILD_DIR"
|
|
mkdir -p "$$BUILD_DIR"
|
|
|
|
CMAKE_DIR="$$(pwd)/$$BUILD_DIR/cmake"
|
|
rm -rf "$$CMAKE_DIR"
|
|
mkdir -p "$$CMAKE_DIR"
|
|
tar -xf "$(location @cmake_tar_gz//file)" -C "$$CMAKE_DIR"
|
|
|
|
SOURCE_PATH="third-party/yasm/yasm-1.3.0"
|
|
cp -R "$$SOURCE_PATH" "$$BUILD_DIR/"
|
|
|
|
pushd "$$BUILD_DIR/yasm-1.3.0"
|
|
mkdir build
|
|
cd build
|
|
PATH="$$CMAKE_DIR/cmake-4.1.2-macos-universal/CMake.app/Contents/bin:$$PATH" cmake .. -DYASM_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DPYTHON_EXECUTABLE="$$(which python3)"
|
|
make -j $$core_count
|
|
popd
|
|
|
|
tar -cf "$(location yasm.tar)" -C "$$BUILD_DIR/yasm-1.3.0/build" .
|
|
""",
|
|
outs = [
|
|
"yasm.tar",
|
|
],
|
|
visibility = [
|
|
"//visibility:public",
|
|
]
|
|
)
|