xref: /haiku/build/jam/packages/HaikuDevel (revision fce4895d1884da5ae6fb299d23c735c598e690b1)
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	;
25
26AddFilesToPackage lib : $(developmentLibs) ;
27
28# library symlinks
29local lib ;
30for lib in [ HaikuImageGetSystemLibs ] $(developmentLibs) {
31	AddSymlinkToPackage develop lib : /system/lib $(lib:BS) ;
32	local abiVersion = [ on $(lib) return $(HAIKU_LIB_ABI_VERSION) ] ;
33	if $(abiVersion) {
34		local abiVersionedLib = $(lib:BS).$(abiVersion) ;
35		AddSymlinkToPackage develop lib
36			: /system/lib $(abiVersionedLib) ;
37	}
38}
39
40# static libraries
41AddFilesToPackage develop lib : libcolumnlistview.a
42	<$(architecture)>liblocalestub.a <$(architecture)>libshared.a ;
43
44# the POSIX error code mapper library
45AddFilesToPackage develop lib : libposix_error_mapper.a ;
46
47# ABI independent stuff
48
49# headers
50AddHeaderDirectoryToPackage config ;
51AddHeaderDirectoryToPackage glibc ;
52AddHeaderDirectoryToPackage libs alm ;
53AddHeaderDirectoryToPackage os ;
54AddHeaderDirectoryToPackage posix ;
55
56# private headers
57AddHeaderDirectoryToPackage private ;
58CopyDirectoryToPackage develop headers private libs compat
59	: [ FDirName $(HAIKU_TOP) src libs compat freebsd_network ]
60	: : -x *.c -x *.cpp -x *.awk -x Jamfile -x miidevs ;
61CopyDirectoryToPackage develop headers private libs compat
62	: [ FDirName $(HAIKU_TOP) src libs compat freebsd_wlan ]
63	: : -x *.c -x Jamfile ;
64
65# create be -> os symlink for now
66AddSymlinkToPackage develop headers : os : be ;
67
68# BSD and GNU compatibility headers
69AddHeaderDirectoryToPackage compatibility bsd : bsd ;
70AddHeaderDirectoryToPackage compatibility gnu : gnu ;
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
80# Deskbar menu symlinks
81AddSymlinkToPackage data deskbar menu Applications
82	: ../../../../apps/Debugger : Debugger ;
83
84# Debugging tools
85SEARCH on leak_analyser.sh = [ FDirName $(HAIKU_TOP) src bin ] ;
86AddFilesToPackage bin : leak_analyser.sh ;
87
88BuildHaikuPackage $(haikuDevelPackage) : haiku_devel ;
89