summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorjan Iversen <jani@libreoffice.org>2018-01-24 09:00:42 +0100
committerjan Iversen <jani@libreoffice.org>2018-01-25 17:29:55 +0100
commit376ba90ee29bb6da5c3c079575333577aea4fee0 (patch)
tree242bfa78d2e3406569300c7437a43872eac4c748 /ios
parent6aaa4693ab7665d6239ed57c221ea92c5554398d (diff)
iOS, corrected directory creation.
the setup mk did not always create the needed directories. and corrected typo Change-Id: I58a40a67d91101504b7802a1fc73105df68a4ca4
Diffstat (limited to 'ios')
-rw-r--r--ios/CustomTarget_iOS_setup.mk55
1 files changed, 31 insertions, 24 deletions
diff --git a/ios/CustomTarget_iOS_setup.mk b/ios/CustomTarget_iOS_setup.mk
index 6242354eeebe..b3e7843abba3 100644
--- a/ios/CustomTarget_iOS_setup.mk
+++ b/ios/CustomTarget_iOS_setup.mk
@@ -5,42 +5,54 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+
#- Env ------------------------------------------------------------------------
-IOSGEN := $(SRCDIR)/ios/generated
-IOSRES := $(IOSGEN)/resources
+IOSGEN = $(SRCDIR)/ios/generated
+IOSRES = $(IOSGEN)/resources
+IOSDIRS = $(IOSGEN) \
+ $(IOSGEN)/simulator \
+ $(IOSGEN)/debug \
+ $(IOSGEN)/release \
+ $(IOSRES) \
+ $(IOSRES)/services \
+ $(IOSRES)/program \
+ $(IOSRES)/share \
+ $(IOSRES)/share/config \
+ $(IOSRES)/share/filter \
+ $(WORKDIR)/ios
#- Top level -----------------------------------------------------------------
$(eval $(call gb_CustomTarget_CustomTarget,ios/iOS_setup))
-
-
$(call gb_CustomTarget_get_target,ios/iOS_setup): $(IOSGEN)/native-code.h
-
-#- Generate dynamic files ---------------------------------------------------
-$(IOSGEN) $(WORKDIR)/ios:
- $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),EN1,2)
- mkdir -p $(IOSGEN) $(IOSRES) $(IOSRES)/services \
- $(IOSRES)/share/config $(IOSRES)/share/filter $(IOSRES)/program \
- $(IOSGEN)/simulator \
- $(IOSGEN)/debug \
- $(IOSGEN)/release \
- $(WORKDIR)/ios;
-
+#- create directories --------------------------------------------------------
+$(IOSDIRS):
+ $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),MKD,2)
+ mkdir -p $(IOSDIRS)
+#- Generate resources --------------------------------------------------------
$(IOSGEN)/native-code.h: $(BUILDDIR)/config_host.mk \
$(SRCDIR)/ios/CustomTarget_iOS_setup.mk \
$(SRCDIR)/solenv/bin/native-code.py \
- $(IOSGEN) $(WORKDIR)/ios
+ $(IOSGEN) $(WORKDIR)/ios \
+ $(IOSDIRS)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),EN2,2)
+
+ # Secure LibreOffice.c get build if there are changes
+ rm -rf $(WORKDIR)/ios/*
+
+ # generate native-code.h (used by LibreOffice.c)
$(SRCDIR)/solenv/bin/native-code.py \
-C -g core -g writer -g calc -g draw -g edit \
> $(IOSGEN)/native-code.h
- # generate resource files used to start/run LibreOffice
+ # copy resource files used to start/run LibreOffice
cp $(WORKDIR)/UnpackedTarball/icu/source/data/in/icudt60l.dat $(IOSRES)/icudt60l.dat
cp $(INSTDIR)/program/types.rdb $(IOSRES)/udkapi.rdb
cp $(INSTDIR)/program/types/offapi.rdb $(IOSRES)
@@ -54,13 +66,12 @@ $(IOSGEN)/native-code.h: $(BUILDDIR)/config_host.mk \
cp $(INSTDIR)/share/filter/vml-shape-types $(IOSRES)/share/filter
cp -R $(INSTDIR)/share/registry $(IOSRES)/share
- # Set up rc, the "inifile". See getIniFileName_Impl().
+ # Set up rc (the "inifile", fundamentalrc, unorc, bootstraprc and versionrc.
(echo '[Bootstrap]' \
&& echo 'URE_BOOTSTRAP=file://$$APP_DATA_DIR/fundamentalrc' \
&& echo 'HOME=$$SYSUSERHOME' \
) > $(IOSRES)/rc
- # Set up fundamentalrc, unorc, bootstraprc and versionrc.
(echo '[Bootstrap]' \
&& echo 'BRAND_BASE_DIR=file://$$APP_DATA_DIR' \
&& echo 'BRAND_INI_DIR=file:://$$APP_DATA_DIR' \
@@ -92,12 +103,10 @@ $(IOSGEN)/native-code.h: $(BUILDDIR)/config_host.mk \
) > $(IOSRES)/program/versionrc
-
#- clean ios -----------------------------------------------------------------
$(call gb_CustomTarget_get_clean_target,ios/iOS_setup):
$(call gb_Output_announce,$(subst $(WORKDIR)/Clean/,,$@),$(false),ENV,2)
- echo $(call gb_StaticLibrary_get_target,iOS_kitBridge)
- rm -rf $(IOSRES) $(IOSGEN)/native-code.h $(IOSGEN)/build
+ rm -rf $(IOSRES)/* $(IOSGEN)/native-code.h $(IOSGEN)/build
rm -rf $(WORKDIR)/ios
ifeq ($(ENABLE_DEBUG),TRUE)
ifeq ($(CPUNAME),X86_64)
@@ -111,6 +120,4 @@ ifeq ($(CPUNAME),ARM64)
endif
endif
-
-
# vim: set noet sw=4 ts=4: