xref: /haiku/build/jam/packages/HaikuDevel (revision 02354704729d38c3b078c696adc1bbbd33cbcf72)
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 : ../../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			: ../../lib $(abiVersionedLib) ;
37	}
38}
39
40# static libraries
41AddFilesToPackage develop lib :
42	libc.a libcolumnlistview.a
43	<$(architecture)>liblocalestub.a
44	libm.a libnetservices.a
45	libpthread.a 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# directory attributes
54AddDirectoryToPackage develop : system-develop.rdef ;
55
56
57# headers
58AddHeaderDirectoryToPackage config ;
59AddHeaderDirectoryToPackage glibc ;
60AddHeaderDirectoryToPackage libs alm ;
61AddHeaderDirectoryToPackage libs glut GL ;
62AddHeaderDirectoryToPackage os ;
63AddHeaderDirectoryToPackage posix ;
64
65# private headers
66AddHeaderDirectoryToPackage private ;
67CopyDirectoryToPackage develop headers private libs compat
68	: [ FDirName $(HAIKU_TOP) src libs compat freebsd_network ]
69	: : -x *.c -x *.cpp -x *.awk -x Jamfile -x miidevs -x usbdevs ;
70CopyDirectoryToPackage develop headers private libs compat
71	: [ FDirName $(HAIKU_TOP) src libs compat freebsd_wlan ]
72	: : -x *.c -x Jamfile ;
73
74# create be -> os symlink for now
75AddSymlinkToPackage develop headers : os : be ;
76
77# BSD and GNU compatibility headers
78AddHeaderDirectoryToPackage compatibility bsd : bsd ;
79AddHeaderDirectoryToPackage compatibility gnu : gnu ;
80
81# cpp headers
82if $(HAIKU_CC_IS_LEGACY_GCC_$(architecture)) = 1 {
83	# GCC 2 only -- for GCC 4 they come with the gcc package
84	CopyDirectoryToPackage develop headers c++
85		: [ FDirName $(HAIKU_TOP) headers cpp ] : 2.95.3 ;
86}
87
88
89# Deskbar menu symlinks
90AddSymlinkToPackage data deskbar menu Applications
91	: ../../../../apps/Debugger : Debugger ;
92
93# Debugging tools
94SEARCH on leak_analyser.sh = [ FDirName $(HAIKU_TOP) src bin ] ;
95AddFilesToPackage bin : leak_analyser.sh ;
96
97BuildHaikuPackage $(haikuDevelPackage) : haiku_devel ;
98