summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-08-12 16:50:17 +0300
committerTor Lillqvist <tml@collabora.com>2014-08-12 17:03:31 +0300
commit3442b004e6263cb0526b0c2d96318d21623eec2b (patch)
tree093886182219aaf47af4b4f1d288a291344d60b8
parent323142c678d0b3c46d6a33c9e44c9a150d6fe3b9 (diff)
Now that we build NSS, we can build libxmlsec and libxsec_xmlsec for iOS, too
Change-Id: I65ab8aad0744a2aa254fefc7732cd8130bb249fb
-rw-r--r--RepositoryExternal.mk2
-rwxr-xr-xbin/lo-all-static-libs5
-rw-r--r--external/libxmlsec/ExternalProject_xmlsec.mk2
-rw-r--r--external/libxmlsec/Module_libxmlsec.mk2
-rw-r--r--postprocess/Rdb_services.mk3
-rwxr-xr-xsolenv/bin/native-code.py1
-rw-r--r--xmlsecurity/Module_xmlsecurity.mk2
7 files changed, 12 insertions, 5 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 6f6d787a84ce..621ff4126eb1 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -3226,7 +3226,7 @@ endif # GUIBASE=unx
gb_ExternalProject__use_nss3:=
-ifeq (,$(filter DESKTOP,$(BUILD_TYPE)))
+ifeq ($(OS),ANDROID)
gb_LinkTarget__use_nss3:=
diff --git a/bin/lo-all-static-libs b/bin/lo-all-static-libs
index 01fc3cfc8b51..75321644211b 100755
--- a/bin/lo-all-static-libs
+++ b/bin/lo-all-static-libs
@@ -42,6 +42,11 @@ ANDROID)
;;
IOS)
oslibs="$WORKDIR/UnpackedTarball/icu/source/stubdata/*.a"
+ oslibs="$oslibs $WORKDIR/UnpackedTarball/xmlsec/src/.libs/*.a"
+ oslibs="$oslibs $WORKDIR/UnpackedTarball/xmlsec/src/nss/.libs/*.a"
+ # Unfortunately NSS's build mechanism copies each static archive
+ # it constructs to another place, but we don't bother filtering
+ # out duplicates, it shouldn't hurt.
nsslibs=`find $WORKDIR/UnpackedTarball/nss -name 'lib*.a'`
;;
*)
diff --git a/external/libxmlsec/ExternalProject_xmlsec.mk b/external/libxmlsec/ExternalProject_xmlsec.mk
index f554ec839d7e..e6bdf4f742ac 100644
--- a/external/libxmlsec/ExternalProject_xmlsec.mk
+++ b/external/libxmlsec/ExternalProject_xmlsec.mk
@@ -50,7 +50,7 @@ else
$(call gb_ExternalProject_get_state_target,xmlsec,build) :
$(call gb_ExternalProject_run,build,\
- $(if $(filter MACOSX,$(OS)),ACLOCAL="aclocal -I $(SRCDIR)/m4/mac") \
+ $(if $(filter IOS MACOSX,$(OS)),ACLOCAL="aclocal -I $(SRCDIR)/m4/mac") \
$(if $(filter AIX,$(OS)),ACLOCAL="aclocal -I /opt/freeware/share/aclocal") \
autoreconf \
&& ./configure \
diff --git a/external/libxmlsec/Module_libxmlsec.mk b/external/libxmlsec/Module_libxmlsec.mk
index 3e51e4ace55f..491dec7986f6 100644
--- a/external/libxmlsec/Module_libxmlsec.mk
+++ b/external/libxmlsec/Module_libxmlsec.mk
@@ -9,7 +9,7 @@
$(eval $(call gb_Module_Module,libxmlsec))
-ifneq ($(filter-out ANDROID IOS,$(OS)),)
+ifneq ($(filter-out ANDROID,$(OS)),)
$(eval $(call gb_Module_add_targets,libxmlsec,\
UnpackedTarball_xmlsec \
ExternalPackage_xmlsec \
diff --git a/postprocess/Rdb_services.mk b/postprocess/Rdb_services.mk
index 4fab2adec205..b88e76378a84 100644
--- a/postprocess/Rdb_services.mk
+++ b/postprocess/Rdb_services.mk
@@ -110,6 +110,8 @@ $(eval $(call gb_Rdb_add_components,services,\
xmlscript/util/xmlscript \
xmlsecurity/util/xmlsecurity \
xmlsecurity/util/xsec_fw \
+ $(if $(filter-out ANDROID,$(OS)), \
+ xmlsecurity/util/xsec_xmlsec$(if $(filter WNT,$(OS)),.windows)) \
$(if $(ENABLE_COINMP), \
sccomp/source/solver/coinmpsolver \
) \
@@ -330,7 +332,6 @@ $(eval $(call gb_Rdb_add_components,services,\
extensions/source/scanner/scn \
extensions/source/update/feed/updatefeed \
xmlhelp/util/ucpchelp1 \
- xmlsecurity/util/xsec_xmlsec$(if $(filter WNT,$(OS)),.windows) \
$(if $(filter-out WNT,$(OS)),\
shell/source/cmdmail/cmdmail \
) \
diff --git a/solenv/bin/native-code.py b/solenv/bin/native-code.py
index 9b3895cd4599..605406507ef2 100755
--- a/solenv/bin/native-code.py
+++ b/solenv/bin/native-code.py
@@ -46,6 +46,7 @@ core_factory_list = [
("libutllo.a", "utl_component_getFactory"),
("libxmlsecurity.a", "xmlsecurity_component_getFactory"),
("libxolo.a", "xo_component_getFactory"),
+ ("libxsec_xmlsec.a", "xsec_xmlsec_component_getFactory"),
("libxstor.a", "xstor_component_getFactory"),
]
diff --git a/xmlsecurity/Module_xmlsecurity.mk b/xmlsecurity/Module_xmlsecurity.mk
index fffd9666bc67..596ccad58778 100644
--- a/xmlsecurity/Module_xmlsecurity.mk
+++ b/xmlsecurity/Module_xmlsecurity.mk
@@ -12,7 +12,7 @@ $(eval $(call gb_Module_Module,xmlsecurity))
$(eval $(call gb_Module_add_targets,xmlsecurity,\
Library_xmlsecurity \
Library_xsec_fw \
- $(if $(filter-out IOS ANDROID,$(OS)),Library_xsec_xmlsec) \
+ $(if $(filter-out ANDROID,$(OS)),Library_xsec_xmlsec) \
))
$(eval $(call gb_Module_add_l10n_targets,xmlsecurity,\