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 = <revisioned>libroot_debug.so ; 23AddFilesToPackage lib : $(developmentLibs) ; 24 25# library symlinks 26local lib ; 27for lib in [ HaikuImageGetSystemLibs ] $(developmentLibs) { 28 AddSymlinkToPackage develop lib : /system/lib $(lib:BS) ; 29 local abiVersion = [ on $(lib) return $(HAIKU_LIB_ABI_VERSION) ] ; 30 if $(abiVersion) { 31 local abiVersionedLib = $(lib:BS).$(abiVersion) ; 32 AddSymlinkToPackage develop lib 33 : /system/lib $(abiVersionedLib) ; 34 } 35} 36 37# static libraries 38AddFilesToPackage develop lib : <$(architecture)>liblocalestub.a ; 39 40# the POSIX error code mapper library 41AddFilesToPackage develop lib : libposix_error_mapper.a ; 42 43# ABI independent stuff 44 45# headers 46AddHeaderDirectoryToPackage config ; 47AddHeaderDirectoryToPackage glibc ; 48AddHeaderDirectoryToPackage os ; 49AddHeaderDirectoryToPackage posix ; 50 51# private headers 52AddHeaderDirectoryToPackage private ; 53CopyDirectoryToPackage develop headers private libs compat 54 : [ FDirName $(HAIKU_TOP) src libs compat freebsd_network ] 55 : : -x *.c -x *.cpp -x *.awk -x Jamfile -x miidevs ; 56CopyDirectoryToPackage develop headers private libs compat 57 : [ FDirName $(HAIKU_TOP) src libs compat freebsd_wlan ] 58 : : -x *.c -x Jamfile ; 59 60# create be -> os symlink for now 61AddSymlinkToPackage develop headers : os : be ; 62 63# BSD and GNU compatibility headers 64AddHeaderDirectoryToPackage compatibility bsd : bsd ; 65AddHeaderDirectoryToPackage compatibility gnu : gnu ; 66 67# third party libs headers 68if ! $(HAIKU_BOOTSTRAP_BUILD) { 69 AddHeaderDirectoryToPackage libs tiff : 3rdparty ; 70} 71 72# cpp headers 73if $(HAIKU_GCC_VERSION_$(architecture)[1]) = 2 { 74 # GCC 2 only -- for GCC 4 they come with the gcc package 75 CopyDirectoryToPackage develop headers c++ 76 : [ FDirName $(HAIKU_TOP) headers cpp ] : 2.95.3 ; 77} 78 79# OpenGL headers 80if $(TARGET_ARCH) = x86 && ! $(HAIKU_BOOTSTRAP_BUILD) { 81 local mesaGlHeaders 82 = [ FDirName [ BuildFeatureAttribute mesa : headers : path ] GL ] ; 83 local mesaGlHeadersDependency = [ BuildFeatureAttribute mesa : headers ] ; 84 mesaGlHeaders = $(mesaGlHeaders:G=$(mesaGlHeadersDependency:G)) ; 85 Depends $(mesaGlHeaders) : $(mesaGlHeadersDependency) ; 86 CopyDirectoryToPackage develop headers os opengl 87 : $(mesaGlHeaders) : : : isTarget ; 88} 89 90# Deskbar menu symlinks 91AddSymlinkToPackage data deskbar menu Applications 92 : ../../../../apps/Debugger : Debugger ; 93 94BuildHaikuPackage $(haikuDevelPackage) : haiku_devel ; 95