xref: /haiku/src/bin/Jamfile (revision e433b3cfc3f089f7681f6d4e81d43f950ca6a440)
1SubDir HAIKU_TOP src bin ;
2
3HAIKU_MULTIPLE_LOCALIZED_TARGETS on $(SUBDIR) = 1 ;
4
5SetSubDirSupportedPlatformsBeOSCompatible ;
6
7AddSubDirSupportedPlatforms libbe_test ;
8
9UsePrivateHeaders app interface shared storage support tracker usb ;
10UsePrivateSystemHeaders ;
11SubDirHdrs $(HAIKU_TOP) src add-ons kernel file_cache ;
12UseBuildFeatureHeaders ncurses ;
13
14local haiku-utils_rsrc = [ FGristFiles haiku-utils.rsrc ] ;
15
16ResComp $(haiku-utils_rsrc) : [ FGristFiles haiku-utils.rdef ] ;
17
18AddResources checkitout : checkitout.rdef ;
19AddResources dstcheck : dstcheck.rdef ;
20AddResources fortune : fortune.rdef ;
21AddResources hey : hey.rdef ;
22AddResources mimeset : mimeset.rdef ;
23AddResources mountvolume : mountvolume.rdef ;
24AddResources notify : notify.rdef ;
25AddResources setmime : setmime.rdef ;
26AddResources urlwrapper : urlwrapper.rdef ;
27
28# standard commands that don't need any additional library
29StdBinCommands
30	badblocks.cpp
31	chop.c
32	clear.c
33	driveinfo.c
34	error.c
35	fortune.c
36	finddir.c
37	fstrim.cpp
38	hd.c
39	listarea.c
40	listimage.c
41	listport.c
42	listsem.c
43	logger.cpp
44	lsindex.cpp
45	prio.c
46	ps.c
47	release.c
48	renice.c
49	rescan.c
50	system_time.cpp
51	unchop.c
52	uptime.cpp
53	vmstat.cpp
54	: : $(haiku-utils_rsrc) ;
55
56# Commands which don't need another library that depend on
57# Haiku-specific code
58if $(TARGET_PLATFORM) = haiku {
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
70# standard commands that need libncurses.a
71Includes [ FGristFiles top.cpp watch.c ]
72	: [ BuildFeatureAttribute ncurses : headers ] ;
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	play.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 and libsupc++.so
116StdBinCommands
117	alert.cpp
118	eject.cpp
119	getarch.cpp
120	hey.cpp
121	reindex.cpp
122	resattr.cpp
123	screeninfo.cpp
124	setarch.cpp
125	setdecor.cpp
126	settype.cpp
127	spybmessage.cpp
128	urlwrapper.cpp
129	: be [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
130
131# standard commands that need libbe.so, libsupc++.so, and libshared.a
132StdBinCommands
133	ramdisk.cpp
134	: shared be [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
135
136# standard commands that need libbe.so, libbnetapi.so, libsupc++.so
137StdBinCommands
138	open.cpp
139	urlwrapper.cpp
140	: be bnetapi [ TargetLibsupc++ ] : $(haiku-utils_rsrc) ;
141
142# commands that need libbe.so and the stub catalog
143StdBinCommands
144	clockconfig.cpp
145	query.cpp
146	: be localestub : $(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
154if $(TARGET_PLATFORM) = haiku {
155StdBinCommands
156	isvolume.cpp
157	shutdown.cpp
158	: be : $(haiku-utils_rsrc) ;
159}
160
161# standard commands that need libbe.so, libstdc++.so
162StdBinCommands
163	copyattr.cpp
164	setmime.cpp
165	xres.cpp
166	: be [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
167
168# Haiku-specific apps which need libbe.so, libstdc++.so
169if $(TARGET_PLATFORM) = haiku {
170StdBinCommands
171	mountvolume.cpp
172	: be [ TargetLibstdc++ ] : $(haiku-utils_rsrc) ;
173}
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 addattr ;
254SubInclude HAIKU_TOP src bin bc ;
255SubInclude HAIKU_TOP src bin bfs_tools ;
256SubInclude HAIKU_TOP src bin cddb_lookup ;
257SubInclude HAIKU_TOP src bin compress ;
258SubInclude HAIKU_TOP src bin consoled ;
259SubInclude HAIKU_TOP src bin coreutils ;
260SubInclude HAIKU_TOP src bin desklink ;
261SubInclude HAIKU_TOP src bin fwcontrol ;
262SubInclude HAIKU_TOP src bin hid_decode ;
263SubInclude HAIKU_TOP src bin keymap ;
264SubInclude HAIKU_TOP src bin keystore ;
265SubInclude HAIKU_TOP src bin listdev ;
266SubInclude HAIKU_TOP src bin listusb ;
267SubInclude HAIKU_TOP src bin locale ;
268SubInclude HAIKU_TOP src bin makebootable ;
269#SubInclude HAIKU_TOP src bin makeudfimage ;
270SubInclude HAIKU_TOP src bin mail_utils ;
271SubInclude HAIKU_TOP src bin media_client ;
272SubInclude HAIKU_TOP src bin mkdos ;
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 rmd160 ;
282SubInclude HAIKU_TOP src bin screen_blanker ;
283SubInclude HAIKU_TOP src bin screenmode ;
284SubInclude HAIKU_TOP src bin writembr ;
285SubInclude HAIKU_TOP src bin zic ;
286
287# debugging tools
288SubInclude HAIKU_TOP src bin debug ;
289
290# Network command line tools
291SubInclude HAIKU_TOP src bin network ;
292
293# Other stuff
294SubInclude HAIKU_TOP src bin filteredquery ;
295