1local architecture = $(HAIKU_PACKAGING_ARCHS[1]) ; 2 3 4local haikuDevelPackage = haiku_devel.hpkg ; 5HaikuPackage $(haikuDevelPackage) ; 6 7local arch = $(TARGET_ARCH) ; 8 9# glue code 10AddFilesToPackage develop lib : 11 <src!system!glue!arch!$(arch)!$(architecture)>crti.o 12 <src!system!glue!arch!$(arch)!$(architecture)>crtn.o 13 <src!system!glue!$(architecture)>init_term_dyn.o 14 <src!system!glue!$(architecture)>start_dyn.o 15 <src!system!glue!$(architecture)>haiku_version_glue.o 16 ; 17 18# kernel 19AddFilesToPackage develop lib : kernel.so : _KERNEL_ ; 20 21# additional libraries 22local developmentLibs = 23 <revisioned>libroot_debug.so 24 <revisioned>libroot_guarded.so 25 ; 26 27AddFilesToPackage lib : $(developmentLibs) ; 28 29# library symlinks 30local lib ; 31for lib in [ HaikuImageGetSystemLibs ] $(developmentLibs) { 32 AddSymlinkToPackage develop lib : /system/lib $(lib:BS) ; 33 local abiVersion = [ on $(lib) return $(HAIKU_LIB_ABI_VERSION) ] ; 34 if $(abiVersion) { 35 local abiVersionedLib = $(lib:BS).$(abiVersion) ; 36 AddSymlinkToPackage develop lib 37 : /system/lib $(abiVersionedLib) ; 38 } 39} 40 41# static libraries 42AddFilesToPackage develop lib : libcolumnlistview.a 43 <$(architecture)>liblocalestub.a libshared.a ; 44 45# the POSIX error code mapper library 46AddFilesToPackage develop lib : libposix_error_mapper.a ; 47 48# ABI independent stuff 49 50# headers 51AddHeaderDirectoryToPackage config ; 52AddHeaderDirectoryToPackage glibc ; 53AddHeaderDirectoryToPackage libs alm ; 54AddHeaderDirectoryToPackage os ; 55AddHeaderDirectoryToPackage posix ; 56 57# private headers 58AddHeaderDirectoryToPackage private ; 59CopyDirectoryToPackage develop headers private libs compat 60 : [ FDirName $(HAIKU_TOP) src libs compat freebsd_network ] 61 : : -x *.c -x *.cpp -x *.awk -x Jamfile -x miidevs ; 62CopyDirectoryToPackage develop headers private libs compat 63 : [ FDirName $(HAIKU_TOP) src libs compat freebsd_wlan ] 64 : : -x *.c -x Jamfile ; 65 66# create be -> os symlink for now 67AddSymlinkToPackage develop headers : os : be ; 68 69# BSD and GNU compatibility headers 70AddHeaderDirectoryToPackage compatibility bsd : bsd ; 71AddHeaderDirectoryToPackage compatibility gnu : gnu ; 72 73# cpp headers 74if $(HAIKU_GCC_VERSION_$(architecture)[1]) = 2 { 75 # GCC 2 only -- for GCC 4 they come with the gcc package 76 CopyDirectoryToPackage develop headers c++ 77 : [ FDirName $(HAIKU_TOP) headers cpp ] : 2.95.3 ; 78} 79 80 81# Deskbar menu symlinks 82AddSymlinkToPackage data deskbar menu Applications 83 : ../../../../apps/Debugger : Debugger ; 84 85# Debugging tools 86SEARCH on leak_analyser.sh = [ FDirName $(HAIKU_TOP) src bin ] ; 87AddFilesToPackage bin : leak_analyser.sh ; 88 89BuildHaikuPackage $(haikuDevelPackage) : haiku_devel ; 90