xref: /haiku/src/tools/Jamfile (revision c90684742e7361651849be4116d0e5de3a817194)
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>generate_attribute_stores
12	<build>listattr
13	<build>mimeset
14	<build>mkindex
15	<build>rm_attrs_tmp
16	<build>rmattr
17	<build>settype
18	<build>setversion
19	<build>xres
20	<build>generate_boot_screen
21;
22
23USES_BE_API on $(tools) = true ;
24
25# TODO: temporary kludge
26local libHaikuCompat ;
27if $(HOST_PLATFORM) in r5 bone dano {
28	ObjectC++Flags database_support.cpp UpdateMimeInfoThread.cpp
29		MimeUpdateThread.cpp
30		: -include [ FDirName $(HAIKU_TOP) headers build
31			HaikuBuildCompatibility.h ] ;
32	libHaikuCompat = libhaikucompat_build.a ;
33}
34
35BuildPlatformMain <build>catattr : catattr.cpp : $(HOST_LIBBE) ;
36
37UsePrivateObjectHeaders copyattr.cpp : shared : : true ;
38BuildPlatformMain <build>copyattr : copyattr.cpp
39	: $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ;
40
41BuildPlatformMain <build>create_image : create_image.cpp : $(HOST_LIBSUPC++) ;
42
43BuildPlatformMain <build>data_to_source : data_to_source.cpp
44	: $(HOST_LIBSUPC++) ;
45
46BuildPlatformMain <build>generate_attribute_stores
47	: generate_attribute_stores.cpp : $(HOST_LIBBE) $(HOST_LIBSUPC++) ;
48
49UsePrivateObjectHeaders generate_boot_screen.cpp : shared : : true ;
50UsePrivateObjectHeaders ColorQuantizer.cpp : shared : : true ;
51BuildPlatformMain <build>generate_boot_screen :
52	generate_boot_screen.cpp
53	ColorQuantizer.cpp
54	: $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) png z ;
55
56BuildPlatformMain <build>listattr : listattr.cpp : $(HOST_LIBBE) ;
57
58if $(HOST_PLATFORM_BEOS_COMPATIBLE) {
59	AddResources <build>mimeset : mimeset.rdef ;
60}
61BuildPlatformMain <build>mimeset :
62	mimeset.cpp
63	Mime.cpp
64	database_support.cpp
65	UpdateMimeInfoThread.cpp
66	MimeUpdateThread.cpp
67	: $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) $(libHaikuCompat)
68;
69
70BuildPlatformMain <build>mkindex : mkindex.cpp : $(HOST_LIBBE) ;
71
72# We want rm_attrs to be self-contained, so we link against the static libroot.
73HOST_LIBROOT on <build>rm_attrs_tmp = $(HOST_STATIC_LIBROOT) ;
74BuildPlatformMain <build>rm_attrs_tmp : rm_attrs.cpp
75	: $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) ;
76MakeLocateDebug <build>rm_attrs ;
77File <build>rm_attrs : <build>rm_attrs_tmp ;
78MODE on <build>rm_attrs = 755 ;
79
80BuildPlatformMain <build>rmattr : rmattr.cpp : $(HOST_LIBBE) ;
81
82BuildPlatformMain <build>set_haiku_revision : set_haiku_revision.cpp
83	: $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ;
84
85BuildPlatformMain <build>settype : settype.cpp : $(HOST_LIBBE)
86	$(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ;
87
88BuildPlatformMain <build>setversion : setversion.cpp : $(HOST_LIBBE)
89	$(HOST_LIBSTDC++) $(HOST_LIBSUPC++) $(libHaikuCompat) ;
90
91BuildPlatformMain <build>xres : xres.cpp : $(HOST_LIBBE) $(HOST_LIBSTDC++)
92	$(HOST_LIBSUPC++) ;
93
94SEARCH on [ FGristFiles
95		Mime.cpp
96	] = [ FDirName $(HAIKU_TOP) src build libbe storage ] ;
97
98SEARCH on [ FGristFiles
99		UpdateMimeInfoThread.cpp MimeUpdateThread.cpp database_support.cpp
100	] = [ FDirName $(HAIKU_TOP) src build libbe storage mime ] ;
101
102SEARCH on [ FGristFiles
103		ColorQuantizer.cpp
104	] = [ FDirName $(HAIKU_TOP) src kits shared ] ;
105
106SubInclude HAIKU_TOP src tools addattr ;
107SubInclude HAIKU_TOP src tools anyboot ;
108SubInclude HAIKU_TOP src tools bfs_shell ;
109SubInclude HAIKU_TOP src tools cppunit ;
110SubInclude HAIKU_TOP src tools docbook ;
111SubInclude HAIKU_TOP src tools elfsymbolpatcher ;
112SubInclude HAIKU_TOP src tools fixup_amiga_boot_checksum ;
113SubInclude HAIKU_TOP src tools fixup_tos_boot_checksum ;
114SubInclude HAIKU_TOP src tools fs_shell ;
115SubInclude HAIKU_TOP src tools gensyscalls ;
116SubInclude HAIKU_TOP src tools hack_coff ;
117SubInclude HAIKU_TOP src tools keymap ;
118SubInclude HAIKU_TOP src tools locale ;
119SubInclude HAIKU_TOP src tools makebootable ;
120SubInclude HAIKU_TOP src tools rc ;
121SubInclude HAIKU_TOP src tools remote_disk_server ;
122SubInclude HAIKU_TOP src tools resattr ;
123SubInclude HAIKU_TOP src tools rman ;
124SubInclude HAIKU_TOP src tools translation ;
125SubInclude HAIKU_TOP src tools unzip ;
126SubInclude HAIKU_TOP src tools vmdkimage ;
127SubInclude HAIKU_TOP src tools unflatten ;
128SubInclude HAIKU_TOP src tools zip ;
129
130