forked from p7zip-project/p7zip
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build_macos.sh
executable file
·125 lines (123 loc) · 12.9 KB
/
build_macos.sh
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#!/bin/sh
set -e
mkdir -p bin/Codecs
make -C CPP/7zip/Bundles/Alone -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Bundles/Alone -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Bundles/Alone -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Bundles/Alone -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Bundles/Alone/b/m_x64/7za CPP/7zip/Bundles/Alone/b/m_arm64/7za -create -output bin/7za
make -C CPP/7zip/Bundles/Alone2 -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Bundles/Alone2 -f ../../cmpl_mac_x64.mak DISABLE_RAR_COMPRESS=1 DISABLE_PKIMPLODE_COMPRESS=1 -j16
make -C CPP/7zip/Bundles/Alone2 -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Bundles/Alone2 -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- DISABLE_RAR_COMPRESS=1 DISABLE_PKIMPLODE_COMPRESS=1 -j16
lipo CPP/7zip/Bundles/Alone2/b/m_x64/7zz CPP/7zip/Bundles/Alone2/b/m_arm64/7zz -create -output bin/7zz
make -C CPP/7zip/Bundles/Alone7z -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Bundles/Alone7z -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Bundles/Alone7z -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Bundles/Alone7z -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Bundles/Alone7z/b/m_x64/7zr CPP/7zip/Bundles/Alone7z/b/m_arm64/7zr -create -output bin/7zr
make -C CPP/7zip/Bundles/Format7zF -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Bundles/Format7zF -f ../../cmpl_mac_x64.mak DISABLE_RAR_COMPRESS=1 DISABLE_PKIMPLODE_COMPRESS=1 -j16
make -C CPP/7zip/Bundles/Format7zF -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Bundles/Format7zF -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- DISABLE_RAR_COMPRESS=1 DISABLE_PKIMPLODE_COMPRESS=1 -j16
lipo CPP/7zip/Bundles/Format7zF/b/m_x64/7z.so CPP/7zip/Bundles/Format7zF/b/m_arm64/7z.so -create -output bin/7z.so
make -C CPP/7zip/Bundles/SFXCon -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Bundles/SFXCon -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Bundles/SFXCon -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Bundles/SFXCon -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Bundles/SFXCon/b/m_x64/7zCon.sfx CPP/7zip/Bundles/SFXCon/b/m_arm64/7zCon.sfx -create -output bin/7zCon.sfx
make -C CPP/7zip/UI/Client7z -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/UI/Client7z -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/UI/Client7z -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/UI/Client7z -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/UI/Client7z/b/m_x64/7zcl CPP/7zip/UI/Client7z/b/m_arm64/7zcl -create -output bin/7zcl
make -C CPP/7zip/UI/Console -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/UI/Console -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/UI/Console -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/UI/Console -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/UI/Console/b/m_x64/7z CPP/7zip/UI/Console/b/m_arm64/7z -create -output bin/7z
make -C C/Util/7z -f ../../../CPP/7zip/cmpl_mac_x64.mak mkdir && make -C C/Util/7z -f ../../../CPP/7zip/cmpl_mac_x64.mak -j16
make -C C/Util/7z -f ../../../CPP/7zip/cmpl_mac_arm64.mak mkdir && make -C C/Util/7z -f ../../../CPP/7zip/cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo C/Util/7z/b/m_x64/7zdec C/Util/7z/b/m_arm64/7zdec -create -output bin/7zdec
make -C C/Util/Lzma -f ../../../CPP/7zip/cmpl_mac_x64.mak mkdir && make -C C/Util/Lzma -f ../../../CPP/7zip/cmpl_mac_x64.mak -j16
make -C C/Util/Lzma -f ../../../CPP/7zip/cmpl_mac_arm64.mak mkdir && make -C C/Util/Lzma -f ../../../CPP/7zip/cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo C/Util/Lzma/b/m_x64/7lzma C/Util/Lzma/b/m_arm64/7lzma -create -output bin/7lzma
make -C CPP/7zip/Compress/Rar -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Compress/Rar -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Compress/Rar -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Compress/Rar -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Compress/Rar/b/m_x64/Rar.so CPP/7zip/Compress/Rar/b/m_arm64/Rar.so -create -output bin/Codecs/Rar.so
make -C CPP/7zip/Compress/Zstd -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Compress/Zstd -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Compress/Zstd -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Compress/Zstd -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Compress/Zstd/b/m_x64/Zstd.so CPP/7zip/Compress/Zstd/b/m_arm64/Zstd.so -create -output bin/Codecs/Zstd.so
make -C CPP/7zip/Compress/Lz4 -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Compress/Lz4 -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Compress/Lz4 -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Compress/Lz4 -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Compress/Lz4/b/m_x64/Lz4.so CPP/7zip/Compress/Lz4/b/m_arm64/Lz4.so -create -output bin/Codecs/Lz4.so
make -C CPP/7zip/Compress/Lz5 -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Compress/Lz5 -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Compress/Lz5 -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Compress/Lz5 -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Compress/Lz5/b/m_x64/Lz5.so CPP/7zip/Compress/Lz5/b/m_arm64/Lz5.so -create -output bin/Codecs/Lz5.so
make -C CPP/7zip/Compress/Lizard -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Compress/Lizard -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Compress/Lizard -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Compress/Lizard -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Compress/Lizard/b/m_x64/Lizard.so CPP/7zip/Compress/Lizard/b/m_arm64/Lizard.so -create -output bin/Codecs/Lizard.so
make -C CPP/7zip/Compress/Brotli -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Compress/Brotli -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Compress/Brotli -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Compress/Brotli -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Compress/Brotli/b/m_x64/Brotli.so CPP/7zip/Compress/Brotli/b/m_arm64/Brotli.so -create -output bin/Codecs/Brotli.so
make -C CPP/7zip/Compress/FLzma2 -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Compress/FLzma2 -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Compress/FLzma2 -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Compress/FLzma2 -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Compress/FLzma2/b/m_x64/FLzma2.so CPP/7zip/Compress/FLzma2/b/m_arm64/FLzma2.so -create -output bin/Codecs/FLzma2.so
make -C CPP/7zip/Compress/Lzham -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Compress/Lzham -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Compress/Lzham -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Compress/Lzham -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Compress/Lzham/b/m_x64/Lzham.so CPP/7zip/Compress/Lzham/b/m_arm64/Lzham.so -create -output bin/Codecs/Lzham.so
make -C CPP/7zip/Compress/PKImplode -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Compress/PKImplode -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Compress/PKImplode -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Compress/PKImplode -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Compress/PKImplode/b/m_x64/PKImplode.so CPP/7zip/Compress/PKImplode/b/m_arm64/PKImplode.so -create -output bin/Codecs/PKImplode.so
make -C CPP/7zip/Compress/Bcm -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Compress/Bcm -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Compress/Bcm -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Compress/Bcm -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Compress/Bcm/b/m_x64/Bcm.so CPP/7zip/Compress/Bcm/b/m_arm64/Bcm.so -create -output bin/Codecs/Bcm.so
make -C CPP/7zip/Compress/Balz -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Compress/Balz -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Compress/Balz -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Compress/Balz -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Compress/Balz/b/m_x64/Balz.so CPP/7zip/Compress/Balz/b/m_arm64/Balz.so -create -output bin/Codecs/Balz.so
make -C CPP/7zip/Compress/Md5 -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Compress/Md5 -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Compress/Md5 -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Compress/Md5 -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Compress/Md5/b/m_x64/Md5.so CPP/7zip/Compress/Md5/b/m_arm64/Md5.so -create -output bin/Codecs/Md5.so
make -C CPP/7zip/Compress/Sha512 -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Compress/Sha512 -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Compress/Sha512 -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Compress/Sha512 -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Compress/Sha512/b/m_x64/Sha512.so CPP/7zip/Compress/Sha512/b/m_arm64/Sha512.so -create -output bin/Codecs/Sha512.so
make -C CPP/7zip/Compress/Xxh64 -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Compress/Xxh64 -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Compress/Xxh64 -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Compress/Xxh64 -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Compress/Xxh64/b/m_x64/Xxh64.so CPP/7zip/Compress/Xxh64/b/m_arm64/Xxh64.so -create -output bin/Codecs/Xxh64.so
make -C CPP/7zip/Compress/Blake3 -f ../../cmpl_mac_x64.mak mkdir && make -C CPP/7zip/Compress/Blake3 -f ../../cmpl_mac_x64.mak -j16
make -C CPP/7zip/Compress/Blake3 -f ../../cmpl_mac_arm64.mak mkdir && make -C CPP/7zip/Compress/Blake3 -f ../../cmpl_mac_arm64.mak CROSS_COMPILE=arm64-apple-darwin- -j16
lipo CPP/7zip/Compress/Blake3/b/m_x64/Blake3.so CPP/7zip/Compress/Blake3/b/m_arm64/Blake3.so -create -output bin/Codecs/Blake3.so
make -C CPP/7zip/Bundles/Alone -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Bundles/Alone -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Bundles/Alone2 -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Bundles/Alone2 -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Bundles/Alone7z -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Bundles/Alone7z -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Bundles/Format7zF -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Bundles/Format7zF -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Bundles/SFXCon -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Bundles/SFXCon -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/UI/Client7z -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/UI/Client7z -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/UI/Console -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/UI/Console -f ../../cmpl_mac_arm64.mak clean
make -C C/Util/7z -f ../../../CPP/7zip/cmpl_mac_x64.mak clean
make -C C/Util/7z -f ../../../CPP/7zip/cmpl_mac_arm64.mak clean
make -C C/Util/Lzma -f ../../../CPP/7zip/cmpl_mac_x64.mak clean
make -C C/Util/Lzma -f ../../../CPP/7zip/cmpl_mac_arm64.mak clean
make -C CPP/7zip/Compress/Rar -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Compress/Rar -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Compress/Zstd -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Compress/Zstd -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Compress/Lz4 -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Compress/Lz4 -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Compress/Lz5 -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Compress/Lz5 -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Compress/Lizard -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Compress/Lizard -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Compress/Brotli -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Compress/Brotli -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Compress/FLzma2 -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Compress/FLzma2 -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Compress/Lzham -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Compress/Lzham -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Compress/PKImplode -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Compress/PKImplode -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Compress/Bcm -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Compress/Bcm -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Compress/Balz -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Compress/Balz -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Compress/Md5 -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Compress/Md5 -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Compress/Sha512 -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Compress/Sha512 -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Compress/Xxh64 -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Compress/Xxh64 -f ../../cmpl_mac_arm64.mak clean
make -C CPP/7zip/Compress/Blake3 -f ../../cmpl_mac_x64.mak clean
make -C CPP/7zip/Compress/Blake3 -f ../../cmpl_mac_arm64.mak clean