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 29# TODO: temporary kludge 30local libHaikuCompat ; 31if $(HOST_PLATFORM) in r5 bone dano { 32 ObjectC++Flags database_support.cpp UpdateMimeInfoThread.cpp 33 MimeUpdateThread.cpp 34 : -include [ FDirName $(HAIKU_TOP) headers build 35 HaikuBuildCompatibility.h ] ; 36 libHaikuCompat = libhaikucompat_build.a ; 37} 38 39BuildPlatformMain <build>collectcatkeys : 40 collectcatkeys.cpp 41 PlainTextCatalog.cpp 42 HashMapCatalog.cpp 43 Catalog.cpp 44 CatalogData.cpp 45 RegExp.cpp 46 : $(HOST_LIBBE) $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) ; 47 48BuildPlatformMain <build>linkcatkeys : 49 linkcatkeys.cpp 50 PlainTextCatalog.cpp 51 HashMapCatalog.cpp 52 DefaultCatalog.cpp 53 Catalog.cpp 54 CatalogData.cpp 55 : $(HOST_LIBBE) $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) ; 56