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