-
Notifications
You must be signed in to change notification settings - Fork 40
grpc-native: Add support for iOS #458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3b7f3d3
grpc-native: Add support for iOS
Jozott00 83aa3f1
protobuf-native: Add support for iOS/arm64
Jozott00 88c8577
grpc-native: Add support for iOS/arm64
Jozott00 a57d438
grpc-native: Finish iOS support
Jozott00 5d38167
grpc-native: Add build_all_targets.sh
Jozott00 2ece62f
grpc-native: Add ios/x64 support
Jozott00 20a5ab7
grpc-native: One build task per platform target
Jozott00 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,4 +1,4 @@ | ||
# we build the cc_static library bundled with all dependencies | ||
build --experimental_cc_static_library | ||
build --experimental_cc_static_library --experimental_platform_in_output_dir | ||
|
||
build:release --compilation_mode=opt --strip=always |
This file contains hidden or 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 |
---|---|---|
|
@@ -12,3 +12,5 @@ | |
/.aswb/ | ||
/.clwb/ | ||
.idea/ | ||
|
||
out/ |
This file contains hidden or 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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,36 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
# | ||
|
||
set -Eeuo pipefail | ||
trap 'echo "ERROR: Build failed at ${BASH_SOURCE}:${LINENO}" >&2' ERR | ||
|
||
# Builds a static library for a specific platform (os/arch). | ||
# | ||
# Usage: | ||
# ./build_target.sh //path:libtarget out_dir <platform> <short> <os> | ||
# Example: | ||
# ./build_target.sh :protowire_static out @build_bazel_apple_support//platforms:ios_arm64 ios_arm64 ios | ||
# | ||
# The example will produce ./out/libprotowire_static.ios_arm64.a | ||
|
||
LABEL="${1:?need bazel target label}" | ||
DST="${2:?need output destination}" | ||
PLATFORM="${3:?need a platform for bazel build command}" | ||
OS="${4:?need the operating system of the target platform}" | ||
|
||
CONFIG=release | ||
|
||
mkdir -p $(dirname "$DST") | ||
|
||
echo "==> Building $LABEL to $DST" >&2 | ||
bazel build "$LABEL" --platforms="$PLATFORM" --apple_platform_type="$OS" --config="$CONFIG" --announce_rc >/dev/null | ||
|
||
# Ask Bazel what file(s) this target produced under this platform | ||
out="$(bazel cquery "$LABEL" --platforms="$PLATFORM" --apple_platform_type="$OS" --config="$CONFIG" --output=files | head -n1)" | ||
[[ -n "$out" ]] || { echo "No output for $LABEL ($SHORT)"; exit 1; } | ||
|
||
cp -f "$out" "$DST" | ||
|
||
echo "Done. Binary written to: $DST" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.