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