forked from p7zip-project/p7zip
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build_linux.sh
executable file
·80 lines (77 loc) · 6.81 KB
/
build_linux.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
#!/bin/sh
set -e
CMPL=${CMPL:-cmpl_gcc_x64}
OUTDIR=${OUTDIR:-g_x64}
mkdir -p bin/Codecs
make -C CPP/7zip/Bundles/Alone -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Bundles/Alone -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Bundles/Alone/b/${OUTDIR}/7za bin/
make -C CPP/7zip/Bundles/Alone2 -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Bundles/Alone2 -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} DISABLE_RAR_COMPRESS=1 DISABLE_PKIMPLODE_COMPRESS=1 -j16
cp CPP/7zip/Bundles/Alone2/b/${OUTDIR}/7zz bin/
make -C CPP/7zip/Bundles/Alone7z -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Bundles/Alone7z -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Bundles/Alone7z/b/${OUTDIR}/7zr bin/
make -C CPP/7zip/Bundles/Format7zF -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Bundles/Format7zF -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} DISABLE_RAR_COMPRESS=1 DISABLE_PKIMPLODE_COMPRESS=1 -j16
cp CPP/7zip/Bundles/Format7zF/b/${OUTDIR}/7z.so bin/
make -C CPP/7zip/Bundles/SFXCon -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Bundles/SFXCon -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Bundles/SFXCon/b/${OUTDIR}/7zCon.sfx bin/
make -C CPP/7zip/UI/Client7z -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/UI/Client7z -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/UI/Client7z/b/${OUTDIR}/7zcl bin/
make -C CPP/7zip/UI/Console -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/UI/Console -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/UI/Console/b/${OUTDIR}/7z bin/
make -C C/Util/7z -f ../../../CPP/7zip/${CMPL}.mak mkdir && make -C C/Util/7z -f ../../../CPP/7zip/${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp C/Util/7z/b/${OUTDIR}/7zdec bin/
make -C C/Util/Lzma -f ../../../CPP/7zip/${CMPL}.mak mkdir && make -C C/Util/Lzma -f ../../../CPP/7zip/${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp C/Util/Lzma/b/${OUTDIR}/7lzma bin/
make -C CPP/7zip/Compress/Rar -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Compress/Rar -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Compress/Rar/b/${OUTDIR}/Rar.so bin/Codecs/
make -C CPP/7zip/Compress/Zstd -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Compress/Zstd -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Compress/Zstd/b/${OUTDIR}/Zstd.so bin/Codecs/
make -C CPP/7zip/Compress/Lz4 -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Compress/Lz4 -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Compress/Lz4/b/${OUTDIR}/Lz4.so bin/Codecs/
make -C CPP/7zip/Compress/Lz5 -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Compress/Lz5 -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Compress/Lz5/b/${OUTDIR}/Lz5.so bin/Codecs/
make -C CPP/7zip/Compress/Lizard -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Compress/Lizard -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Compress/Lizard/b/${OUTDIR}/Lizard.so bin/Codecs/
make -C CPP/7zip/Compress/Brotli -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Compress/Brotli -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Compress/Brotli/b/${OUTDIR}/Brotli.so bin/Codecs/
make -C CPP/7zip/Compress/FLzma2 -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Compress/FLzma2 -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Compress/FLzma2/b/${OUTDIR}/FLzma2.so bin/Codecs/
make -C CPP/7zip/Compress/Lzham -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Compress/Lzham -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Compress/Lzham/b/${OUTDIR}/Lzham.so bin/Codecs/
make -C CPP/7zip/Compress/PKImplode -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Compress/PKImplode -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Compress/PKImplode/b/${OUTDIR}/PKImplode.so bin/Codecs/
make -C CPP/7zip/Compress/Bcm -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Compress/Bcm -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Compress/Bcm/b/${OUTDIR}/Bcm.so bin/Codecs/
make -C CPP/7zip/Compress/Balz -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Compress/Balz -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Compress/Balz/b/${OUTDIR}/Balz.so bin/Codecs/
make -C CPP/7zip/Compress/Md5 -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Compress/Md5 -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Compress/Md5/b/${OUTDIR}/Md5.so bin/Codecs/
make -C CPP/7zip/Compress/Sha512 -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Compress/Sha512 -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Compress/Sha512/b/${OUTDIR}/Sha512.so bin/Codecs/
make -C CPP/7zip/Compress/Xxh64 -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Compress/Xxh64 -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Compress/Xxh64/b/${OUTDIR}/Xxh64.so bin/Codecs/
make -C CPP/7zip/Compress/Blake3 -f ../../${CMPL}.mak mkdir && make -C CPP/7zip/Compress/Blake3 -f ../../${CMPL}.mak CFLAGS_ADDITIONAL="${CFLAGS_ADDITIONAL}" ${FLAGS} -j16
cp CPP/7zip/Compress/Blake3/b/${OUTDIR}/Blake3.so bin/Codecs/
make -C CPP/7zip/Bundles/Alone -f ../../${CMPL}.mak clean
make -C CPP/7zip/Bundles/Alone2 -f ../../${CMPL}.mak clean
make -C CPP/7zip/Bundles/Alone7z -f ../../${CMPL}.mak clean
make -C CPP/7zip/Bundles/Format7zF -f ../../${CMPL}.mak clean
make -C CPP/7zip/Bundles/SFXCon -f ../../${CMPL}.mak clean
make -C CPP/7zip/UI/Client7z -f ../../${CMPL}.mak clean
make -C CPP/7zip/UI/Console -f ../../${CMPL}.mak clean
make -C C/Util/7z -f ../../../CPP/7zip/${CMPL}.mak clean
make -C C/Util/Lzma -f ../../../CPP/7zip/${CMPL}.mak clean
make -C CPP/7zip/Compress/Rar -f ../../${CMPL}.mak clean
make -C CPP/7zip/Compress/Zstd -f ../../${CMPL}.mak clean
make -C CPP/7zip/Compress/Lz4 -f ../../${CMPL}.mak clean
make -C CPP/7zip/Compress/Lz5 -f ../../${CMPL}.mak clean
make -C CPP/7zip/Compress/Lizard -f ../../${CMPL}.mak clean
make -C CPP/7zip/Compress/Brotli -f ../../${CMPL}.mak clean
make -C CPP/7zip/Compress/FLzma2 -f ../../${CMPL}.mak clean
make -C CPP/7zip/Compress/Lzham -f ../../${CMPL}.mak clean
make -C CPP/7zip/Compress/PKImplode -f ../../${CMPL}.mak clean
make -C CPP/7zip/Compress/Bcm -f ../../${CMPL}.mak clean
make -C CPP/7zip/Compress/Balz -f ../../${CMPL}.mak clean
make -C CPP/7zip/Compress/Md5 -f ../../${CMPL}.mak clean
make -C CPP/7zip/Compress/Sha512 -f ../../${CMPL}.mak clean
make -C CPP/7zip/Compress/Xxh64 -f ../../${CMPL}.mak clean
make -C CPP/7zip/Compress/Blake3 -f ../../${CMPL}.mak clean