summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-02-02 23:25:56 +0200
committerTor Lillqvist <tml@iki.fi>2013-02-03 11:37:54 +0200
commit4783eea7269010910879ed3584b229d9492a2ddc (patch)
treef0fec979a9b1e256af32837a269eddec50503628 /Makefile.in
parent8517b6162e5531e733a0b2ffe8106873d8e0d082 (diff)
Experiment with sandboxing
Change-Id: If491917069ef7c474c27190c4759dd75f025f032
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index c0425f8db6e8..6565ab8d47ab 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -324,7 +324,13 @@ install-strip:
echo "Installation finished, you can now execute:" && \
echo "$(INSTALLDIR)/program/soffice"
-dev-install: build
+ifeq ($(ENABLE_MACOSX_SANDBOX),YES)
+entitlements:=--entitlements $(SRC_ROOT)/lo.xcent
+endif
+
+dev-install: build do-dev-install
+
+do-dev-install:
@rm -rf $(DEVINSTALLDIR)
@mkdir $(DEVINSTALLDIR)
ifeq ($(OS_FOR_BUILD),WNT)
@@ -363,6 +369,7 @@ ifneq ($(MACOSX_CODESIGNING_IDENTITY),)
# Yeah, we don't bundle any other framework than our Python one, and
# it has just one version, so this generic search is mostly for
# completeness.
+#
for framework in `find $(DEVINSTALLDIR)/opt/LibreOffice.app -name '*.framework' -type d`; do \
for version in $$framework/Versions/*; do \
test -d $$version && codesign --force --verbose --prefix=$(MACOSX_BUNDLE_IDENTIFIER). --sign $(MACOSX_CODESIGNING_IDENTITY) $$version; \
@@ -374,7 +381,10 @@ ifneq ($(MACOSX_CODESIGNING_IDENTITY),)
# The soffice binary will have been signed after linking but it needs
# to be re-signed as it has been renamed, or modified, or something
# after linking.
- codesign --force --verbose --sign $(MACOSX_CODESIGNING_IDENTITY) $(DEVINSTALLDIR)/opt/LibreOffice.app
+#
+# At this stage we also attach the entitlements in the sandboxing case
+#
+ codesign --force --verbose --sign $(MACOSX_CODESIGNING_IDENTITY) $(entitlements) $(DEVINSTALLDIR)/opt/LibreOffice.app
#
endif
@install-gdb-printers -L