xref: /haiku/src/kits/Jamfile (revision ed6250c95736c0b55da79d6e9dd01369532260c0)
1SubDir HAIKU_TOP src kits ;
2
3# If defined allows to run applications without the registrar
4# -- for development only, of course.
5if $(RUN_WITHOUT_REGISTRAR) {
6	local defines = [ FDefines RUN_WITHOUT_REGISTRAR ] ;
7	SubDirCcFlags $(defines) ;
8	SubDirC++Flags $(defines) ;
9}
10
11# If defined allows to run applications without the app server
12# -- needed until the app server runs on our kernel.
13RUN_WITHOUT_APP_SERVER ?= 0 ;
14if $(RUN_WITHOUT_APP_SERVER) != 0 {
15	local defines = [ FDefines RUN_WITHOUT_APP_SERVER ] ;
16	SubDirCcFlags $(defines) ;
17	SubDirC++Flags $(defines) ;
18}
19
20UsePrivateHeaders [ FDirName kernel ]	# For KMessage.h
21UsePrivateHeaders syslog_daemon ;		# For syslog.cpp
22
23# Build our libbe.so
24
25AddResources libbe.so : libbe_version.rdef ;
26
27SharedLibrary libbe.so :
28	KMessage.cpp
29	:
30	<libbe>app_kit.o
31	<libbe>interface_kit.o
32	<libbe>storage_kit.o
33	<libbe>support_kit.o
34
35	libicon.a
36	libagg.a
37
38	libroot.so	# make sure it links against our libroot.so
39	$(TARGET_LIBSTDC++)
40;
41
42# Build libbe_haiku.so
43
44SetSupportedPlatformsForTarget libbe_haiku.so : libbe_test ;
45
46if $(TARGET_PLATFORM) = libbe_test {
47	local syslog = [ FGristFiles syslog.o ] ;
48	# Remove _NO_INLINE_ASM from the defines for syslog.cpp. Otherwise we get
49	# references to tls_get/set() etc. that don't exist under BeOS.
50	TARGET_DEFINES on $(syslog)
51		= [ on $(syslog) FFilter $(TARGET_DEFINES) : _NO_INLINE_ASM ] ;
52
53	# We need to use our <syslog.h>, because the syslog() prototype differs
54	# from the BeOS one.
55	TARGET_DEFINES on $(syslog) += _SYS_LOG_H ;
56	TARGET_C++FLAGS on $(syslog) = [ on $(syslog) return $(TARGET_C++FLAGS) ]
57		-include [ FDirName $(HAIKU_TOP) headers posix syslog.h ] ;
58}
59
60SharedLibrary libbe_haiku.so :
61	KMessage.cpp
62	syslog.cpp
63	:
64	<libbe>app_kit.o
65	<libbe>interface_kit.o
66	<libbe>storage_kit.o
67	<libbe>support_kit.o
68
69	libicon.a
70	libagg.a
71
72	libbeadapter.so
73	$(TARGET_NETWORK_LIBS)
74	$(TARGET_LIBSTDC++)
75;
76
77SEARCH on [ FGristFiles KMessage.cpp ]
78	= [ FDirName $(HAIKU_TOP) src system kernel messaging ] ;
79
80SEARCH on [ FGristFiles syslog.cpp ]
81	= [ FDirName $(HAIKU_TOP) src system libroot posix ] ;
82
83
84SubInclude HAIKU_TOP src kits app ;
85SubInclude HAIKU_TOP src kits bluetooth ;
86SubInclude HAIKU_TOP src kits debug ;
87SubInclude HAIKU_TOP src kits device ;
88SubInclude HAIKU_TOP src kits game ;
89SubInclude HAIKU_TOP src kits interface ;
90SubInclude HAIKU_TOP src kits mail ;
91SubInclude HAIKU_TOP src kits media ;
92SubInclude HAIKU_TOP src kits midi ;
93SubInclude HAIKU_TOP src kits midi2 ;
94SubInclude HAIKU_TOP src kits network ;
95SubInclude HAIKU_TOP src kits opengl ;
96SubInclude HAIKU_TOP src kits screensaver ;
97SubInclude HAIKU_TOP src kits shared ;
98SubInclude HAIKU_TOP src kits storage ;
99SubInclude HAIKU_TOP src kits support ;
100SubInclude HAIKU_TOP src kits textencoding ;
101SubInclude HAIKU_TOP src kits tracker ;
102SubInclude HAIKU_TOP src kits translation ;
103