xref: /haiku/src/kits/Jamfile (revision 6288f7b4537703bfaa43bf8f8fa0c58e4c8dd82b)
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			$(TARGET_LIBSTDC++)
49			[ BuildFeatureAttribute icu : libraries ]
50			[ BuildFeatureAttribute zlib : library ]
51			;
52	}
53}
54
55# Build libbe_test.so
56
57SetSupportedPlatformsForTarget libbe_test.so : libbe_test ;
58
59SetVersionScript libbe_test.so : libbe_test_versions ;
60
61UsePrivateHeaders storage mime ;
62
63SharedLibrary libbe_test.so :
64	:
65	<libbe!$(HAIKU_PACKAGING_ARCH)>app_kit.o
66	<libbe!$(HAIKU_PACKAGING_ARCH)>interface_kit.o
67	<libbe!$(HAIKU_PACKAGING_ARCH)>locale_kit.o
68	<libbe!$(HAIKU_PACKAGING_ARCH)>storage_kit.o
69	<libbe!$(HAIKU_PACKAGING_ARCH)>support_kit.o
70
71	[ MultiArchDefaultGristFiles libstorage_kit_mime.a ]
72
73	[ MultiArchDefaultGristFiles libicon.a ]
74	[ MultiArchDefaultGristFiles libagg.a ]
75
76	$(TARGET_LIBSTDC++)
77	[ BuildFeatureAttribute icu : libraries ]
78	[ BuildFeatureAttribute zlib : library ]
79;
80
81SEARCH_SOURCE += [ FDirName $(SUBDIR) interface ] ;
82SEARCH_SOURCE += [ FDirName $(SUBDIR) interface textview_support ] ;
83SEARCH_SOURCE += [ FDirName $(SUBDIR) shared ] ;
84
85DoCatalogs libbe.so
86	: x-vnd.Haiku-libbe
87	:
88	AboutMenuItem.cpp
89	AboutWindow.cpp
90	ColorControl.cpp
91	Dragger.cpp
92	Menu.cpp
93	PrintJob.cpp
94	StringForSize.cpp
95	TextView.cpp
96	ZombieReplicantView.cpp
97	;
98
99#SEARCH on [ FGristFiles KMessage.cpp ]
100#	= [ FDirName $(HAIKU_TOP) src system kernel messaging ] ;
101#
102#SEARCH on [ FGristFiles syslog.cpp ]
103#	= [ FDirName $(HAIKU_TOP) src system libroot posix ] ;
104
105
106SubInclude HAIKU_TOP src kits app ;
107SubInclude HAIKU_TOP src kits bluetooth ;
108SubInclude HAIKU_TOP src kits debug ;
109SubInclude HAIKU_TOP src kits device ;
110SubInclude HAIKU_TOP src kits game ;
111SubInclude HAIKU_TOP src kits interface ;
112SubInclude HAIKU_TOP src kits locale ;
113SubInclude HAIKU_TOP src kits mail ;
114SubInclude HAIKU_TOP src kits media ;
115SubInclude HAIKU_TOP src kits midi ;
116SubInclude HAIKU_TOP src kits midi2 ;
117SubInclude HAIKU_TOP src kits network ;
118SubInclude HAIKU_TOP src kits package ;
119SubInclude HAIKU_TOP src kits print ;
120SubInclude HAIKU_TOP src kits screensaver ;
121SubInclude HAIKU_TOP src kits shared ;
122SubInclude HAIKU_TOP src kits storage ;
123SubInclude HAIKU_TOP src kits support ;
124SubInclude HAIKU_TOP src kits textencoding ;
125SubInclude HAIKU_TOP src kits tracker ;
126SubInclude HAIKU_TOP src kits translation ;
127