1338b8dc3SIngo WeinholdSubDir HAIKU_TOP src kits ;
266f77d7bSIngo Weinhold
371f590f7SAxel Dörfler# If defined allows to run applications without the registrar
4942d2531SIngo Weinhold# -- for development only, of course.
5942d2531SIngo Weinholdif $(RUN_WITHOUT_REGISTRAR) {
6942d2531SIngo Weinhold	local defines = [ FDefines RUN_WITHOUT_REGISTRAR ] ;
7942d2531SIngo Weinhold	SubDirCcFlags $(defines) ;
8942d2531SIngo Weinhold	SubDirC++Flags $(defines) ;
9942d2531SIngo Weinhold}
10942d2531SIngo Weinhold
11044be4e2SIngo Weinhold# If defined allows to run applications without the app server
12044be4e2SIngo Weinhold# -- needed until the app server runs on our kernel.
13d7037cbdSIngo WeinholdRUN_WITHOUT_APP_SERVER ?= 0 ;
14d7037cbdSIngo Weinholdif $(RUN_WITHOUT_APP_SERVER) != 0 {
15044be4e2SIngo Weinhold	local defines = [ FDefines RUN_WITHOUT_APP_SERVER ] ;
16044be4e2SIngo Weinhold	SubDirCcFlags $(defines) ;
17044be4e2SIngo Weinhold	SubDirC++Flags $(defines) ;
18044be4e2SIngo Weinhold}
19044be4e2SIngo Weinhold
207aa197e3SJerome DuvalUsePrivateHeaders app interface kernel locale print shared ;
21eb1466cfSKarsten Heimrich
22cb5da7deSPhilippe Houdoin# Build our libbe.so
23194f9368SIngo Weinhold
24b0944c78SIngo Weinholdlocal architectureObject ;
25b0944c78SIngo Weinholdfor architectureObject in [ MultiArchSubDirSetup ] {
26b0944c78SIngo Weinhold	on $(architectureObject) {
27b0944c78SIngo Weinhold		local architecture = $(TARGET_PACKAGING_ARCH) ;
28b0944c78SIngo Weinhold		local libbe = [ MultiArchDefaultGristFiles libbe.so ] ;
2960f75e90SOliver Tappe
30b0944c78SIngo Weinhold		AddResources $(libbe) :
31b0944c78SIngo Weinhold			libbe_version.rdef CountryFlags.rdef LanguageFlags.rdef
32b0944c78SIngo Weinhold			;
3304d45bdbSAxel Dörfler
34b0944c78SIngo Weinhold		SetVersionScript $(libbe) : libbe_versions ;
35ef3966e8SIngo Weinhold
36b0944c78SIngo Weinhold		SharedLibrary $(libbe) : :
37b0944c78SIngo Weinhold			<libbe!$(architecture)>app_kit.o
38b0944c78SIngo Weinhold			<libbe!$(architecture)>interface_kit.o
39b0944c78SIngo Weinhold			<libbe!$(architecture)>locale_kit.o
40b0944c78SIngo Weinhold			<libbe!$(architecture)>storage_kit.o
41b0944c78SIngo Weinhold			<libbe!$(architecture)>support_kit.o
4287799a3aSStephan Aßmus
43b0944c78SIngo Weinhold			[ MultiArchDefaultGristFiles libstorage_kit_mime.a ]
449cda9c99SIngo Weinhold
45b0944c78SIngo Weinhold			[ MultiArchDefaultGristFiles libicon.a ]
46b0944c78SIngo Weinhold			[ MultiArchDefaultGristFiles libagg.a ]
479ecf9d1cSIngo Weinhold
48220d0402SOliver Tappe			[ TargetLibstdc++ ]
496a89a36aSIngo Weinhold			[ BuildFeatureAttribute icu : libraries ]
506a89a36aSIngo Weinhold			[ BuildFeatureAttribute zlib : library ]
516ac3a280SJérôme Duval			[ BuildFeatureAttribute zstd : library ]
52b0944c78SIngo Weinhold			;
53b0944c78SIngo Weinhold	}
54b0944c78SIngo Weinhold}
5571f590f7SAxel Dörfler
562c69b5b6SAxel Dörfler# Build libbe_test.so
57cb5da7deSPhilippe Houdoin
582c69b5b6SAxel DörflerSetSupportedPlatformsForTarget libbe_test.so : libbe_test ;
59338b8dc3SIngo Weinhold
602c69b5b6SAxel DörflerSetVersionScript libbe_test.so : libbe_test_versions ;
61ca9e5772SIngo Weinhold
62c2dcc4d5SAdrien DestuguesUsePrivateHeaders storage mime ;
63c2dcc4d5SAdrien Destugues
642c69b5b6SAxel DörflerSharedLibrary libbe_test.so :
65cb5da7deSPhilippe Houdoin	:
669e54316cSCodeforEvolution	<libbe!$(TARGET_PACKAGING_ARCH)>app_kit.o
679e54316cSCodeforEvolution	<libbe!$(TARGET_PACKAGING_ARCH)>interface_kit.o
689e54316cSCodeforEvolution	<libbe!$(TARGET_PACKAGING_ARCH)>locale_kit.o
699e54316cSCodeforEvolution	<libbe!$(TARGET_PACKAGING_ARCH)>storage_kit.o
709e54316cSCodeforEvolution	<libbe!$(TARGET_PACKAGING_ARCH)>support_kit.o
71c2dcc4d5SAdrien Destugues
72c2dcc4d5SAdrien Destugues	[ MultiArchDefaultGristFiles libstorage_kit_mime.a ]
735d25ad2cSPhilippe Houdoin
74c2dcc4d5SAdrien Destugues	[ MultiArchDefaultGristFiles libicon.a ]
75c2dcc4d5SAdrien Destugues	[ MultiArchDefaultGristFiles libagg.a ]
769ecf9d1cSIngo Weinhold
77220d0402SOliver Tappe	[ TargetLibstdc++ ]
786a89a36aSIngo Weinhold	[ BuildFeatureAttribute icu : libraries ]
796a89a36aSIngo Weinhold	[ BuildFeatureAttribute zlib : library ]
809e54316cSCodeforEvolution	[ BuildFeatureAttribute zstd : library ]
819e54316cSCodeforEvolution	;
8266f77d7bSIngo Weinhold
837aa197e3SJerome DuvalSEARCH_SOURCE += [ FDirName $(SUBDIR) interface ] ;
847aa197e3SJerome DuvalSEARCH_SOURCE += [ FDirName $(SUBDIR) interface textview_support ] ;
857aa197e3SJerome DuvalSEARCH_SOURCE += [ FDirName $(SUBDIR) shared ] ;
8660f75e90SOliver Tappe
8760f75e90SOliver TappeDoCatalogs libbe.so
8860f75e90SOliver Tappe	: x-vnd.Haiku-libbe
8960f75e90SOliver Tappe	:
9060f75e90SOliver Tappe	AboutMenuItem.cpp
9160f75e90SOliver Tappe	AboutWindow.cpp
9260f75e90SOliver Tappe	ColorControl.cpp
9324337d53SAdrien Destugues	DecorInfo.cpp
9460f75e90SOliver Tappe	Dragger.cpp
9560f75e90SOliver Tappe	Menu.cpp
9660f75e90SOliver Tappe	PrintJob.cpp
97872240afSAdrien Destugues	StringForRate.cpp
9860f75e90SOliver Tappe	StringForSize.cpp
9960f75e90SOliver Tappe	TextView.cpp
10060f75e90SOliver Tappe	ZombieReplicantView.cpp
10160f75e90SOliver Tappe	;
102fce4895dSRene Gollent
1032c69b5b6SAxel Dörfler#SEARCH on [ FGristFiles KMessage.cpp ]
1042c69b5b6SAxel Dörfler#	= [ FDirName $(HAIKU_TOP) src system kernel messaging ] ;
1052c69b5b6SAxel Dörfler#
1062c69b5b6SAxel Dörfler#SEARCH on [ FGristFiles syslog.cpp ]
1072c69b5b6SAxel Dörfler#	= [ FDirName $(HAIKU_TOP) src system libroot posix ] ;
108338b8dc3SIngo Weinhold
109338b8dc3SIngo Weinhold
110338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits app ;
1113dfa1212SOliver Ruiz DorantesSubInclude HAIKU_TOP src kits bluetooth ;
112338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits debug ;
113fce4895dSRene GollentSubInclude HAIKU_TOP src kits debugger ;
114338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits device ;
115338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits game ;
116338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits interface ;
117723383c0SOliver TappeSubInclude HAIKU_TOP src kits locale ;
118338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits mail ;
119338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits media ;
120338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits midi ;
121338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits midi2 ;
122338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits network ;
123500bb630SOliver TappeSubInclude HAIKU_TOP src kits package ;
12412fd6cc2SKarsten HeimrichSubInclude HAIKU_TOP src kits print ;
125338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits screensaver ;
12648295d4bSIngo WeinholdSubInclude HAIKU_TOP src kits shared ;
127338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits storage ;
128338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits support ;
129338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits textencoding ;
130338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits tracker ;
131338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src kits translation ;
132