summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorjan Iversen <jani@libreoffice.org>2018-01-08 15:36:51 +0100
committerjan Iversen <jani@libreoffice.org>2018-01-08 17:11:50 +0100
commitcdfd99e27d4c72b43b8f36a6c62c86c68b463199 (patch)
treeb1de7f3755c184f670db92609b159ac7f2c51c14 /ios
parentee3edd994597e751baa279b9cafc14c3db6e39f1 (diff)
iOS, codesigning .dylib
.dylib can only be loaded if signed, so added codesign to make In order not to expose the code identity, this is added through use of an environment variable IOS_CODESIGN Change-Id: I03ee7a6f2bfa8493a08b3e90163ab6c68d3c94a9
Diffstat (limited to 'ios')
-rw-r--r--ios/CustomTarget_iOS_prelink.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/ios/CustomTarget_iOS_prelink.mk b/ios/CustomTarget_iOS_prelink.mk
index affd32e5bf59..fec4fd271511 100644
--- a/ios/CustomTarget_iOS_prelink.mk
+++ b/ios/CustomTarget_iOS_prelink.mk
@@ -64,6 +64,13 @@ $(IOSKIT): $(WORKDIR)/CObject/ios/source/LibreOfficeKit.o
$(WORKDIR)/CObject/ios/source/LibreOfficeKit.o \
`$(SRCDIR)/bin/lo-all-static-libs` \
-o $(IOSKIT)
+ifeq ($(origin IOS_CODEID),undefined)
+ @echo "please define environment variable IOS_CODEID as\n" \
+ "export IOS_CODEID=<your apple code identifier>"
+ @exit -1
+else
+ codesign -s "$(IOS_CODEID)" $(IOSKIT)
+endif