ed583bf8d5
This introduces two concepts: a plugin and its loader (library) LO currrently has dependency cycles for some libraries. There is scui, which depends on sc, while sc dlopen's scui. There are the various vclplug_*, i18npool plugins, filters/gie, acc, etc. Usually these plugins link to their loader library, because they use its symbols. But as a result there is no sensible way to express the runtime dependency of loaders on the plugins. In GNU libtool plugins are called modules and they are implemented in an IMHO more sensible way by allowing missing symbols at link time. This way you can have a dependency from the loader library to its plugins, as the plugins don't depend on the loader, but you lose the link time detection of missing symbols. While this is in theory possible in LO too, LO currently has plugins, like acc (accessibility), loaded by tk (toolkit), which depends on svt (svtools), which itself depends on tk, so dropping the tk dependency for acc on its own doesn't help :-( And while the dependency of the plugins on their loader is fine for the shared / DYNLOADING build, for the "static" builds you must (somehow) link the plugins into the executables. I also codeified a few rules into the build system along with it: * just plugins are allowed to depend / link other plugins * plugins aren't allowed to be linked into the merge lib * plugin loaders are "limited" to libraries At the high level, this is implemented via new gbuild calls: * gb_Library_set_plugin_for,lib,loader: declare a library to be a plugin of a loader library and add a dependeny from the plugin library to the loader library * gb_Library_set_plugin_for_nodep,lib,loader: ^^^^ without adding the library dependeny * gb_Helper_register_plugins_for_install: "plugin" replacement for gb_Helper_register_libraries_for_install to implement some additional checks in the build system In the end this patch just adds a bit syntactic sugar and nothing changes for any build. Change-Id: I7b01d9c384cbc5838bd2cc93aff18e4868939d6e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126163 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de> |
||
---|---|---|
.. | ||
inc | ||
qa/cppunit | ||
source | ||
util | ||
CppunitTest_i18npool_defaultnumberingprovider.mk | ||
CppunitTest_i18npool_test_breakiterator.mk | ||
CppunitTest_i18npool_test_characterclassification.mk | ||
CppunitTest_i18npool_test_ordinalsuffix.mk | ||
CppunitTest_i18npool_test_textsearch.mk | ||
CustomTarget_breakiterator.mk | ||
CustomTarget_collator.mk | ||
CustomTarget_indexentry.mk | ||
CustomTarget_localedata.mk | ||
CustomTarget_textconversion.mk | ||
Executable_gencoll_rule.mk | ||
Executable_genconv_dict.mk | ||
Executable_gendict.mk | ||
Executable_genindex_data.mk | ||
Executable_saxparser.mk | ||
IwyuFilter_i18npool.yaml | ||
Library_collator_data.mk | ||
Library_dict_ja.mk | ||
Library_dict_zh.mk | ||
Library_i18npool.mk | ||
Library_i18nsearch.mk | ||
Library_index_data.mk | ||
Library_localedata_en.mk | ||
Library_localedata_es.mk | ||
Library_localedata_euro.mk | ||
Library_localedata_others.mk | ||
Library_textconv_dict.mk | ||
Makefile | ||
Module_i18npool.mk | ||
Rdb_saxparser.mk | ||
README.md |
Internationalisation Pool (i18npool) Framework
Internationalisation pool (i18npool) framework ensures that the suite is adaptable to the requirements of different native languages, their local settings and customs, etc without source code modification. (Wow, that is such marketing-speak...)
Specifically for locale data documentation please see i18npool/source/localedata/data/locale.dtd
On iOS we put the largest data generated here, the dict_ja
and dict_zh
stuff, into separate files and not into code to keep the size of an
app binary down. Temporary test code:
static bool beenhere = false;
if (!beenhere) {
beenhere = true;
uno::Reference< uno::XComponentContext > xComponentContext(::cppu::defaultBootstrap_InitialComponentContext());
uno::Reference< lang::XMultiComponentFactory > xMultiComponentFactoryClient( xComponentContext->getServiceManager() );
uno::Reference< uno::XInterface > xInterface =
xMultiComponentFactoryClient->createInstanceWithContext( "com.sun.star.i18n.BreakIterator_ja", xComponentContext );
}