2013-08-01 10:51:16 +04:00
|
|
|
local architecture = $(HAIKU_PACKAGING_ARCHS[1]) ;
|
|
|
|
|
|
|
|
|
2013-05-05 20:25:31 +04:00
|
|
|
local haikuDevelPackage = haiku_devel.hpkg ;
|
|
|
|
HaikuPackage $(haikuDevelPackage) ;
|
|
|
|
|
|
|
|
local arch = $(TARGET_ARCH) ;
|
|
|
|
|
|
|
|
# glue code
|
2013-08-06 05:29:51 +04:00
|
|
|
AddFilesToPackage develop lib :
|
2013-08-01 10:51:16 +04:00
|
|
|
<src!system!glue!arch!$(arch)!$(architecture)>crti.o
|
|
|
|
<src!system!glue!arch!$(arch)!$(architecture)>crtn.o
|
|
|
|
<src!system!glue!$(architecture)>init_term_dyn.o
|
|
|
|
<src!system!glue!$(architecture)>start_dyn.o
|
|
|
|
<src!system!glue!$(architecture)>haiku_version_glue.o
|
|
|
|
;
|
2013-05-05 20:25:31 +04:00
|
|
|
|
|
|
|
# kernel
|
2013-08-06 05:29:51 +04:00
|
|
|
AddFilesToPackage develop lib : kernel.so : _KERNEL_ ;
|
2013-05-05 20:25:31 +04:00
|
|
|
|
|
|
|
# additional libraries
|
|
|
|
local developmentLibs = <revisioned>libroot_debug.so ;
|
|
|
|
AddFilesToPackage lib : $(developmentLibs) ;
|
|
|
|
|
|
|
|
# library symlinks
|
|
|
|
local lib ;
|
2013-08-06 01:19:24 +04:00
|
|
|
for lib in [ HaikuImageGetSystemLibs ] $(developmentLibs) {
|
2013-08-06 05:29:51 +04:00
|
|
|
AddSymlinkToPackage develop lib : /system/lib $(lib:BS) ;
|
2013-05-05 20:25:31 +04:00
|
|
|
local abiVersion = [ on $(lib) return $(HAIKU_LIB_ABI_VERSION) ] ;
|
|
|
|
if $(abiVersion) {
|
|
|
|
local abiVersionedLib = $(lib:BS).$(abiVersion) ;
|
2013-08-06 05:29:51 +04:00
|
|
|
AddSymlinkToPackage develop lib
|
2013-05-05 20:25:31 +04:00
|
|
|
: /system/lib $(abiVersionedLib) ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# static libraries
|
2013-08-06 05:29:51 +04:00
|
|
|
AddFilesToPackage develop lib : <$(architecture)>liblocalestub.a ;
|
2013-05-05 20:25:31 +04:00
|
|
|
|
|
|
|
# the POSIX error code mapper library
|
2013-08-06 05:29:51 +04:00
|
|
|
AddFilesToPackage develop lib : libposix_error_mapper.a ;
|
2013-05-05 20:25:31 +04:00
|
|
|
|
|
|
|
# ABI independent stuff
|
|
|
|
|
|
|
|
# headers
|
|
|
|
AddHeaderDirectoryToPackage config ;
|
|
|
|
AddHeaderDirectoryToPackage glibc ;
|
|
|
|
AddHeaderDirectoryToPackage os ;
|
|
|
|
AddHeaderDirectoryToPackage posix ;
|
|
|
|
|
|
|
|
# private headers
|
|
|
|
AddHeaderDirectoryToPackage private ;
|
|
|
|
CopyDirectoryToPackage develop headers private libs compat
|
|
|
|
: [ FDirName $(HAIKU_TOP) src libs compat freebsd_network ]
|
|
|
|
: : -x *.c -x *.cpp -x *.awk -x Jamfile -x miidevs ;
|
|
|
|
CopyDirectoryToPackage develop headers private libs compat
|
|
|
|
: [ FDirName $(HAIKU_TOP) src libs compat freebsd_wlan ]
|
|
|
|
: : -x *.c -x Jamfile ;
|
|
|
|
|
|
|
|
# create be -> os symlink for now
|
2013-08-06 05:29:51 +04:00
|
|
|
AddSymlinkToPackage develop headers : os : be ;
|
2013-05-05 20:25:31 +04:00
|
|
|
|
|
|
|
# BSD and GNU compatibility headers
|
|
|
|
AddHeaderDirectoryToPackage compatibility bsd : bsd ;
|
|
|
|
AddHeaderDirectoryToPackage compatibility gnu : gnu ;
|
|
|
|
|
|
|
|
# third party libs headers
|
2013-07-21 05:34:35 +04:00
|
|
|
if ! $(HAIKU_BOOTSTRAP_BUILD) {
|
|
|
|
AddHeaderDirectoryToPackage libs tiff : 3rdparty ;
|
|
|
|
}
|
2013-05-05 20:25:31 +04:00
|
|
|
|
|
|
|
# cpp headers
|
2013-08-01 10:51:16 +04:00
|
|
|
if $(HAIKU_GCC_VERSION_$(architecture)[1]) = 2 {
|
2013-08-06 05:29:51 +04:00
|
|
|
# GCC 2 only -- for GCC 4 they come with the gcc package
|
|
|
|
CopyDirectoryToPackage develop headers c++
|
2013-05-05 20:25:31 +04:00
|
|
|
: [ FDirName $(HAIKU_TOP) headers cpp ] : 2.95.3 ;
|
|
|
|
}
|
|
|
|
|
|
|
|
# OpenGL headers
|
2013-07-21 05:34:35 +04:00
|
|
|
if $(TARGET_ARCH) = x86 && ! $(HAIKU_BOOTSTRAP_BUILD) {
|
2013-06-13 20:46:34 +04:00
|
|
|
local mesaGlHeaders
|
|
|
|
= [ FDirName [ BuildFeatureAttribute mesa : headers : path ] GL ] ;
|
|
|
|
local mesaGlHeadersDependency = [ BuildFeatureAttribute mesa : headers ] ;
|
|
|
|
mesaGlHeaders = $(mesaGlHeaders:G=$(mesaGlHeadersDependency:G)) ;
|
|
|
|
Depends $(mesaGlHeaders) : $(mesaGlHeadersDependency) ;
|
2013-08-06 05:29:51 +04:00
|
|
|
CopyDirectoryToPackage develop headers os opengl
|
2013-06-08 02:55:12 +04:00
|
|
|
: $(mesaGlHeaders) : : : isTarget ;
|
2013-05-05 20:25:31 +04:00
|
|
|
}
|
|
|
|
|
2013-06-29 16:57:56 +04:00
|
|
|
# Deskbar menu symlinks
|
|
|
|
AddSymlinkToPackage data deskbar menu Applications
|
|
|
|
: ../../../../apps/Debugger : Debugger ;
|
|
|
|
|
2013-05-05 20:25:31 +04:00
|
|
|
BuildHaikuPackage $(haikuDevelPackage) : haiku_devel ;
|