b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- a/CMakeLists.txt |
2 | +++ b/CMakeLists.txt | ||||
3 | @@ -93,34 +93,67 @@ set(ZLIB_PUBLIC_HDRS | ||||
4 | ${CMAKE_CURRENT_BINARY_DIR}/zconf.h | ||||
5 | zlib.h | ||||
6 | ) | ||||
7 | -set(ZLIB_PRIVATE_HDRS | ||||
8 | - crc32.h | ||||
9 | - deflate.h | ||||
10 | - gzguts.h | ||||
11 | - inffast.h | ||||
12 | - inffixed.h | ||||
13 | - inflate.h | ||||
14 | - inftrees.h | ||||
15 | - trees.h | ||||
16 | - zutil.h | ||||
17 | -) | ||||
18 | -set(ZLIB_SRCS | ||||
19 | - adler32.c | ||||
20 | - compress.c | ||||
21 | - crc32.c | ||||
22 | - deflate.c | ||||
23 | - gzclose.c | ||||
24 | - gzlib.c | ||||
25 | - gzread.c | ||||
26 | - gzwrite.c | ||||
27 | - inflate.c | ||||
28 | - infback.c | ||||
29 | - inftrees.c | ||||
30 | - inffast.c | ||||
31 | - trees.c | ||||
32 | - uncompr.c | ||||
33 | - zutil.c | ||||
34 | -) | ||||
35 | + | ||||
36 | +if(ARMv8) | ||||
37 | + set(ZLIB_PRIVATE_HDRS | ||||
38 | + crc32.h | ||||
39 | + deflate.h | ||||
40 | + gzguts.h | ||||
41 | + inffast.h | ||||
42 | + inffixed.h | ||||
43 | + inflate.h | ||||
44 | + inftrees.h | ||||
45 | + trees.h | ||||
46 | + zutil.h | ||||
47 | + contrib/arm/chunkcopy.h | ||||
48 | + ) | ||||
49 | + set(ZLIB_SRCS | ||||
50 | + adler32.c | ||||
51 | + compress.c | ||||
52 | + crc32.c | ||||
53 | + deflate.c | ||||
54 | + gzclose.c | ||||
55 | + gzlib.c | ||||
56 | + gzread.c | ||||
57 | + gzwrite.c | ||||
58 | + infback.c | ||||
59 | + inftrees.c | ||||
60 | + contrib/arm/inflate.c | ||||
61 | + contrib/arm/inffast.c | ||||
62 | + trees.c | ||||
63 | + uncompr.c | ||||
64 | + zutil.c | ||||
65 | + ) | ||||
66 | + else() | ||||
67 | + set(ZLIB_PRIVATE_HDRS | ||||
68 | + crc32.h | ||||
69 | + deflate.h | ||||
70 | + gzguts.h | ||||
71 | + inffast.h | ||||
72 | + inffixed.h | ||||
73 | + inflate.h | ||||
74 | + inftrees.h | ||||
75 | + trees.h | ||||
76 | + zutil.h | ||||
77 | + ) | ||||
78 | + set(ZLIB_SRCS | ||||
79 | + adler32.c | ||||
80 | + compress.c | ||||
81 | + crc32.c | ||||
82 | + deflate.c | ||||
83 | + gzclose.c | ||||
84 | + gzlib.c | ||||
85 | + gzread.c | ||||
86 | + gzwrite.c | ||||
87 | + inflate.c | ||||
88 | + infback.c | ||||
89 | + inftrees.c | ||||
90 | + inffast.c | ||||
91 | + trees.c | ||||
92 | + uncompr.c | ||||
93 | + zutil.c | ||||
94 | + ) | ||||
95 | +endif() | ||||
96 | |||||
97 | if(NOT MINGW) | ||||
98 | set(ZLIB_DLL_SRCS |