diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-12-18 00:03:02 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-12-18 22:59:23 +0200 |
commit | 48f625b899b2c7774548af078f25dfccd7602d27 (patch) | |
tree | cd45eb893d6b8e9270202cbe053bd7a2a73d6ca7 /ios/CustomTarget_MobileLibreOffice_app.mk | |
parent | aec792c1a429bd96a172d529521247a2b3391987 (diff) |
Add a view-only iOS test app using tiled rendering
I had to add some horrible hacks to make sure the test doc has been
loaded into a Writer shell before retrieving its size and being able
to render it. Obviously some better solution is needed. But this is
just a testbed to get some profiling data.
The app is built using an Xcode project, and in gbuild through a
custom target based on the MobileLibreOffice one. Setting up the
various files used (or not used...) at run-time should really be
factored out from the CustomTarget files.
Change-Id: I1711b0cae9d28a09b73476b2d37d98b1820c9943
Diffstat (limited to 'ios/CustomTarget_MobileLibreOffice_app.mk')
-rw-r--r-- | ios/CustomTarget_MobileLibreOffice_app.mk | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/ios/CustomTarget_MobileLibreOffice_app.mk b/ios/CustomTarget_MobileLibreOffice_app.mk index 262cf9deb11b..dcf20d911308 100644 --- a/ios/CustomTarget_MobileLibreOffice_app.mk +++ b/ios/CustomTarget_MobileLibreOffice_app.mk @@ -8,14 +8,14 @@ #- Env ------------------------------------------------------------------------ -DEST_RESOURCE := MobileLibreOffice/resource_link +MobileLibreOffice_resource := MobileLibreOffice/resource_link BUILDID :=$(shell cd $(SRCDIR) && git log -1 --format=%H) #- Macros --------------------------------------------------------------------- define MobileLibreOfficeXcodeBuild - CC=;xcodebuild -project shared/ios_sharedlo.xcodeproj -target ios_sharedlo -arch armv7 -configuration $(if $(ENABLE_DEBUG),Debug,Release) $(1) $(if $(verbose)$(VERBOSE),,>/dev/null) - CC=;xcodebuild -project MobileLibreOffice/MobileLibreOffice.xcodeproj -target MobileLibreOffice -arch armv7 -configuration $(if $(ENABLE_DEBUG),Debug,Release) $(1) $(if $(verbose)$(VERBOSE),,>/dev/null) + CC=;xcodebuild -project shared/ios_sharedlo.xcodeproj -target ios_sharedlo -arch $(XCODE_ARCHS) -configuration $(if $(ENABLE_DEBUG),Debug,Release) $(1) $(if $(verbose)$(VERBOSE),,>/dev/null) + CC=;xcodebuild -project MobileLibreOffice/MobileLibreOffice.xcodeproj -target MobileLibreOffice -arch $(XCODE_ARCHS) -configuration $(if $(ENABLE_DEBUG),Debug,Release) $(1) $(if $(verbose)$(VERBOSE),,>/dev/null) endef #- Targets -------------------------------------------------------------------- @@ -42,56 +42,56 @@ MobileLibreOffice_setup: $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ENV,2) # Resources # - rm -rf $(DEST_RESOURCE) 2>/dev/null - mkdir -p $(DEST_RESOURCE) - mkdir -p $(DEST_RESOURCE)/ure + rm -rf $(MobileLibreOffice_resource) 2>/dev/null + mkdir -p $(MobileLibreOffice_resource) + mkdir -p $(MobileLibreOffice_resource)/ure # copy rdb files - cp $(INSTDIR)/ure/share/misc/types.rdb $(DEST_RESOURCE) - cp $(INSTDIR)/program/types/offapi.rdb $(DEST_RESOURCE) - cp $(INSTDIR)/program/types/oovbaapi.rdb $(DEST_RESOURCE) - cp $(INSTDIR)/program/services/services.rdb $(DEST_RESOURCE) - cp $(INSTDIR)/ure/share/misc/services.rdb $(DEST_RESOURCE)/ure + cp $(INSTDIR)/ure/share/misc/types.rdb $(MobileLibreOffice_resource) + cp $(INSTDIR)/program/types/offapi.rdb $(MobileLibreOffice_resource) + cp $(INSTDIR)/program/types/oovbaapi.rdb $(MobileLibreOffice_resource) + cp $(INSTDIR)/program/services/services.rdb $(MobileLibreOffice_resource) + cp $(INSTDIR)/ure/share/misc/services.rdb $(MobileLibreOffice_resource)/ure # copy .res files # program/resource is hardcoded in tools/source/rc/resmgr.cxx. Sure, # we could set STAR_RESOURCE_PATH instead. sigh... - mkdir -p $(DEST_RESOURCE)/program/resource - cp $(INSTDIR)/program/resource/*en-US.res $(DEST_RESOURCE)/program/resource + mkdir -p $(MobileLibreOffice_resource)/program/resource + cp $(INSTDIR)/program/resource/*en-US.res $(MobileLibreOffice_resource)/program/resource # soffice.cfg - mkdir -p $(DEST_RESOURCE)/share/config - cp -R $(INSTDIR)/share/config/soffice.cfg $(DEST_RESOURCE)/share/config + mkdir -p $(MobileLibreOffice_resource)/share/config + cp -R $(INSTDIR)/share/config/soffice.cfg $(MobileLibreOffice_resource)/share/config # "registry" - cp -R $(INSTDIR)/share/registry $(DEST_RESOURCE)/share + cp -R $(INSTDIR)/share/registry $(MobileLibreOffice_resource)/share # Set up rc, the "inifile". See getIniFileName_Impl(). - file=$(DEST_RESOURCE)/rc; \ + file=$(MobileLibreOffice_resource)/rc; \ echo '[Bootstrap]' > $$file; \ echo 'URE_BOOTSTRAP=file://$$APP_DATA_DIR/fundamentalrc' >> $$file; \ echo 'HOME=$$APP_DATA_DIR/tmp' >> $$file; # Set up fundamentalrc, unorc, bootstraprc and versionrc. # Do we really need all these? - file=$(DEST_RESOURCE)/fundamentalrc; \ + file=$(MobileLibreOffice_resource)/fundamentalrc; \ echo '[Bootstrap]' > $$file; \ echo 'BRAND_BASE_DIR=file://$$APP_DATA_DIR' >> $$file; \ echo 'CONFIGURATION_LAYERS=xcsxcu:$${BRAND_BASE_DIR}/share/registry res:$${BRAND_BASE_DIR}/registry' >> $$file; - file=$(DEST_RESOURCE)/unorc; \ + file=$(MobileLibreOffice_resource)/unorc; \ echo '[Bootstrap]' > $$file; # bootstraprc must be in $BRAND_BASE_DIR/program - mkdir -p $(DEST_RESOURCE)/program - file=$(DEST_RESOURCE)/program/bootstraprc; \ + mkdir -p $(MobileLibreOffice_resource)/program + file=$(MobileLibreOffice_resource)/program/bootstraprc; \ echo '[Bootstrap]' > $$file; \ echo 'InstallMode=<installmode>' >> $$file; \ echo "ProductKey=LibreOffice $(PRODUCTVERSION)" >> $$file; \ echo 'UserInstallation=file://$$APP_DATA_DIR/../Library/Application%20Support' >> $$file; # Is this really needed? - file=$(DEST_RESOURCE)/program/versionrc; \ + file=$(MobileLibreOffice_resource)/program/versionrc; \ echo '[Version]' > $$file; \ echo 'AllLanguages=en-US' >> $$file; \ echo 'BuildVersion=' >> $$file; \ |