xref: /haiku/build/jam/packages/HaikuDevel (revision a629567a9001547736cfe892cdf992be16868fed)
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# cpp headers
68if $(HAIKU_GCC_VERSION_$(architecture)[1]) = 2 {
69	# GCC 2 only -- for GCC 4 they come with the gcc package
70	CopyDirectoryToPackage develop headers c++
71		: [ FDirName $(HAIKU_TOP) headers cpp ] : 2.95.3 ;
72}
73
74
75# Deskbar menu symlinks
76AddSymlinkToPackage data deskbar menu Applications
77	: ../../../../apps/Debugger : Debugger ;
78
79BuildHaikuPackage $(haikuDevelPackage) : haiku_devel ;
80