-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
70 lines (58 loc) · 1.89 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
all: sixcommon wireguard aab
sixcommon:
@if test -d "six-common"; then \
if test ! -d "app/six-common" || test "six-common" -nt "app/six-common/marker"; then \
echo "Building six-common..."; \
cd six-common && make get gen && cd ../ ; \
cd six-common && flutter build aar --no-profile && cd ../ ; \
mkdir -p app/six-common; \
cp -r six-common/build/host/outputs/repo app/six-common; \
touch app/six-common/marker; \
fi \
fi
sixcommon-fvm:
@if test -d "six-common"; then \
if test ! -d "app/six-common" || test "six-common" -nt "app/six-common/marker"; then \
echo "Building six-common..."; \
cd six-common && make get gen && cd ../ ; \
cd six-common && fvm flutter build aar --no-profile && cd ../ ; \
mkdir -p app/six-common; \
cp -r six-common/build/host/outputs/repo app/six-common; \
touch app/six-common/marker; \
fi \
fi
wireguard:
@if test -d "wireguard-android"; then \
if test ! -d "app/wireguard-android/lib" || test "wireguard-android" -nt "app/wireguard-android/lib/marker"; then \
echo "Building wireguard-android..."; \
cd wireguard-android && ./gradlew tunnel:build && cd ../ ; \
mkdir -p app/wireguard-android/lib; \
cp wireguard-android/tunnel/build/outputs/aar/tunnel-release.aar app/wireguard-android/lib/wg-tunnel.aar; \
touch app/wireguard-android/lib/marker; \
fi \
fi
pull-sixcommon:
@cd six-common; \
git pull; \
cd ../
devsc: pull-sixcommon clean-sixcommon sixcommon
devsc-fvm: pull-sixcommon clean-sixcommon sixcommon-fvm
apk:
./gradlew assembleSixRelease;
aab:
./gradlew bundleSixRelease;
aabfamily:
./gradlew bundleFamilyRelease;
clean:
@rm -rf app/six-common; \
rm -rf app/wireguard-android/lib; \
./gradlew clean; \
cd six-common && flutter clean; \
cd ..; \
cd wireguard-android && ./gradlew clean; \
clean-sixcommon:
@rm -rf app/six-common; \
install:
./gradlew installSixRelease
test:
./gradlew testSixRelease