haiku/build/jam/packages/UserlandFS
PulkoMandy 364d52c513 userlandfs: add a pkg-config file for the fuse compatibility
This makes it a little simpler to build FUSE software with userlandfs.

Change-Id: I2a7e5494b7dc8db01e4c150de3fcdb99506ce119
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5197
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2022-04-22 09:43:53 +00:00

56 lines
1.3 KiB
Plaintext

local architecture = $(HAIKU_PACKAGING_ARCHS[1]) ;
local userlandFSPackage = userland_fs.hpkg ;
HaikuPackage $(userlandFSPackage) ;
# kernel module
AddFilesToPackage add-ons kernel file_systems : userlandfs ;
# server
AddFilesToPackage servers : userlandfs_server ;
# libs
local userlandfsLibs = [ FFilterByBuildFeatures
libuserlandfs_beos_kernel.so
libuserlandfs_haiku_kernel.so
libuserlandfs_fuse.so
]
;
AddLibrariesToPackage lib : $(userlandfsLibs) ;
# TODO move development stuff to a separate package?
# library symlinks
local lib ;
for lib in $(userlandfsLibs) {
AddSymlinkToPackage develop lib : /system/lib/$(lib:BS) ;
}
# FUSE headers
local fuseHeaders =
fuse_common_compat.h
fuse_common.h
fuse_compat.h
fuse.h
fuse_lowlevel_compat.h
fuse_lowlevel.h
fuse_opt.h
;
fuseHeaders = $(fuseHeaders:G=userlandfs!fuse) ;
SEARCH on $(fuseHeaders)
= [ FDirName $(HAIKU_TOP) headers private userlandfs fuse ] ;
AddFilesToPackage develop headers userlandfs fuse : $(fuseHeaders) ;
# Pkg-config file (for ease of use with software designed for the original FUSE)
local fusePkgConfig = fuse.pc ;
fusePkgConfig = $(fusePkgConfig:G=userlandfs!fuse) ;
SEARCH on $(fusePkgConfig) = [ FDirName $(HAIKU_TOP) data develop ] ;
AddFilesToPackage develop lib pkgconfig : $(fusePkgConfig) ;
BuildHaikuPackage $(userlandFSPackage) : userland_fs ;