⛏️ index : haiku.git

SubDir HAIKU_TOP src add-ons kernel file_systems userlandfs server fuse ;

local userlandFSTop = [ FDirName $(HAIKU_TOP) src add-ons kernel
	file_systems userlandfs ] ;
local userlandFSIncludes = [ PrivateHeaders userlandfs ] ;

UsePrivateHeaders kernel shared ;
SubDirSysHdrs [ FDirName $(userlandFSIncludes) ] ;
SubDirSysHdrs [ FDirName $(userlandFSIncludes) fuse ] ;
SubDirHdrs [ FDirName $(userlandFSIncludes) private ] ;
SubDirHdrs [ FDirName $(userlandFSIncludes) shared ] ;

# Don't warn on truncation under gcc6+
SubDirC++Flags -Wno-format-truncation ;

SEARCH_SOURCE += [ FDirName $(userlandFSTop) private ] ;
SEARCH_SOURCE += [ FDirName $(userlandFSTop) shared ] ;

DEFINES += USER=1 ;
DEFINES += DEBUG_APP="\\\"libuserlandfs_fuse\\\"" ;
DEFINES += BUILDING_USERLAND_FS_SERVER=1 ;
DEFINES += _FILE_OFFSET_BITS=64 ;
DEFINES += PACKAGE_VERSION=\\\"2.9.9\\\" ;

# the library providing the FUSE interface for add-ons
SharedLibrary libuserlandfs_fuse.so
	:
	fuse_config.c
	fuse_fs.cpp
	fuse_main.cpp
	fuse_opt.c
	fuse_signals.c
	helper.c
	FUSEFileSystem.cpp
	FUSELowLevel.cpp
	FUSEVolume.cpp
	mime_ext_table.c
	:
	<nogrist>userlandfs_server shared be [ TargetLibsupc++ ] [ TargetLibstdc++ ]
;

SEARCH on [ FGristFiles mime_ext_table.c ]
	+= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ;