xref: /haiku/src/tools/locale/Jamfile (revision d3ff06683af390a4c2e83b69177e0a2eb76679bc)
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	RegExp.cpp
39	: $(HOST_LIBBE)  $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) ;
40
41BuildPlatformMain <build>linkcatkeys :
42	linkcatkeys.cpp
43	PlainTextCatalog.cpp
44	HashMapCatalog.cpp
45	DefaultCatalog.cpp
46	Catalog.cpp
47	: $(HOST_LIBBE) $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) ;
48