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# Use empty translation macros to avoid a dependency on the locale kit 19DEFINES += B_AVOID_TRANSLATION_MACROS 'B_TRANSLATE_NOCOLLECT(x)=x' 20 'B_TRANSLATE_MARK(x)=x' ; 21# We link against the host libbe.so which could also contain this class, so 22# rename it for locale tools 23DEFINES += DefaultCatalog=ToolsDefaultCatalog ; 24 25USES_BE_API on $(localetools) = true ; 26 27UseLibraryHeaders icu ; 28 29BuildPlatformMain <build>collectcatkeys : 30 collectcatkeys.cpp 31 PlainTextCatalog.cpp 32 HashMapCatalog.cpp 33 Catalog.cpp 34 CatalogData.cpp 35 RegExp.cpp 36 : $(HOST_LIBBE) $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) ; 37 38BuildPlatformMain <build>linkcatkeys : 39 linkcatkeys.cpp 40 PlainTextCatalog.cpp 41 HashMapCatalog.cpp 42 DefaultCatalog.cpp 43 Catalog.cpp 44 CatalogData.cpp 45 : $(HOST_LIBBE) $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) ; 46