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# We link against the host libbe.so which could also contain this class, so 19# rename it for locale tools 20DEFINES += DefaultCatalog=ToolsDefaultCatalog ; 21 22USES_BE_API on $(localetools) = true ; 23 24UseLibraryHeaders icu ; 25 26# TODO: temporary kludge 27local libHaikuCompat ; 28if $(HOST_PLATFORM) in r5 bone dano { 29 ObjectC++Flags database_support.cpp UpdateMimeInfoThread.cpp 30 MimeUpdateThread.cpp 31 : -include [ FDirName $(HAIKU_TOP) headers build 32 HaikuBuildCompatibility.h ] ; 33 libHaikuCompat = libhaikucompat_build.a ; 34} 35 36BuildPlatformMain <build>collectcatkeys : 37 collectcatkeys.cpp 38 PlainTextCatalog.cpp 39 HashMapCatalog.cpp 40 Catalog.cpp 41 CatalogData.cpp 42 RegExp.cpp 43 : $(HOST_LIBBE) $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) ; 44 45BuildPlatformMain <build>linkcatkeys : 46 linkcatkeys.cpp 47 PlainTextCatalog.cpp 48 HashMapCatalog.cpp 49 DefaultCatalog.cpp 50 Catalog.cpp 51 CatalogData.cpp 52 : $(HOST_LIBBE) $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) ; 53