summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2013-12-16 17:26:34 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2013-12-18 07:15:49 +0100
commitd8bbae2fd6786c2647b7b59e54d9dabdd47603d7 (patch)
treed51d9683d59c320fe8ec6fe64b804927d674b70f /android
parente20f27f0a04a3c0c0ba38a2b78f5c2591e27bbc0 (diff)
Get more --disable-dynamic-loading code out of shlib.cxx.
It's not terribly nice, but, hopefully, better. The hope is that one day, lo_get_library_map will be no more. In lo_get_implementation_map we can specify more precisely what to link into the binary. Change-Id: I99a1854fbae05be2f70302cc56bea88e522ec129
Diffstat (limited to 'android')
-rw-r--r--android/experimental/DocumentLoader/native-code.cxx16
-rw-r--r--android/experimental/LibreOffice4Android/native-code.cxx16
-rw-r--r--android/experimental/desktop/native-code.cxx16
3 files changed, 45 insertions, 3 deletions
diff --git a/android/experimental/DocumentLoader/native-code.cxx b/android/experimental/DocumentLoader/native-code.cxx
index a444eb55a952..43949ef26dce 100644
--- a/android/experimental/DocumentLoader/native-code.cxx
+++ b/android/experimental/DocumentLoader/native-code.cxx
@@ -12,9 +12,10 @@
extern "C"
__attribute__ ((visibility("default")))
const lib_to_component_mapping *
-lo_get_libmap(void)
+lo_get_library_map(void)
{
static lib_to_component_mapping map[] = {
+ NON_APP_SPECIFIC_COMPONENT_MAP
{ "libanimcorelo.a", animcore_component_getFactory },
{ "libavmedialo.a", avmedia_component_getFactory },
{ "libdbalo.a", dba_component_getFactory },
@@ -59,4 +60,17 @@ lo_get_libmap(void)
return map;
}
+extern "C"
+__attribute__ ((visibility("default")))
+const lib_to_component_mapping *
+lo_get_implementation_map(void)
+{
+ static lib_to_component_mapping map[] = {
+ NON_APP_SPECIFIC_DIRECT_COMPONENT_MAP
+ { NULL, NULL }
+ };
+
+ return map;
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/android/experimental/LibreOffice4Android/native-code.cxx b/android/experimental/LibreOffice4Android/native-code.cxx
index af0f5b7c81dd..2ec81496af3d 100644
--- a/android/experimental/LibreOffice4Android/native-code.cxx
+++ b/android/experimental/LibreOffice4Android/native-code.cxx
@@ -12,9 +12,10 @@
extern "C"
__attribute__ ((visibility("default")))
const lib_to_component_mapping *
-lo_get_libmap(void)
+lo_get_library_map(void)
{
static lib_to_component_mapping map[] = {
+ NON_APP_SPECIFIC_COMPONENT_MAP
{ "libanimcorelo.a", animcore_component_getFactory },
{ "libavmedialo.a", avmedia_component_getFactory },
{ "libbasprov.uno.a", basprov_component_getFactory },
@@ -77,4 +78,17 @@ lo_get_libmap(void)
return map;
}
+extern "C"
+__attribute__ ((visibility("default")))
+const lib_to_component_mapping *
+lo_get_implementation_map(void)
+{
+ static lib_to_component_mapping map[] = {
+ NON_APP_SPECIFIC_DIRECT_COMPONENT_MAP
+ { NULL, NULL }
+ };
+
+ return map;
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/android/experimental/desktop/native-code.cxx b/android/experimental/desktop/native-code.cxx
index 8d961fb3dcba..b4f15aacae4f 100644
--- a/android/experimental/desktop/native-code.cxx
+++ b/android/experimental/desktop/native-code.cxx
@@ -12,9 +12,10 @@
extern "C"
__attribute__ ((visibility("default")))
const lib_to_component_mapping *
-lo_get_libmap(void)
+lo_get_library_map(void)
{
static lib_to_component_mapping map[] = {
+ NON_APP_SPECIFIC_COMPONENT_MAP
{ "libanimcorelo.a", animcore_component_getFactory },
{ "libavmedialo.a", avmedia_component_getFactory },
{ "libbasprovlo.a", basprov_component_getFactory },
@@ -89,4 +90,17 @@ lo_get_libmap(void)
return map;
}
+extern "C"
+__attribute__ ((visibility("default")))
+const lib_to_component_mapping *
+lo_get_implementation_map(void)
+{
+ static lib_to_component_mapping map[] = {
+ NON_APP_SPECIFIC_DIRECT_COMPONENT_MAP
+ { NULL, NULL }
+ };
+
+ return map;
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */