-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
172 lines (163 loc) · 6.5 KB
/
meson.build
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
project('libarchive', 'c', version: '3.5.1')
compiler = meson.get_compiler('c')
link_deps = [
dependency('zlib'),
dependency('zstd'),
]
incdirs = ['libarchive']
c_flags = ['-DHAVE_CONFIG_H']
if target_machine.system() == 'windows'
win = import('windows')
link_deps += [
compiler.find_library('mincore'),
]
endif
sources = [
'libarchive/archive_acl.c',
'libarchive/archive_blake2s_ref.c',
'libarchive/archive_blake2sp_ref.c',
'libarchive/archive_check_magic.c',
'libarchive/archive_cmdline.c',
'libarchive/archive_cryptor.c',
'libarchive/archive_digest.c',
'libarchive/archive_disk_acl_darwin.c',
'libarchive/archive_disk_acl_freebsd.c',
'libarchive/archive_disk_acl_linux.c',
'libarchive/archive_disk_acl_sunos.c',
'libarchive/archive_entry.c',
'libarchive/archive_entry_copy_bhfi.c',
'libarchive/archive_entry_copy_stat.c',
'libarchive/archive_entry_link_resolver.c',
'libarchive/archive_entry_sparse.c',
'libarchive/archive_entry_stat.c',
'libarchive/archive_entry_strmode.c',
'libarchive/archive_entry_xattr.c',
'libarchive/archive_getdate.c',
'libarchive/archive_hmac.c',
'libarchive/archive_match.c',
'libarchive/archive_options.c',
'libarchive/archive_pack_dev.c',
'libarchive/archive_pathmatch.c',
'libarchive/archive_ppmd7.c',
'libarchive/archive_ppmd8.c',
'libarchive/archive_random.c',
'libarchive/archive_rb.c',
'libarchive/archive_read.c',
'libarchive/archive_read_add_passphrase.c',
'libarchive/archive_read_append_filter.c',
'libarchive/archive_read_data_into_fd.c',
'libarchive/archive_read_disk_entry_from_file.c',
'libarchive/archive_read_disk_posix.c',
'libarchive/archive_read_disk_set_standard_lookup.c',
'libarchive/archive_read_disk_windows.c',
'libarchive/archive_read_extract.c',
'libarchive/archive_read_extract2.c',
'libarchive/archive_read_open_fd.c',
'libarchive/archive_read_open_file.c',
'libarchive/archive_read_open_filename.c',
'libarchive/archive_read_open_memory.c',
'libarchive/archive_read_set_format.c',
'libarchive/archive_read_set_options.c',
'libarchive/archive_read_support_filter_all.c',
'libarchive/archive_read_support_filter_by_code.c',
'libarchive/archive_read_support_filter_bzip2.c',
'libarchive/archive_read_support_filter_compress.c',
'libarchive/archive_read_support_filter_grzip.c',
'libarchive/archive_read_support_filter_gzip.c',
'libarchive/archive_read_support_filter_lrzip.c',
'libarchive/archive_read_support_filter_lz4.c',
'libarchive/archive_read_support_filter_lzop.c',
'libarchive/archive_read_support_filter_none.c',
'libarchive/archive_read_support_filter_program.c',
'libarchive/archive_read_support_filter_rpm.c',
'libarchive/archive_read_support_filter_uu.c',
'libarchive/archive_read_support_filter_xz.c',
'libarchive/archive_read_support_filter_zstd.c',
'libarchive/archive_read_support_format_7zip.c',
'libarchive/archive_read_support_format_all.c',
'libarchive/archive_read_support_format_ar.c',
'libarchive/archive_read_support_format_by_code.c',
'libarchive/archive_read_support_format_cab.c',
'libarchive/archive_read_support_format_cpio.c',
'libarchive/archive_read_support_format_empty.c',
'libarchive/archive_read_support_format_iso9660.c',
'libarchive/archive_read_support_format_lha.c',
'libarchive/archive_read_support_format_mtree.c',
'libarchive/archive_read_support_format_rar.c',
'libarchive/archive_read_support_format_rar5.c',
'libarchive/archive_read_support_format_raw.c',
'libarchive/archive_read_support_format_tar.c',
'libarchive/archive_read_support_format_warc.c',
'libarchive/archive_read_support_format_xar.c',
'libarchive/archive_read_support_format_zip.c',
'libarchive/archive_string.c',
'libarchive/archive_string_sprintf.c',
'libarchive/archive_util.c',
'libarchive/archive_version_details.c',
'libarchive/archive_virtual.c',
'libarchive/archive_windows.c',
'libarchive/archive_write.c',
'libarchive/archive_write_add_filter.c',
'libarchive/archive_write_add_filter_b64encode.c',
'libarchive/archive_write_add_filter_by_name.c',
'libarchive/archive_write_add_filter_bzip2.c',
'libarchive/archive_write_add_filter_compress.c',
'libarchive/archive_write_add_filter_grzip.c',
'libarchive/archive_write_add_filter_gzip.c',
'libarchive/archive_write_add_filter_lrzip.c',
'libarchive/archive_write_add_filter_lz4.c',
'libarchive/archive_write_add_filter_lzop.c',
'libarchive/archive_write_add_filter_none.c',
'libarchive/archive_write_add_filter_program.c',
'libarchive/archive_write_add_filter_uuencode.c',
'libarchive/archive_write_add_filter_xz.c',
'libarchive/archive_write_add_filter_zstd.c',
'libarchive/archive_write_disk_posix.c',
'libarchive/archive_write_disk_set_standard_lookup.c',
'libarchive/archive_write_disk_windows.c',
'libarchive/archive_write_open_fd.c',
'libarchive/archive_write_open_file.c',
'libarchive/archive_write_open_filename.c',
'libarchive/archive_write_open_memory.c',
'libarchive/archive_write_set_format.c',
'libarchive/archive_write_set_format_7zip.c',
'libarchive/archive_write_set_format_ar.c',
'libarchive/archive_write_set_format_by_name.c',
'libarchive/archive_write_set_format_cpio.c',
'libarchive/archive_write_set_format_cpio_binary.c',
'libarchive/archive_write_set_format_cpio_newc.c',
'libarchive/archive_write_set_format_cpio_odc.c',
'libarchive/archive_write_set_format_filter_by_ext.c',
'libarchive/archive_write_set_format_gnutar.c',
'libarchive/archive_write_set_format_iso9660.c',
'libarchive/archive_write_set_format_mtree.c',
'libarchive/archive_write_set_format_pax.c',
'libarchive/archive_write_set_format_raw.c',
'libarchive/archive_write_set_format_shar.c',
'libarchive/archive_write_set_format_ustar.c',
'libarchive/archive_write_set_format_v7tar.c',
'libarchive/archive_write_set_format_warc.c',
'libarchive/archive_write_set_format_xar.c',
'libarchive/archive_write_set_format_zip.c',
'libarchive/archive_write_set_options.c',
'libarchive/archive_write_set_passphrase.c',
'libarchive/filter_fork_posix.c',
'libarchive/filter_fork_windows.c',
'libarchive/xxhash.c',
]
incdirs = include_directories(incdirs)
libarchive = static_library(
'archive',
sources,
c_args: c_flags,
include_directories: incdirs,
dependencies: link_deps,
)
libarchive_dep = declare_dependency(
include_directories: incdirs,
dependencies: link_deps,
link_with: libarchive,
version: meson.project_version()
)
meson.override_dependency('libarchive', libarchive_dep)
# vim: set ts=4 sts=4 sw=4 et: