xref: /haiku/src/bin/Jamfile (revision ed24eb5ff12640d052171c6a7feba37fab8a75d1)
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	launch_roster.cpp
92	listattr.cpp
93	listfont.cpp
94	listres.cpp
95	mkindex.cpp
96	message.cpp
97	modifiers.cpp
98	mvattr.cpp
99	pidof.cpp
100	query.cpp
101	quit.cpp
102	roster.cpp
103	setversion.cpp
104	trash.cpp
105	version.cpp
106	waitfor.cpp
107	WindowShade.cpp
108	: be : $(haiku-utils_rsrc) ;
109
110if $(TARGET_PLATFORM) = libbe_test {
111	HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : setdecor
112		: tests!apps ;
113}
114
115# standard commands that need libbe.so, libshared.a
116StdBinCommands
117	fstrim.cpp
118	: shared be : $(haiku-utils_rsrc) ;
119
120# standard commands that need libbe.so and libsupc++.so
121StdBinCommands
122	alert.cpp
123	eject.cpp
124	getarch.cpp
125	hey.cpp
126	reindex.cpp
127	resattr.cpp
128	screeninfo.cpp
129	setarch.cpp
130	setcontrollook.cpp
131	setdecor.cpp
132	settype.cpp
133	spybmessage.cpp
134	urlwrapper.cpp
135	: be [ TargetLibstdc++ ] [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
136
137# standard commands that need libbe.so, libsupc++.so, and libshared.a
138StdBinCommands
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	urlwrapper.cpp
147	: be bnetapi [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
148
149# commands that need libbe.so and the stub catalog
150StdBinCommands
151	clockconfig.cpp
152	query.cpp
153	: be localestub : $(haiku-utils_rsrc) ;
154
155# commands that need libbe.so, libsupc++.so and the stub catalog
156StdBinCommands
157	dstcheck.cpp
158	: be [ TargetLibsupc++ ] localestub : $(haiku-utils_rsrc) ;
159
160# Haiku-specific apps which need libbe.so
161StdBinCommands
162	isvolume.cpp
163	shutdown.cpp
164	: be : $(haiku-utils_rsrc) ;
165
166# standard commands that need libbe.so, libstdc++.so
167StdBinCommands
168	copyattr.cpp
169	setmime.cpp
170	xres.cpp
171	: be [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
172
173# Haiku-specific apps which need libbe.so, libstdc++.so
174StdBinCommands
175	mountvolume.cpp
176	: be [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
177
178# commands that need libstdc++ only
179StdBinCommands
180	diff_zip.cpp
181	sysinfo.cpp
182	: [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
183
184# commands that need libstdc++ and lubncurses
185StdBinCommands
186	top.cpp
187	: [ BuildFeatureAttribute ncurses : library ] [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
188
189
190# standard commands that need libbe.so, libtranslation.so, libsupc++.so
191StdBinCommands
192	translate.cpp
193	: be translation [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
194
195# standard commands that need libbe.so, libtranslation.so, libicon.a, libstdc++.so
196StdBinCommands
197	notify.cpp
198	: be translation libicon.a [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
199
200# standard commands that need libbe.so, libmedia.so
201StdBinCommands
202	installsound.cpp
203	: be libmedia.so : $(haiku-utils_rsrc) ;
204
205# standard commands that need libbe.so, libmedia.so, libsupc++.so
206StdBinCommands
207	setvolume.cpp
208	: be libmedia.so [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
209
210# standard commands that need libbe.so, libpackage.so, libsupc++.so
211StdBinCommands
212	findpaths.cpp
213	: be package [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
214
215# standard commands that need libbe.so, libdevice.so
216StdBinCommands
217	setusbconfig.cpp
218	: be libdevice.so : $(haiku-utils_rsrc) ;
219
220# standard commands that need libbluetooth.so, due the Bluetooth Kit
221StdBinCommands
222	bt_dev_info.cpp
223	: be libbluetooth.so : $(haiku-utils_rsrc) ;
224
225StdBinCommands
226	bt_discovery.cpp
227	: be libbluetooth.so [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
228
229
230# standard commands that need libbe.so, libbnetapi.so, libtracker.so
231StdBinCommands
232	checkitout.cpp
233	: be bnetapi tracker [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
234
235#standard commands that need libbe.so, libtracker.so and the catalog stub
236StdBinCommands
237	filepanel.cpp
238	: be tracker [ TargetLibsupc++ ] localestub : $(haiku-utils_rsrc) ;
239
240# mimeset needs libstorage_kit_mime.a
241StdBinCommands
242	mimeset.cpp
243	: be libstorage_kit_mime.a [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
244
245# Localization of some applications
246DoCatalogs dstcheck
247	: x-vnd.Haiku-cmd-dstconfig
248	: dstcheck.cpp
249;
250
251DoCatalogs filepanel
252	: x-vnd.mmu_man.filepanel
253	: filepanel.cpp
254;
255
256SubInclude HAIKU_TOP src bin acpi_call ;
257SubInclude HAIKU_TOP src bin addattr ;
258SubInclude HAIKU_TOP src bin bfs_tools ;
259SubInclude HAIKU_TOP src bin cddb_lookup ;
260SubInclude HAIKU_TOP src bin consoled ;
261SubInclude HAIKU_TOP src bin desklink ;
262SubInclude HAIKU_TOP src bin fwcontrol ;
263SubInclude HAIKU_TOP src bin hid_decode ;
264SubInclude HAIKU_TOP src bin i2c ;
265SubInclude HAIKU_TOP src bin keymap ;
266SubInclude HAIKU_TOP src bin keystore ;
267SubInclude HAIKU_TOP src bin listdev ;
268SubInclude HAIKU_TOP src bin listusb ;
269SubInclude HAIKU_TOP src bin locale ;
270SubInclude HAIKU_TOP src bin makebootable ;
271SubInclude HAIKU_TOP src bin mail_utils ;
272SubInclude HAIKU_TOP src bin media_client ;
273SubInclude HAIKU_TOP src bin mkfs ;
274SubInclude HAIKU_TOP src bin multiuser ;
275SubInclude HAIKU_TOP src bin package ;
276SubInclude HAIKU_TOP src bin package_repo ;
277SubInclude HAIKU_TOP src bin pc ;
278SubInclude HAIKU_TOP src bin pcmcia-cs ;
279SubInclude HAIKU_TOP src bin pkgman ;
280SubInclude HAIKU_TOP src bin rc ;
281SubInclude HAIKU_TOP src bin screen_blanker ;
282SubInclude HAIKU_TOP src bin screenmode ;
283SubInclude HAIKU_TOP src bin writembr ;
284
285# debugging tools
286SubInclude HAIKU_TOP src bin debug ;
287
288# Network command line tools
289SubInclude HAIKU_TOP src bin network ;
290
291# Other stuff
292SubInclude HAIKU_TOP src bin filteredquery ;
293