1 # Build settings based on the upstream Xcode project.
2 # See: https://github.com/apple-oss-distributions/copyfile/blob/main/copyfile.xcodeproj/project.pbxproj
5 project('copyfile', 'c', version : '@version@')
9 cc = meson.get_compiler('c')
16 '-D__DARWIN_NOW_CANCELABLE=1',
17 # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/clonefile.h#L35
19 # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/kdebug.h#L691
21 # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/libkern/os/base.h#L129
22 '-DOS_FALLTHROUGH=__attribute__((__fallthrough__))',
37 'xattr_name_with_flags.3',