Add a new way of using the locale kit with static accessors instead of global variables. This has the following consequences :
* Applications don't have to declare BCatalog fCatalog themselves, it's now done automatically * Libs and add-ons can be localized just the same way (except static libraries) For now this new system is yet disabled as I'm looking for some peer review before going on. To enable it you have to define B_TRANSLATE_USE_NEW_MACROS in each file doing catalog access. This will not stay, I'll update the other apps to use it. The linking in jamfiles must be not only with liblocale.so, but also liblocalestub.a. Not sure how to handle this for user-side applications. Libraries are also required to provide a MIME signature to use any catalog. The locale preflet is updated to the new system (as a test). Othe rapps will follow if everyone is ok with this approach. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37323 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -456,11 +456,17 @@ if $(HAIKU_SHARED_LIBSUPC++) {
|
||||
HAIKU_LIBSUPC++ = $(HAIKU_SHARED_LIBSUPC++) ;
|
||||
}
|
||||
|
||||
|
||||
# network libraries
|
||||
HAIKU_NETWORK_LIBS = network ;
|
||||
HAIKU_NETAPI_LIB = bnetapi ;
|
||||
HAIKU_SELECT_UNAME_ETC_LIB = ; # libroot, against which we link anyway
|
||||
|
||||
|
||||
# locale libraries
|
||||
HAIKU_LOCALE_LIBS = liblocale.so liblocalestub.a ;
|
||||
|
||||
|
||||
# library and executable glue code
|
||||
local commonGlueCode =
|
||||
<src!system!glue>init_term_dyn.o
|
||||
|
||||
Reference in New Issue
Block a user