xref: /haiku/src/bin/Jamfile (revision 4a55cc230cf7566cadcbb23b1928eefff8aea9a2)
1SubDir HAIKU_TOP src bin ;
2
3HAIKU_MULTIPLE_LOCALIZED_TARGETS on $(SUBDIR) = 1 ;
4
5AddSubDirSupportedPlatforms libbe_test ;
6
7UsePrivateHeaders app interface libroot kernel shared storage support tracker usb ;
8UsePrivateSystemHeaders ;
9SubDirHdrs $(HAIKU_TOP) src add-ons kernel file_cache ;
10UseBuildFeatureHeaders ncurses ;
11
12local haiku-utils_rsrc = [ FGristFiles haiku-utils.rsrc ] ;
13
14ResComp $(haiku-utils_rsrc) : [ FGristFiles haiku-utils.rdef ] ;
15
16AddResources checkitout : checkitout.rdef ;
17AddResources dstcheck : dstcheck.rdef ;
18AddResources fortune : fortune.rdef ;
19AddResources hey : hey.rdef ;
20AddResources mimeset : mimeset.rdef ;
21AddResources mountvolume : mountvolume.rdef ;
22AddResources notify : notify.rdef ;
23AddResources setmime : setmime.rdef ;
24AddResources urlwrapper : urlwrapper.rdef ;
25
26ObjectSysHdrs listimage.c :
27	[ FDirName $(HAIKU_TOP) headers compatibility bsd ] ;
28
29# standard commands that don't need any additional library
30StdBinCommands
31	badblocks.cpp
32	chop.c
33	clear.c
34	driveinfo.c
35	error.c
36	fortune.c
37	finddir.c
38	fstrim.cpp
39	get_driver_settings.cpp
40	hd.c
41	listarea.c
42	listimage.c
43	listport.c
44	listsem.c
45	logger.cpp
46	lsindex.cpp
47	prio.c
48	ps.c
49	release.c
50	renice.c
51	rescan.c
52	system_time.cpp
53	unchop.c
54	vmstat.cpp
55	: : $(haiku-utils_rsrc) ;
56
57# Commands which don't need another library that depend on
58# Haiku-specific code
59StdBinCommands
60	boot_process_done.cpp
61	fdinfo.cpp
62	mount.c
63	rmattr.cpp
64	rmindex.cpp
65	safemode.c
66	unmount.c
67	: : $(haiku-utils_rsrc) ;
68
69# standard commands that need libncurses.a
70Includes [ FGristFiles top.cpp watch.c ]
71	: [ BuildFeatureAttribute ncurses : headers ] ;
72
73ObjectSysHdrs watch.c : [ FDirName $(HAIKU_TOP) headers compatibility bsd ] ;
74
75StdBinCommands
76	watch.c
77	: [ BuildFeatureAttribute ncurses : library ] : $(haiku-utils_rsrc) ;
78
79# standard commands that need libbe.so
80StdBinCommands
81	autologin.cpp
82	beep.cpp
83	catattr.cpp
84	checkfs.cpp
85	clipboard.cpp
86	df.cpp
87	diskimage.cpp
88	dpms.cpp
89	draggers.cpp
90	ffm.cpp
91	iroster.cpp
92	launch_roster.cpp
93	listattr.cpp
94	listfont.cpp
95	listres.cpp
96	mkindex.cpp
97	message.cpp
98	modifiers.cpp
99	mvattr.cpp
100	pidof.cpp
101	play.cpp
102	query.cpp
103	quit.cpp
104	roster.cpp
105	setversion.cpp
106	trash.cpp
107	version.cpp
108	waitfor.cpp
109	WindowShade.cpp
110	: be : $(haiku-utils_rsrc) ;
111
112if $(TARGET_PLATFORM) = libbe_test {
113	HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : setdecor
114		: tests!apps ;
115}
116
117# standard commands that need libbe.so and libsupc++.so
118StdBinCommands
119	alert.cpp
120	eject.cpp
121	getarch.cpp
122	hey.cpp
123	reindex.cpp
124	resattr.cpp
125	screeninfo.cpp
126	setarch.cpp
127	setcontrollook.cpp
128	setdecor.cpp
129	settype.cpp
130	spybmessage.cpp
131	urlwrapper.cpp
132	: be [ TargetLibstdc++ ] [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
133
134# standard commands that need libbe.so, libsupc++.so, and libshared.a
135StdBinCommands
136	ramdisk.cpp
137	resizefs.cpp
138	: shared be [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
139
140# standard commands that need libbe.so, libbnetapi.so, libsupc++.so
141StdBinCommands
142	open.cpp
143	urlwrapper.cpp
144	: be bnetapi [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
145
146# commands that need libbe.so and the stub catalog
147StdBinCommands
148	clockconfig.cpp
149	query.cpp
150	: be localestub : $(haiku-utils_rsrc) ;
151
152# commands that need libbe.so, libsupc++.so and the stub catalog
153StdBinCommands
154	dstcheck.cpp
155	: be [ TargetLibsupc++ ] localestub : $(haiku-utils_rsrc) ;
156
157# Haiku-specific apps which need libbe.so
158StdBinCommands
159	isvolume.cpp
160	shutdown.cpp
161	: be : $(haiku-utils_rsrc) ;
162
163# standard commands that need libbe.so, libstdc++.so
164StdBinCommands
165	copyattr.cpp
166	setmime.cpp
167	xres.cpp
168	: be [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
169
170# Haiku-specific apps which need libbe.so, libstdc++.so
171StdBinCommands
172	mountvolume.cpp
173	: be [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
174
175# commands that need libstdc++ only
176StdBinCommands
177	diff_zip.cpp
178	sysinfo.cpp
179	: [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
180
181# commands that need libstdc++ and lubncurses
182StdBinCommands
183	top.cpp
184	: [ BuildFeatureAttribute ncurses : library ] [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
185
186
187# standard commands that need libbe.so, libtranslation.so, libsupc++.so
188StdBinCommands
189	translate.cpp
190	: be translation [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
191
192# standard commands that need libbe.so, libtranslation.so, libicon.a, libstdc++.so
193StdBinCommands
194	notify.cpp
195	: be translation libicon.a [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
196
197# standard commands that need libbe.so, libmedia.so
198StdBinCommands
199	installsound.cpp
200	: be libmedia.so : $(haiku-utils_rsrc) ;
201
202# standard commands that need libbe.so, libmedia.so, libsupc++.so
203StdBinCommands
204	setvolume.cpp
205	: be libmedia.so [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
206
207# standard commands that need libbe.so, libpackage.so, libsupc++.so
208StdBinCommands
209	findpaths.cpp
210	: be package [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
211
212# standard commands that need libbe.so, libdevice.so
213StdBinCommands
214	setusbconfig.cpp
215	: be libdevice.so : $(haiku-utils_rsrc) ;
216
217# standard commands that need libbluetooth.so, due the Bluetooth Kit
218StdBinCommands
219	bt_dev_info.cpp
220	: be libbluetooth.so : $(haiku-utils_rsrc) ;
221
222StdBinCommands
223	bt_discovery.cpp
224	: be libbluetooth.so [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
225
226
227# standard commands that need libbe.so, libbnetapi.so, libtracker.so
228StdBinCommands
229	checkitout.cpp
230	: be bnetapi tracker [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
231
232#standard commands that need libbe.so, libtracker.so and the catalog stub
233StdBinCommands
234	filepanel.cpp
235	: be tracker [ TargetLibsupc++ ] localestub : $(haiku-utils_rsrc) ;
236
237# mimeset needs libstorage_kit_mime.a
238StdBinCommands
239	mimeset.cpp
240	: be libstorage_kit_mime.a [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
241
242# Localization of some applications
243DoCatalogs dstcheck
244	: x-vnd.Haiku-cmd-dstconfig
245	: dstcheck.cpp
246;
247
248DoCatalogs filepanel
249	: x-vnd.mmu_man.filepanel
250	: filepanel.cpp
251;
252
253SubInclude HAIKU_TOP src bin acpi_call ;
254SubInclude HAIKU_TOP src bin addattr ;
255SubInclude HAIKU_TOP src bin bfs_tools ;
256SubInclude HAIKU_TOP src bin cddb_lookup ;
257SubInclude HAIKU_TOP src bin consoled ;
258SubInclude HAIKU_TOP src bin desklink ;
259SubInclude HAIKU_TOP src bin fwcontrol ;
260SubInclude HAIKU_TOP src bin hid_decode ;
261SubInclude HAIKU_TOP src bin i2c ;
262SubInclude HAIKU_TOP src bin keymap ;
263SubInclude HAIKU_TOP src bin keystore ;
264SubInclude HAIKU_TOP src bin listdev ;
265SubInclude HAIKU_TOP src bin listusb ;
266SubInclude HAIKU_TOP src bin locale ;
267SubInclude HAIKU_TOP src bin makebootable ;
268SubInclude HAIKU_TOP src bin mail_utils ;
269SubInclude HAIKU_TOP src bin media_client ;
270SubInclude HAIKU_TOP src bin mkfs ;
271SubInclude HAIKU_TOP src bin multiuser ;
272SubInclude HAIKU_TOP src bin package ;
273SubInclude HAIKU_TOP src bin package_repo ;
274SubInclude HAIKU_TOP src bin pc ;
275SubInclude HAIKU_TOP src bin pcmcia-cs ;
276SubInclude HAIKU_TOP src bin pkgman ;
277SubInclude HAIKU_TOP src bin rc ;
278SubInclude HAIKU_TOP src bin screen_blanker ;
279SubInclude HAIKU_TOP src bin screenmode ;
280SubInclude HAIKU_TOP src bin writembr ;
281
282# debugging tools
283SubInclude HAIKU_TOP src bin debug ;
284
285# Network command line tools
286SubInclude HAIKU_TOP src bin network ;
287
288# Other stuff
289SubInclude HAIKU_TOP src bin filteredquery ;
290