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