fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / os-specific / darwin / apple-source-releases / removefile / meson.build.in
blob672a15a40b8e3a1022715ce1341f4224bcf7b9fa
1 # Build settings based on the upstream Xcode project.
2 # See: https://github.com/apple-oss-distributions/removefile/blob/main/removefile.xcodeproj/project.pbxproj
4 # Project settings
5 project('removefile', 'c', version : '@version@')
8 # Dependencies
9 cc = meson.get_compiler('c')
12 # Libraries
13 library(
14     'removefile',
15     c_args : [
16         '-D__DARWIN_NOW_CANCELABLE=1',
17         # Define these flags for the 10.12 SDK assuming that users on older systems can’t encounter dataless files.
18         # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/stat.h#L520
19         '-DSF_DATALESS=0x40000000',
20         # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/resource.h#L598
21         '-DIOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES=3',
22         # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/resource.h#L640
23         '-DIOPOL_MATERIALIZE_DATALESS_FILES_OFF=1',
24         # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/attr.h#L562
25         # '-DATTR_CMNEXT_LINKID=0x00000010',
26     ],
27     install : true,
28     sources : [
29         'removefile.c',
30         'removefile_random.c',
31         'removefile_rename_unlink.c',
32         'removefile_sunlink.c',
33         'removefile_tree_walker.c',
34     ],
36 install_headers(
37     'checkint.h',
38     'removefile.h',
40 install_man(
41     'checkint.3',
42     'removefile.3',