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!$(TARGET_PACKAGING_ARCH)>app_kit.o
67	<libbe!$(TARGET_PACKAGING_ARCH)>interface_kit.o
68	<libbe!$(TARGET_PACKAGING_ARCH)>locale_kit.o
69	<libbe!$(TARGET_PACKAGING_ARCH)>storage_kit.o
70	<libbe!$(TARGET_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	[ BuildFeatureAttribute zstd : library ]
81	;
82
83SEARCH_SOURCE += [ FDirName $(SUBDIR) interface ] ;
84SEARCH_SOURCE += [ FDirName $(SUBDIR) interface textview_support ] ;
85SEARCH_SOURCE += [ FDirName $(SUBDIR) shared ] ;
86
87DoCatalogs libbe.so
88	: x-vnd.Haiku-libbe
89	:
90	AboutMenuItem.cpp
91	AboutWindow.cpp
92	ColorControl.cpp
93	DecorInfo.cpp
94	Dragger.cpp
95	Menu.cpp
96	PrintJob.cpp
97	StringForRate.cpp
98	StringForSize.cpp
99	TextView.cpp
100	ZombieReplicantView.cpp
101	;
102
103#SEARCH on [ FGristFiles KMessage.cpp ]
104#	= [ FDirName $(HAIKU_TOP) src system kernel messaging ] ;
105#
106#SEARCH on [ FGristFiles syslog.cpp ]
107#	= [ FDirName $(HAIKU_TOP) src system libroot posix ] ;
108
109
110SubInclude HAIKU_TOP src kits app ;
111SubInclude HAIKU_TOP src kits bluetooth ;
112SubInclude HAIKU_TOP src kits debug ;
113SubInclude HAIKU_TOP src kits debugger ;
114SubInclude HAIKU_TOP src kits device ;
115SubInclude HAIKU_TOP src kits game ;
116SubInclude HAIKU_TOP src kits interface ;
117SubInclude HAIKU_TOP src kits locale ;
118SubInclude HAIKU_TOP src kits mail ;
119SubInclude HAIKU_TOP src kits media ;
120SubInclude HAIKU_TOP src kits midi ;
121SubInclude HAIKU_TOP src kits midi2 ;
122SubInclude HAIKU_TOP src kits network ;
123SubInclude HAIKU_TOP src kits package ;
124SubInclude HAIKU_TOP src kits print ;
125SubInclude HAIKU_TOP src kits screensaver ;
126SubInclude HAIKU_TOP src kits shared ;
127SubInclude HAIKU_TOP src kits storage ;
128SubInclude HAIKU_TOP src kits support ;
129SubInclude HAIKU_TOP src kits textencoding ;
130SubInclude HAIKU_TOP src kits tracker ;
131SubInclude HAIKU_TOP src kits translation ;
132