xref: /haiku/src/bin/Jamfile (revision 495060760727dd782c9f8a90db71e5d727f19748)
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	setcontrollook.cpp
122	setdecor.cpp
123	settype.cpp
124	spybmessage.cpp
125	urlwrapper.cpp
126	: be [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
127
128# standard commands that need libbe.so, libsupc++.so, and libshared.a
129StdBinCommands
130	ramdisk.cpp
131	: shared be [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
132
133# standard commands that need libbe.so, libbnetapi.so, libsupc++.so
134StdBinCommands
135	open.cpp
136	urlwrapper.cpp
137	: be bnetapi [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
138
139# commands that need libbe.so and the stub catalog
140StdBinCommands
141	clockconfig.cpp
142	query.cpp
143	: be localestub : $(haiku-utils_rsrc) ;
144
145# commands that need libbe.so, libsupc++.so and the stub catalog
146StdBinCommands
147	dstcheck.cpp
148	: be [ TargetLibsupc++ ] localestub : $(haiku-utils_rsrc) ;
149
150# Haiku-specific apps which need libbe.so
151StdBinCommands
152	isvolume.cpp
153	shutdown.cpp
154	: be : $(haiku-utils_rsrc) ;
155
156# standard commands that need libbe.so, libstdc++.so
157StdBinCommands
158	copyattr.cpp
159	setmime.cpp
160	xres.cpp
161	: be [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
162
163# Haiku-specific apps which need libbe.so, libstdc++.so
164StdBinCommands
165	mountvolume.cpp
166	: be [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
167
168# commands that need libstdc++ only
169StdBinCommands
170	diff_zip.cpp
171	sysinfo.cpp
172	: [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
173
174# commands that need libstdc++ and lubncurses
175StdBinCommands
176	top.cpp
177	: [ BuildFeatureAttribute ncurses : library ] [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
178
179
180# standard commands that need libbe.so, libtranslation.so, libsupc++.so
181StdBinCommands
182	translate.cpp
183	: be translation [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
184
185# standard commands that need libbe.so, libtranslation.so, libicon.a, libstdc++.so
186StdBinCommands
187	notify.cpp
188	: be translation libicon.a [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
189
190# standard commands that need libbe.so, libmedia.so
191StdBinCommands
192	installsound.cpp
193	: be libmedia.so : $(haiku-utils_rsrc) ;
194
195# standard commands that need libbe.so, libmedia.so, libsupc++.so
196StdBinCommands
197	setvolume.cpp
198	: be libmedia.so [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
199
200# standard commands that need libbe.so, libpackage.so, libsupc++.so
201StdBinCommands
202	findpaths.cpp
203	: be package [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
204
205# standard commands that need libbe.so, libdevice.so
206StdBinCommands
207	setusbconfig.cpp
208	: be libdevice.so : $(haiku-utils_rsrc) ;
209
210# standard commands that need libbluetooth.so, due the Bluetooth Kit
211StdBinCommands
212	bt_dev_info.cpp
213	: be libbluetooth.so : $(haiku-utils_rsrc) ;
214
215StdBinCommands
216	bt_discovery.cpp
217	: be libbluetooth.so [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
218
219
220# standard commands that need libbe.so, libbnetapi.so, libtracker.so
221StdBinCommands
222	checkitout.cpp
223	: be bnetapi tracker [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
224
225#standard commands that need libbe.so, libtracker.so and the catalog stub
226StdBinCommands
227	filepanel.cpp
228	: be tracker [ TargetLibsupc++ ] localestub : $(haiku-utils_rsrc) ;
229
230# mimeset needs libstorage_kit_mime.a
231StdBinCommands
232	mimeset.cpp
233	: be libstorage_kit_mime.a [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
234
235# Localization of some applications
236DoCatalogs dstcheck
237	: x-vnd.Haiku-cmd-dstconfig
238	: dstcheck.cpp
239;
240
241DoCatalogs filepanel
242	: x-vnd.mmu_man.filepanel
243	: filepanel.cpp
244;
245
246SubInclude HAIKU_TOP src bin addattr ;
247SubInclude HAIKU_TOP src bin bfs_tools ;
248SubInclude HAIKU_TOP src bin cddb_lookup ;
249SubInclude HAIKU_TOP src bin consoled ;
250SubInclude HAIKU_TOP src bin desklink ;
251SubInclude HAIKU_TOP src bin fwcontrol ;
252SubInclude HAIKU_TOP src bin hid_decode ;
253SubInclude HAIKU_TOP src bin keymap ;
254SubInclude HAIKU_TOP src bin keystore ;
255SubInclude HAIKU_TOP src bin listdev ;
256SubInclude HAIKU_TOP src bin listusb ;
257SubInclude HAIKU_TOP src bin locale ;
258SubInclude HAIKU_TOP src bin makebootable ;
259#SubInclude HAIKU_TOP src bin makeudfimage ;
260SubInclude HAIKU_TOP src bin mail_utils ;
261SubInclude HAIKU_TOP src bin media_client ;
262SubInclude HAIKU_TOP src bin mkdos ;
263SubInclude HAIKU_TOP src bin mkfs ;
264SubInclude HAIKU_TOP src bin multiuser ;
265SubInclude HAIKU_TOP src bin package ;
266SubInclude HAIKU_TOP src bin package_repo ;
267SubInclude HAIKU_TOP src bin pc ;
268SubInclude HAIKU_TOP src bin pcmcia-cs ;
269SubInclude HAIKU_TOP src bin pkgman ;
270SubInclude HAIKU_TOP src bin rc ;
271SubInclude HAIKU_TOP src bin screen_blanker ;
272SubInclude HAIKU_TOP src bin screenmode ;
273SubInclude HAIKU_TOP src bin writembr ;
274
275# debugging tools
276SubInclude HAIKU_TOP src bin debug ;
277
278# Network command line tools
279SubInclude HAIKU_TOP src bin network ;
280
281# Other stuff
282SubInclude HAIKU_TOP src bin filteredquery ;
283