lokdialog: Convert the Format -> ... -> Area... to async exec.
[LibreOffice.git] / ios / CustomTarget_iOS_setup.mk
blob543ef306a7db671881203c52f6081c0d392c8b74
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 #- Env ------------------------------------------------------------------------
9 IOSGEN := $(SRCDIR)/ios/generated
10 IOSRES := $(IOSGEN)/resources
13 #- Top level -----------------------------------------------------------------
14 $(eval $(call gb_CustomTarget_CustomTarget,ios/iOS_setup))
18 $(call gb_CustomTarget_get_target,ios/iOS_setup): $(IOSGEN)/native-code.h
22 #- Generate dynamic files ---------------------------------------------------
23 $(IOSGEN) $(WORKDIR)/ios:
24 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),EN1,2)
25 mkdir -p $(IOSGEN) $(IOSRES) $(IOSRES)/services \
26 $(IOSRES)/share/config $(IOSRES)/share/filter $(IOSRES)/program \
27 $(IOSGEN)/simulator \
28 $(IOSGEN)/debug \
29 $(IOSGEN)/release \
30 $(WORKDIR)/ios;
34 $(IOSGEN)/native-code.h: $(BUILDDIR)/config_host.mk \
35 $(SRCDIR)/ios/CustomTarget_iOS_setup.mk \
36 $(SRCDIR)/solenv/bin/native-code.py \
37 $(IOSGEN) $(WORKDIR)/ios
38 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),EN2,2)
39 $(SRCDIR)/solenv/bin/native-code.py \
40 -C -g core -g writer -g calc -g draw -g edit \
41 > $(IOSGEN)/native-code.h
43 # generate resource files used to start/run LibreOffice
44 cp $(WORKDIR)/UnpackedTarball/icu/source/data/in/icudt60l.dat $(IOSRES)/icudt60l.dat
45 cp $(INSTDIR)/program/types.rdb $(IOSRES)/udkapi.rdb
46 cp $(INSTDIR)/program/types/offapi.rdb $(IOSRES)
47 cp $(INSTDIR)/program/types/oovbaapi.rdb $(IOSRES)
48 cp $(INSTDIR)/program/services/services.rdb $(IOSRES)/services
49 cp $(INSTDIR)/program/services.rdb $(IOSRES)
50 cp -R $(INSTDIR)/share/config/soffice.cfg $(IOSRES)/share/config
51 cp $(WORKDIR)/CustomTarget/i18npool/breakiterator/dict_*.data $(IOSRES)/share
52 cp $(INSTDIR)/share/filter/oox-drawingml-adj-names $(IOSRES)/share/filter
53 cp $(INSTDIR)/share/filter/oox-drawingml-cs-presets $(IOSRES)/share/filter
54 cp $(INSTDIR)/share/filter/vml-shape-types $(IOSRES)/share/filter
55 cp -R $(INSTDIR)/share/registry $(IOSRES)/share
57 # Set up rc, the "inifile". See getIniFileName_Impl().
58 (echo '[Bootstrap]' \
59 && echo 'URE_BOOTSTRAP=file://$$APP_DATA_DIR/fundamentalrc' \
60 && echo 'HOME=$$SYSUSERHOME' \
61 && echo '[Bootstrap]' \
62 ) > $(IOSRES)/rc
64 # Set up fundamentalrc, unorc, bootstraprc and versionrc.
65 (echo '[Bootstrap]' \
66 && echo 'BRAND_BASE_DIR=file://$$APP_DATA_DIR' \
67 && echo 'BRAND_INI_DIR=file:://$$APP_DATA_DIR' \
68 && echo 'BRAND_SHARE_SUBDIR=$(LIBO_SHARE_FOLDER)' \
69 && echo '##BRAND_SHARE_RESOURCE_SUBDIR=$(LIBO_SHARE_RESOURCE_FOLDER)' \
70 && echo 'CONFIGURATION_LAYERS=xcsxcu:$${BRAND_BASE_DIR}/share/registry ' \
71 'res:$${BRAND_BASE_DIR}/registry' \
72 && echo 'LO_LIB_DIR=file://$$APP_DATA_DIR/lib/' \
73 && echo 'UNO_TYPES=file://$$APP_DATA_DIR/udkapi.rdb ' \
74 'file://$$APP_DATA_DIR/offapi.rdb' \
75 && echo 'UNO_SERVICES=file://$$APP_DATA_DIR/services.rdb ' \
76 'file://$$APP_DATA_DIR/services/services.rdb' \
77 && echo 'OSL_SOCKET_PATH=$$APP_DATA_DIR/cache' \
78 ) > $(IOSRES)/fundamentalrc;
80 echo '[Bootstrap]' > $(IOSRES)/unorc
82 # bootstraprc must be in $BRAND_BASE_DIR/program
83 (echo '[Bootstrap]' \
84 && echo 'InstallMode=<installmode>' \
85 && echo "ProductKey=LibreOffice $(PRODUCTVERSION)" \
86 && echo 'UserInstallation=$$SYSUSERHOME/userinstallation' \
87 ) > $(IOSRES)/program/bootstraprc
89 (echo '[Version]' \
90 && echo 'AllLanguages=en-US' \
91 && echo 'BuildVersion=' \
92 && echo "buildid=$(BUILDID)" \
93 ) > $(IOSRES)/program/versionrc
97 #- clean ios -----------------------------------------------------------------
98 $(call gb_CustomTarget_get_clean_target,ios/iOS_setup):
99 $(call gb_Output_announce,$(subst $(WORKDIR)/Clean/,,$@),$(false),ENV,2)
100 echo $(call gb_StaticLibrary_get_target,iOS_kitBridge)
101 rm -rf $(IOSRES) $(IOSGEN)/native-code.h $(IOSGEN)/build
102 rm -rf $(WORKDIR)/ios
103 ifeq ($(ENABLE_DEBUG),TRUE)
104 ifeq ($(CPUNAME),X86_64)
105 rm -f $(IOSGEN)/simulator/*
106 else
107 rm -f $(IOSGEN)/debug/*
108 endif
109 else
110 ifeq ($(CPUNAME),ARM64)
111 rm -f $(IOSGEN)/release/*
112 endif
113 endif
117 # vim: set noet sw=4 ts=4: