xref: /haiku/build/jam/packages/HaikuDevel (revision 6aff37d1c79e20748c683ae224bd629f88a5b0be)
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 :
42	libcolumnlistview.a
43	<$(architecture)>liblocalestub.a
44	libm.a libpthread.a
45	libprint.a libprintutils.a
46	<$(architecture)>libshared.a ;
47
48# the POSIX error code mapper library
49AddFilesToPackage develop lib : libposix_error_mapper.a ;
50
51# ABI independent stuff
52
53# headers
54AddHeaderDirectoryToPackage config ;
55AddHeaderDirectoryToPackage glibc ;
56AddHeaderDirectoryToPackage libs alm ;
57AddHeaderDirectoryToPackage libs glut GL ;
58AddHeaderDirectoryToPackage os ;
59AddHeaderDirectoryToPackage posix ;
60
61# private headers
62AddHeaderDirectoryToPackage private ;
63CopyDirectoryToPackage develop headers private libs compat
64	: [ FDirName $(HAIKU_TOP) src libs compat freebsd_network ]
65	: : -x *.c -x *.cpp -x *.awk -x Jamfile -x miidevs ;
66CopyDirectoryToPackage develop headers private libs compat
67	: [ FDirName $(HAIKU_TOP) src libs compat freebsd_wlan ]
68	: : -x *.c -x Jamfile ;
69
70# create be -> os symlink for now
71AddSymlinkToPackage develop headers : os : be ;
72
73# BSD and GNU compatibility headers
74AddHeaderDirectoryToPackage compatibility bsd : bsd ;
75AddHeaderDirectoryToPackage compatibility gnu : gnu ;
76
77# cpp headers
78if $(HAIKU_GCC_VERSION_$(architecture)[1]) = 2 {
79	# GCC 2 only -- for GCC 4 they come with the gcc package
80	CopyDirectoryToPackage develop headers c++
81		: [ FDirName $(HAIKU_TOP) headers cpp ] : 2.95.3 ;
82}
83
84
85# Deskbar menu symlinks
86AddSymlinkToPackage data deskbar menu Applications
87	: ../../../../apps/Debugger : Debugger ;
88
89# Debugging tools
90SEARCH on leak_analyser.sh = [ FDirName $(HAIKU_TOP) src bin ] ;
91AddFilesToPackage bin : leak_analyser.sh ;
92
93BuildHaikuPackage $(haikuDevelPackage) : haiku_devel ;
94