File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ $(GOBIN)/gobind: go.mod go.sum
156
156
157
157
$(LIBTAILSCALE ) : Makefile android/libs $(shell find libtailscale -name * .go) go.mod go.sum $(GOBIN ) /gomobile
158
158
$(GOBIN ) /gomobile bind -target android -androidapi 26 \
159
+ -tags " $$ (./build-tags.sh)" \
159
160
-ldflags " $( FULL_LDFLAGS) " \
160
161
-o $@ ./libtailscale
161
162
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [[ -z " $TOOLCHAIN_DIR " ]]; then
4
+ # By default, if TOOLCHAIN_DIR is unset, we assume we're
5
+ # using the Tailscale Go toolchain (github.com/tailscale/go)
6
+ # at the revision specified by go.toolchain.rev. If so,
7
+ # we tell our caller to use the "tailscale_go" build tag.
8
+ echo " tailscale_go"
9
+ else
10
+ # Otherwise, if TOOLCHAIN_DIR is specified, we assume
11
+ # we're F-Droid or something using a stock Go toolchain.
12
+ # That's fine. But we don't set the tailscale_go build tag.
13
+ # Return some no-op build tag that's non-empty for clarity
14
+ # when debugging.
15
+ echo " not_tailscale_go"
16
+ fi
You can’t perform that action at this time.
0 commit comments