jql: 8.0.0 -> 8.0.2 (#362884)
[NixPkgs.git] / pkgs / os-specific / darwin / apple-source-releases / copyfile / meson.build.in
blob79ea8d5bf7cedf872cfe40b506a1ba7344eca706
1 # Build settings based on the upstream Xcode project.
2 # See: https://github.com/apple-oss-distributions/copyfile/blob/main/copyfile.xcodeproj/project.pbxproj
4 # Project settings
5 project('copyfile', 'c', version : '@version@')
8 # Dependencies
9 cc = meson.get_compiler('c')
12 # Libraries
13 library(
14     'copyfile',
15     c_args : [
16         '-D__DARWIN_NOW_CANCELABLE=1',
17         # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/clonefile.h#L35
18         '-DCLONE_ACL=0x0004',
19         # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/kdebug.h#L691
20         '-DDBG_DECMP=0x12',
21         # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/libkern/os/base.h#L129
22         '-DOS_FALLTHROUGH=__attribute__((__fallthrough__))',
23     ],
24     install : true,
25     sources : [
26         'copyfile.c',
27         'xattr_flags.c',
28     ],
30 install_headers(
31     'copyfile.h',
32     'xattr_flags.h',
33     'xattr_properties.h',
35 install_man(
36     'copyfile.3',
37     'xattr_name_with_flags.3',