xref: /haiku/src/tools/locale/Jamfile (revision 85fb3e7df81f8d5b6e47a9a64a53873ea906ea6e)
1SubDir HAIKU_TOP src tools locale ;
2
3UsePublicHeaders locale ;
4UsePrivateHeaders locale ;
5UsePrivateHeaders shared ;
6
7SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits locale ] ;
8SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits tracker ] ;
9
10local localetools =
11	<build>linkcatkeys
12	<build>collectcatkeys
13;
14
15# Due to the use of STL fstream open() mapping the function names via macro
16# name doesn't work.
17DEFINES += _HAIKU_BUILD_DONT_REMAP_FD_FUNCTIONS ;
18
19USES_BE_API on $(localetools) = true ;
20
21UseLibraryHeaders icu ;
22
23# TODO: temporary kludge
24local libHaikuCompat ;
25if $(HOST_PLATFORM) in r5 bone dano {
26	ObjectC++Flags database_support.cpp UpdateMimeInfoThread.cpp
27		MimeUpdateThread.cpp
28		: -include [ FDirName $(HAIKU_TOP) headers build
29			HaikuBuildCompatibility.h ] ;
30	libHaikuCompat = libhaikucompat_build.a ;
31}
32
33BuildPlatformMain <build>collectcatkeys :
34	collectcatkeys.cpp
35	PlainTextCatalog.cpp
36	HashMapCatalog.cpp
37	Catalog.cpp
38	CatalogData.cpp
39	RegExp.cpp
40	: $(HOST_LIBBE)  $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) ;
41
42BuildPlatformMain <build>linkcatkeys :
43	linkcatkeys.cpp
44	PlainTextCatalog.cpp
45	HashMapCatalog.cpp
46	DefaultCatalog.cpp
47	Catalog.cpp
48	CatalogData.cpp
49	: $(HOST_LIBBE) $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) ;
50