@@ -6,29 +6,37 @@ add_targets:
6
6
@echo " add_targets"
7
7
rustup target add aarch64-apple-ios aarch64-apple-ios-sim x86_64-apple-ios
8
8
9
- build :
9
+ compile :
10
10
@echo " build aarch64-apple-ios"
11
- @cargo build --release --target aarch64-apple-ios
12
- @cp target/aarch64-apple-ios/release/lib$(TARGET ) .a target/lib$(TARGET ) -ios.a
11
+ @# @cargo build --release --target aarch64-apple-ios
12
+ @cargo build --target aarch64-apple-ios
13
+ @# @cp target/aarch64-apple-ios/release/lib$(TARGET).a target/lib$(TARGET)-ios.a
14
+ @cp target/aarch64-apple-ios/debug/lib$(TARGET ) .a target/lib$(TARGET ) -ios.a
13
15
14
16
ifeq ($(SKIP_SIM ) ,false)
15
17
@echo "build aarch64-apple-ios-sim"
16
- @cargo build --release --target aarch64-apple-ios-sim
18
+ @# @cargo build --release --target aarch64-apple-ios-sim
19
+ @cargo build --target aarch64-apple-ios-sim
17
20
18
21
@echo "build x86_64-apple-ios"
19
- @cargo build --release --target x86_64-apple-ios
22
+ @# @cargo build --release --target x86_64-apple-ios
23
+ @cargo build --target x86_64-apple-ios
20
24
21
25
@echo "lipo"
26
+ @# @lipo -create \
27
+ @# -output target/lib$(TARGET)-sim.a \
28
+ @# target/aarch64-apple-ios-sim/release/lib$(TARGET).a \
29
+ @# target/x86_64-apple-ios/release/lib$(TARGET).a
22
30
@lipo -create \
23
31
-output target/lib$(TARGET)-sim.a \
24
- target/aarch64-apple-ios-sim/release /lib$(TARGET).a \
25
- target/x86_64-apple-ios/release /lib$(TARGET).a
32
+ target/aarch64-apple-ios-sim/debug /lib$(TARGET).a \
33
+ target/x86_64-apple-ios/debug /lib$(TARGET).a
26
34
else
27
35
@echo "skipping sim builds"
28
36
endif
29
37
30
38
# TODO: remove/update once SPM gets merged
31
- copy : build
39
+ copy :
32
40
@echo " SIDESTORE_REPO: $( SIDESTORE_REPO) "
33
41
34
42
@echo "copying libraries"
@@ -40,6 +48,8 @@ copy: build
40
48
41
49
@touch "$(SIDESTORE_REPO)/Dependencies/.skip-prebuilt-fetch-minimuxer"
42
50
51
+ build : compile copy
52
+
43
53
clean :
44
54
@echo " clean"
45
55
@if [ -d " include" ]; then \
58
68
echo "cleaning $(TARGET).xcframework.zip"; \
59
69
rm $(TARGET).xcframework.zip; \
60
70
fi
71
+ @rm -f *.h *.swift
72
+ @rm -f *.a
61
73
62
74
xcframework : build
63
75
@echo " xcframework"
0 commit comments