@@ -7,9 +7,9 @@ GOBIND=env PATH="$(GOBIN):$(PATH)" "$(GOMOBILE)" bind
7
7
IMPORT_HOST =github.com
8
8
IMPORT_PATH =$(IMPORT_HOST ) /Jigsaw-Code/outline-go-tun2socks
9
9
10
- .PHONY : android apple apple_future linux windows intra clean clean-all
10
+ .PHONY : android apple linux windows intra clean clean-all
11
11
12
- all : intra android linux apple windows apple_future
12
+ all : intra android linux apple windows
13
13
14
14
# Don't strip Android debug symbols so we can upload them to crash reporting tools.
15
15
ANDROID_BUILD_CMD =$(GOBIND ) -a -ldflags '-w' -target=android -tags android -work
@@ -26,18 +26,20 @@ $(BUILDDIR)/android/tun2socks.aar: $(GOMOBILE)
26
26
mkdir -p " $( BUILDDIR) /android"
27
27
$(ANDROID_BUILD_CMD ) -o " $@ " $(IMPORT_PATH ) /outline/tun2socks $(IMPORT_PATH ) /outline/shadowsocks
28
28
29
- apple : $(BUILDDIR ) /apple/Tun2socks.xcframework
29
+ # TODO(fortuna): -s strips symbols and is obsolete. Why are we using it?
30
+ $(BUILDDIR ) /ios/Tun2socks.xcframework : $(GOMOBILE )
31
+ # -iosversion should match what outline-client supports.
32
+ $(GOBIND) -iosversion=11.0 -target=ios,iossimulator -o $@ -ldflags '-s -w' -bundleid org.outline.tun2socks $(IMPORT_PATH)/outline/tun2socks $(IMPORT_PATH)/outline/shadowsocks
30
33
31
- $(BUILDDIR ) /apple /Tun2socks.xcframework : $(GOMOBILE )
34
+ $(BUILDDIR ) /macos /Tun2socks.xcframework : $(GOMOBILE )
32
35
# MACOSX_DEPLOYMENT_TARGET and -iosversion should match what outline-client supports.
33
- # TODO(fortuna): -s strips symbols and is obsolete. Why are we using it?
34
- 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/tun2socks $(IMPORT_PATH)/outline/shadowsocks
35
-
36
- apple_future : $(BUILDDIR ) /apple_future/Tun2socks.xcframework
36
+ export MACOSX_DEPLOYMENT_TARGET=10.14; $(GOBIND) -iosversion=13.1 -target=macos,maccatalyst -o $@ -ldflags '-s -w' -bundleid org.outline.tun2socks $(IMPORT_PATH)/outline/tun2socks $(IMPORT_PATH)/outline/shadowsocks
37
37
38
- $(BUILDDIR ) /apple_future/Tun2socks.xcframework : $(GOMOBILE )
39
- $(GOBIND ) -iosversion=13.1 -target=ios,iossimulator,maccatalyst -o $@ -ldflags ' -s -w' -bundleid org.outline.tun2socks $(IMPORT_PATH ) /outline/tun2socks $(IMPORT_PATH ) /outline/shadowsocks
38
+ apple : $(BUILDDIR ) /apple/Tun2socks.xcframework
40
39
40
+ $(BUILDDIR ) /apple/Tun2socks.xcframework : $(BUILDDIR ) /ios/Tun2socks.xcframework $(BUILDDIR ) /macos/Tun2socks.xcframework
41
+ find $^ -name " Tun2socks.framework" -type d | xargs -I {} echo " -framework {} " | \
42
+ xargs xcrun xcodebuild -create-xcframework -output " $@ "
41
43
42
44
XGO =$(GOBIN ) /xgo
43
45
TUN2SOCKS_VERSION =v1.16.11
0 commit comments