xref: /haiku/build/jam/packages/HaikuDevelSecondary (revision 16c83730262f1e4f0fc69d80744bb36dcfbbe3af)
1local architecture = $(TARGET_PACKAGING_ARCH) ;
2
3
4local haikuDevelPackage = haiku_$(architecture)_devel.hpkg ;
5HaikuPackage $(haikuDevelPackage) ;
6
7local arch = $(TARGET_ARCH) ;
8
9# glue code
10AddFilesToPackage develop lib $(architecture) :
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# additional libraries
19local developmentLibs = <revisioned>libroot_debug.so ;
20AddFilesToPackage lib : $(developmentLibs) ;
21
22# library symlinks
23local lib ;
24for lib in [ HaikuImageGetSystemLibs ] $(developmentLibs) {
25	AddSymlinkToPackage develop lib $(architecture)
26		: /system/lib/$(architecture) $(lib:BS) ;
27	local abiVersion = [ on $(lib) return $(HAIKU_LIB_ABI_VERSION) ] ;
28	if $(abiVersion) {
29		local abiVersionedLib = $(lib:BS).$(abiVersion) ;
30		AddSymlinkToPackage develop lib $(architecture)
31			: /system/lib/$(architecture) $(abiVersionedLib) ;
32	}
33}
34
35# static libraries
36AddFilesToPackage develop lib $(architecture)
37	: <$(architecture)>liblocalestub.a ;
38
39# the POSIX error code mapper library
40AddFilesToPackage develop lib $(architecture)
41	: libposix_error_mapper.a ;
42
43# ABI independent stuff
44
45# cpp headers
46if $(HAIKU_GCC_VERSION_$(architecture)[1]) = 2 {
47	# GCC 2 only -- for GCC 4 they come with the gcc package
48	CopyDirectoryToPackage develop headers c++
49		: [ FDirName $(HAIKU_TOP) headers cpp ] : 2.95.3 ;
50}
51
52# OpenGL headers
53if $(TARGET_ARCH) = x86 && ! $(HAIKU_BOOTSTRAP_BUILD) {
54	local mesaGlHeaders
55		= [ FDirName [ BuildFeatureAttribute mesa : headers : path ] GL ] ;
56	local mesaGlHeadersDependency = [ BuildFeatureAttribute mesa : headers ] ;
57	mesaGlHeaders = $(mesaGlHeaders:G=$(mesaGlHeadersDependency:G)) ;
58	Depends $(mesaGlHeaders) : $(mesaGlHeadersDependency) ;
59	CopyDirectoryToPackage develop headers $(architecture) os opengl
60		: $(mesaGlHeaders) : : : isTarget ;
61}
62
63
64BuildHaikuPackage $(haikuDevelPackage) : haiku_devel_secondary ;
65