depot/third_party/nixpkgs/pkgs/os-specific/darwin/apple-source-releases/removefile/meson.build.in

43 lines
1.5 KiB
Meson
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Build settings based on the upstream Xcode project.
# See: https://github.com/apple-oss-distributions/removefile/blob/main/removefile.xcodeproj/project.pbxproj
# Project settings
project('removefile', 'c', version : '@version@')
# Dependencies
cc = meson.get_compiler('c')
# Libraries
library(
'removefile',
c_args : [
'-D__DARWIN_NOW_CANCELABLE=1',
# Define these flags for the 10.12 SDK assuming that users on older systems cant encounter dataless files.
# https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/stat.h#L520
'-DSF_DATALESS=0x40000000',
# https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/resource.h#L598
'-DIOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES=3',
# https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/resource.h#L640
'-DIOPOL_MATERIALIZE_DATALESS_FILES_OFF=1',
# https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/attr.h#L562
# '-DATTR_CMNEXT_LINKID=0x00000010',
],
install : true,
sources : [
'removefile.c',
'removefile_random.c',
'removefile_rename_unlink.c',
'removefile_sunlink.c',
'removefile_tree_walker.c',
],
)
install_headers(
'checkint.h',
'removefile.h',
)
install_man(
'checkint.3',
'removefile.3',
)