summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-12-15 10:15:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-12-19 12:35:41 +0000
commit002a83fca94dd34cc30a58162c3316e371478308 (patch)
tree13e2d4e38a2dc1e2eea5b52a138b2add6a3450cf /sal
parent406a08c8a12dcaa6bf4a17ae3aa6d6d27bb10446 (diff)
this textenc hack is for android and disable-dynamic-loading
Change-Id: If2191161e82fc1e05b1442ae4b3b729cc1b8994d Reviewed-on: https://gerrit.libreoffice.org/32038 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/Library_sal.mk12
-rw-r--r--sal/Module_sal.mk3
2 files changed, 11 insertions, 4 deletions
diff --git a/sal/Library_sal.mk b/sal/Library_sal.mk
index 868dea4a0f74..4bf9021e7ebe 100644
--- a/sal/Library_sal.mk
+++ b/sal/Library_sal.mk
@@ -126,8 +126,7 @@ $(eval $(call gb_Library_add_cxxflags,sal,\
))
endif
-ifeq ($(OS),ANDROID)
-$(eval $(call gb_Library_add_exception_objects,sal,\
+sal_textenc_code= \
sal/textenc/context \
sal/textenc/convertbig5hkscs \
sal/textenc/converteuctw \
@@ -141,6 +140,15 @@ $(eval $(call gb_Library_add_exception_objects,sal,\
sal/textenc/tcvtbyte \
sal/textenc/tcvtmb \
sal/textenc/tcvtutf7 \
+
+ifeq ($(OS),ANDROID)
+$(eval $(call gb_Library_add_exception_objects,sal,\
+ $(sal_textenc_code) \
+))
+else ifeq ($(DISABLE_DYNLOADING),TRUE)
+
+$(eval $(call gb_Library_add_exception_objects,sal,\
+ $(sal_textenc_code) \
))
endif
diff --git a/sal/Module_sal.mk b/sal/Module_sal.mk
index 46ca260b6c5f..668ee209bc87 100644
--- a/sal/Module_sal.mk
+++ b/sal/Module_sal.mk
@@ -14,8 +14,7 @@ $(eval $(call gb_Module_add_targets,sal,\
$(if $(filter $(OS),ANDROID), \
Library_lo-bootstrap) \
Library_sal \
- $(if $(filter $(OS),ANDROID),, \
- Library_sal_textenc) \
+ $(if $(filter $(OS),ANDROID),,$(if $(filter TRUE,$(DISABLE_DYNLOADING)),,Library_sal_textenc)) \
$(if $(filter $(OS),WNT), \
Library_uwinapi) \
))