xref: /haiku/src/kits/Jamfile (revision efafab643ce980e3f3c916795ed302599f6b4f66)
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 app interface kernel locale print shared ;
21
22# Build our libbe.so
23
24local architectureObject ;
25for architectureObject in [ MultiArchSubDirSetup ] {
26	on $(architectureObject) {
27		local architecture = $(TARGET_PACKAGING_ARCH) ;
28		local libbe = [ MultiArchDefaultGristFiles libbe.so ] ;
29
30		AddResources $(libbe) :
31			libbe_version.rdef CountryFlags.rdef LanguageFlags.rdef
32			;
33
34		SetVersionScript $(libbe) : libbe_versions ;
35
36		SharedLibrary $(libbe) : :
37			<libbe!$(architecture)>app_kit.o
38			<libbe!$(architecture)>interface_kit.o
39			<libbe!$(architecture)>locale_kit.o
40			<libbe!$(architecture)>storage_kit.o
41			<libbe!$(architecture)>support_kit.o
42
43			[ MultiArchDefaultGristFiles libstorage_kit_mime.a ]
44
45			[ MultiArchDefaultGristFiles libicon.a ]
46			[ MultiArchDefaultGristFiles libagg.a ]
47
48			[ TargetLibstdc++ ]
49			[ BuildFeatureAttribute icu : libraries ]
50			[ BuildFeatureAttribute zlib : library ]
51			[ BuildFeatureAttribute zstd : library ]
52			;
53	}
54}
55
56# Build libbe_test.so
57
58SetSupportedPlatformsForTarget libbe_test.so : libbe_test ;
59
60SetVersionScript libbe_test.so : libbe_test_versions ;
61
62UsePrivateHeaders storage mime ;
63
64SharedLibrary libbe_test.so :
65	:
66	<libbe!$(HAIKU_PACKAGING_ARCH)>app_kit.o
67	<libbe!$(HAIKU_PACKAGING_ARCH)>interface_kit.o
68	<libbe!$(HAIKU_PACKAGING_ARCH)>locale_kit.o
69	<libbe!$(HAIKU_PACKAGING_ARCH)>storage_kit.o
70	<libbe!$(HAIKU_PACKAGING_ARCH)>support_kit.o
71
72	[ MultiArchDefaultGristFiles libstorage_kit_mime.a ]
73
74	[ MultiArchDefaultGristFiles libicon.a ]
75	[ MultiArchDefaultGristFiles libagg.a ]
76
77	[ TargetLibstdc++ ]
78	[ BuildFeatureAttribute icu : libraries ]
79	[ BuildFeatureAttribute zlib : library ]
80;
81
82SEARCH_SOURCE += [ FDirName $(SUBDIR) interface ] ;
83SEARCH_SOURCE += [ FDirName $(SUBDIR) interface textview_support ] ;
84SEARCH_SOURCE += [ FDirName $(SUBDIR) shared ] ;
85
86DoCatalogs libbe.so
87	: x-vnd.Haiku-libbe
88	:
89	AboutMenuItem.cpp
90	AboutWindow.cpp
91	ColorControl.cpp
92	Dragger.cpp
93	Menu.cpp
94	PrintJob.cpp
95	StringForSize.cpp
96	TextView.cpp
97	ZombieReplicantView.cpp
98	;
99
100#SEARCH on [ FGristFiles KMessage.cpp ]
101#	= [ FDirName $(HAIKU_TOP) src system kernel messaging ] ;
102#
103#SEARCH on [ FGristFiles syslog.cpp ]
104#	= [ FDirName $(HAIKU_TOP) src system libroot posix ] ;
105
106
107SubInclude HAIKU_TOP src kits app ;
108SubInclude HAIKU_TOP src kits bluetooth ;
109SubInclude HAIKU_TOP src kits codec ;
110SubInclude HAIKU_TOP src kits debug ;
111SubInclude HAIKU_TOP src kits debugger ;
112SubInclude HAIKU_TOP src kits device ;
113SubInclude HAIKU_TOP src kits game ;
114SubInclude HAIKU_TOP src kits interface ;
115SubInclude HAIKU_TOP src kits locale ;
116SubInclude HAIKU_TOP src kits mail ;
117SubInclude HAIKU_TOP src kits media ;
118SubInclude HAIKU_TOP src kits midi ;
119SubInclude HAIKU_TOP src kits midi2 ;
120SubInclude HAIKU_TOP src kits network ;
121SubInclude HAIKU_TOP src kits package ;
122SubInclude HAIKU_TOP src kits print ;
123SubInclude HAIKU_TOP src kits screensaver ;
124SubInclude HAIKU_TOP src kits shared ;
125SubInclude HAIKU_TOP src kits storage ;
126SubInclude HAIKU_TOP src kits support ;
127SubInclude HAIKU_TOP src kits textencoding ;
128SubInclude HAIKU_TOP src kits tracker ;
129SubInclude HAIKU_TOP src kits translation ;
130