haiku/build/jam/packages/UserlandFS

56 lines
1.3 KiB
Plaintext
Raw Normal View History

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 ;