1 # Build settings based on the upstream Xcode project.
2 # See: https://github.com/apple-oss-distributions/removefile/blob/main/removefile.xcodeproj/project.pbxproj
5 project('removefile', 'c', version : '@version@')
9 cc = meson.get_compiler('c')
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',
30 'removefile_random.c',
31 'removefile_rename_unlink.c',
32 'removefile_sunlink.c',
33 'removefile_tree_walker.c',