@@ -6,9 +6,9 @@ GOMOBILE=$(GOBIN)/gomobile
6
6
GOBIND =env PATH="$(GOBIN ) :$(PATH ) " "$(GOMOBILE ) " bind
7
7
IMPORT_PATH =github.com/Jigsaw-Code/outline-go-tun2socks
8
8
9
- .PHONY : android apple linux windows intra clean clean-all
9
+ .PHONY : android apple apple_future linux windows intra clean clean-all
10
10
11
- all : intra android linux apple windows
11
+ all : intra android linux apple windows apple_future
12
12
13
13
# Don't strip Android debug symbols so we can upload them to crash reporting tools.
14
14
ANDROID_BUILD_CMD =$(GOBIND ) -a -ldflags '-w' -target=android -tags android -work
@@ -25,13 +25,17 @@ $(BUILDDIR)/android/tun2socks.aar: $(GOMOBILE)
25
25
mkdir -p " $( BUILDDIR) /android"
26
26
$(ANDROID_BUILD_CMD ) -o " $@ " $(IMPORT_PATH ) /outline/android $(IMPORT_PATH ) /outline/shadowsocks
27
27
28
-
29
28
apple : $(BUILDDIR ) /apple/Tun2socks.xcframework
30
29
31
30
$(BUILDDIR ) /apple/Tun2socks.xcframework : $(GOMOBILE )
32
31
# MACOSX_DEPLOYMENT_TARGET and -iosversion should match what outline-client supports.
33
32
# TODO(fortuna): -s strips symbols and is obsolete. Why are we using it?
34
- export MACOSX_DEPLOYMENT_TARGET=10.14; $(GOBIND) -iosversion=9.0 -target=ios,iossimulator,macos -o $@ -ldflags '-s -w' -bundleid org.outline.tun2socks $(IMPORT_PATH)/outline/apple $(IMPORT_PATH)/outline/shadowsocks
33
+ export MACOSX_DEPLOYMENT_TARGET=10.14; $(GOBIND) -iosversion=11.0 -target=ios,iossimulator,macos -o $@ -ldflags '-s -w' -bundleid org.outline.tun2socks $(IMPORT_PATH)/outline/apple $(IMPORT_PATH)/outline/shadowsocks
34
+
35
+ apple_future : $(BUILDDIR ) /apple_future/Tun2socks.xcframework
36
+
37
+ $(BUILDDIR ) /apple_future/Tun2socks.xcframework : $(GOMOBILE )
38
+ $(GOBIND ) -iosversion=13.1 -target=ios,iossimulator,maccatalyst -o $@ -ldflags ' -s -w' -bundleid org.outline.tun2socks $(IMPORT_PATH ) /outline/apple $(IMPORT_PATH ) /outline/shadowsocks
35
39
36
40
37
41
XGO =$(GOBIN ) /xgo
0 commit comments