xref: /haiku/src/tools/Jamfile (revision 0c93c0a807b27096abbfad677436afb7d1712d4a)
1SubDir HAIKU_TOP src tools ;
2
3UseHeaders [ FDirName $(HAIKU_TOP) headers build private app ] : true ;
4UseHeaders [ FDirName $(HAIKU_TOP) headers build private storage ] : true ;
5
6SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src/bin ] ;
7
8local tools =
9	<build>catattr
10	<build>copyattr
11	<build>listattr
12	<build>mimeset
13	<build>mkindex
14	<build>rmattr
15	<build>settype
16	<build>setversion
17	<build>xres
18;
19
20USES_BE_API on $(tools) = true ;
21
22BuildPlatformMain <build>catattr : catattr.cpp : $(HOST_LIBBE) ;
23
24BuildPlatformMain <build>copyattr : copyattr.cpp
25	: $(HOST_LIBBE) $(HOST_LIBSTDC++) ;
26
27BuildPlatformMain <build>listattr : listattr.cpp : $(HOST_LIBBE) ;
28
29if $(HOST_PLATFORM_BEOS_COMPATIBLE) {
30	AddResources <build>mimeset : mimeset.rdef ;
31}
32BuildPlatformMain <build>mimeset :
33	mimeset.cpp
34	Mime.cpp
35	database_support.cpp
36	UpdateMimeInfoThread.cpp
37	MimeUpdateThread.cpp
38	: $(HOST_LIBBE)
39;
40
41BuildPlatformMain <build>mkindex : mkindex.cpp : $(HOST_LIBBE) ;
42
43BuildPlatformMain <build>rmattr : rmattr.cpp : $(HOST_LIBBE) ;
44
45BuildPlatformMain <build>set_haiku_revision : set_haiku_revision.cpp
46	: $(HOST_LIBSTDC++) ;
47
48BuildPlatformMain <build>settype : settype.cpp : $(HOST_LIBBE) ;
49
50BuildPlatformMain <build>setversion : setversion.cpp : $(HOST_LIBBE) ;
51
52BuildPlatformMain <build>xres : xres.cpp : $(HOST_LIBBE) $(HOST_LIBSTDC++) ;
53
54SEARCH on [ FGristFiles
55		Mime.cpp
56	] = [ FDirName $(HAIKU_TOP) src build libbe storage ] ;
57
58SEARCH on [ FGristFiles
59		UpdateMimeInfoThread.cpp MimeUpdateThread.cpp database_support.cpp
60	] = [ FDirName $(HAIKU_TOP) src build libbe storage mime ] ;
61
62SubInclude HAIKU_TOP src tools copy_to_bfs_image ;
63SubInclude HAIKU_TOP src tools cppunit ;
64SubInclude HAIKU_TOP src tools docbook ;
65SubInclude HAIKU_TOP src tools elfsymbolpatcher ;
66SubInclude HAIKU_TOP src tools gensyscalls ;
67SubInclude HAIKU_TOP src tools keymap ;
68SubInclude HAIKU_TOP src tools makebootable ;
69SubInclude HAIKU_TOP src tools rc ;
70SubInclude HAIKU_TOP src tools remote_disk_server ;
71SubInclude HAIKU_TOP src tools resattr ;
72SubInclude HAIKU_TOP src tools rman ;
73SubInclude HAIKU_TOP src tools translation ;
74SubInclude HAIKU_TOP src tools vmdkheader ;
75SubInclude HAIKU_TOP src tools unflatten ;
76
77