diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-06-29 01:19:54 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-06-30 14:48:03 +0200 |
commit | d5d480dccefdca169e0acd12fdc39e25e0b44fa2 (patch) | |
tree | 3e3d215ef879789daaa07e79152def16f165e29f /android/experimental | |
parent | c72d300ba0fa6eb3a496bdd8f3bbd3baa1b0f70e (diff) |
android: copy-stuff rule is copy'n'pasted around, consolidate it.
Change-Id: I0a746904fa363f987e96165d8def326eb87dcf8f
Diffstat (limited to 'android/experimental')
-rw-r--r-- | android/experimental/DocumentLoader/Makefile | 97 | ||||
-rw-r--r-- | android/experimental/LOAndroid3/Makefile | 94 | ||||
-rw-r--r-- | android/experimental/LibreOffice4Android/Makefile | 94 | ||||
-rw-r--r-- | android/experimental/desktop/Makefile | 99 |
4 files changed, 4 insertions, 380 deletions
diff --git a/android/experimental/DocumentLoader/Makefile b/android/experimental/DocumentLoader/Makefile index 7a25fb922114..dbe2b5ce051c 100644 --- a/android/experimental/DocumentLoader/Makefile +++ b/android/experimental/DocumentLoader/Makefile @@ -16,103 +16,6 @@ native-code.cxx: $(SRCDIR)/solenv/bin/native-code.py -g core -g writer \ > $@ -copy-stuff: -# Then "assets". Let the directory structure under assets mimic -# that under solver for now. -# -# Please note that I have no idea what all of this is really necessary and for -# much of this stuff being copied, no idea whether it makes any sense at all. -# Much of this is copy-pasted from android/qa/sc/Makefile (where a couple of -# unit tests for sc are built, and those do seem to mostly work) and -# android/qa/desktop/Makefile (mmeeks's desktop demo, also works to some -# extent). -# - mkdir -p assets/gz.unpack/program/ure assets/lib assets/program/services assets/ure/share/misc assets/ComponentTarget/i18npool/util - gzip -9 <$(INSTDIR)/$(LIBO_ETC_FOLDER)/types/offapi.rdb >assets/gz.unpack/program/offapi.rdb - gzip -9 <$(INSTDIR)/$(LIBO_ETC_FOLDER)/types/oovbaapi.rdb >assets/gz.unpack/program/oovbaapi.rdb - gzip -9 <$(INSTDIR)/$(LIBO_URE_SHARE_FOLDER)/misc/types.rdb >assets/gz.unpack/program/udkapi.rdb -# For some reason the vnd.sun.star.expand:$LO_LIB_DIR doesn't seem to work, it expands to empty!? -# So just hardcode the known APP_DATA_PATH for now... - for F in program/services/services ure/share/misc/services; do \ - sed -e 's!uri="vnd.sun.star.expand:$$LO_LIB_DIR/!uri="file://$(APP_DATA_PATH)/lib/!g' <$(INSTDIR)/$$F.rdb >assets/$$F.rdb; \ - done - cp $(SRC_ROOT)/odk/examples/java/DocumentHandling/test/test1.odt \ - $(SRC_ROOT)/sw/qa/core/data/odt/test.odt \ - $(SRC_ROOT)/sw/qa/core/data/doc/testVba.doc \ - assets - cp $(WORKDIR)/ComponentTarget/i18npool/util/i18npool.component assets/ComponentTarget/i18npool/util -# - mkdir -p assets/share/config - cp -R $(INSTDIR)/share/registry assets/share - cp -R $(INSTDIR)/share/config/soffice.cfg assets/share/config -# -# Set up rc, the "inifile". See BootstrapMap::getBaseIni(). As this app -# doesn't use soffice_main() (at least I think it shouldn't), the -# rtl::Bootstrap::setIniFilename() call there that hardcodes -# /assets/program/lofficerc isn't executed. Instead the hardcoding of -# /assets/rc in BootstrapMap::getBaseIni() gets used. - echo '[Bootstrap]' > assets/rc - echo 'Logo=1' >> assets/rc - echo 'NativeProgress=1' >> assets/rc - echo 'URE_BOOTSTRAP=file:///assets/program/fundamentalrc' >> assets/rc -# echo 'RTL_LOGFILE=file:///dev/log/main' >> assets/rc - echo "HOME=$(APP_DATA_PATH)/cache" >> assets/rc - echo "OSL_SOCKET_PATH=$(APP_DATA_PATH)/cache" >> assets/rc -# -# Set up fundamentalrc - echo '[Bootstrap]' > assets/program/fundamentalrc - echo "LO_LIB_DIR=file:$(APP_DATA_PATH)/lib/" >> assets/program/fundamentalrc - echo "URE_LIB_DIR=file://$(APP_DATA_PATH)/lib/" >> assets/program/fundamentalrc # checkme - is this used to find configs ? - echo 'BRAND_BASE_DIR=file:///assets' >> assets/program/fundamentalrc - echo 'CONFIGURATION_LAYERS=xcsxcu:$${BRAND_BASE_DIR}/share/registry res:$${BRAND_BASE_DIR}/share/registry' >> assets/program/fundamentalrc - echo 'URE_BIN_DIR=file:///assets/ure/bin/dir/not-here/can-we/exec-anyway' >> assets/program/fundamentalrc - echo 'URE_MORE_TYPES=file://$(APP_DATA_PATH)/program/offapi.rdb file://$(APP_DATA_PATH)/program/oovbaapi.rdb' >> assets/program/fundamentalrc - echo 'URE_MORE_SERVICES=file:///assets/program/services/services.rdb' >> assets/program/fundamentalrc -# -# Set up unorc - echo '[Bootstrap]' > assets/program/unorc - echo "URE_INTERNAL_LIB_DIR=file://$(APP_DATA_PATH)/lib/" >> assets/program/unorc - echo 'UNO_TYPES=file://$(APP_DATA_PATH)/program/udkapi.rdb $${URE_MORE_TYPES}' >> assets/program/unorc - echo 'UNO_SERVICES=file:///assets/ure/share/misc/services.rdb $${URE_MORE_SERVICES}' >> assets/program/unorc -# -# Set up bootstraprc - echo '[Bootstrap]' > assets/program/bootstraprc - echo 'InstallMode=<installmode>' >> assets/program/bootstraprc - echo 'ProductKey=LibreOffice $(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR)' >> assets/program/bootstraprc - echo "UserInstallation=file://$(APP_DATA_PATH)" >> assets/program/bootstraprc -# -# Set up versionrc - echo '[Version]' > assets/program/versionrc - echo 'AllLanguages=en-US' >> assets/program/versionrc - echo 'BuildVersion=' >> assets/program/versionrc - echo 'buildid=dead-beef' >> assets/program/versionrc - echo 'ProductMajor=360' >> assets/program/versionrc - echo 'ProductMinor=1' >> assets/program/versionrc - echo 'ReferenceOOoMajorMinor=3.6' >> assets/program/versionrc -# -# .res files - mkdir -p assets/program/resource - cp $(INSTDIR)/$(LIBO_SHARE_RESOURCE_FOLDER)/*en-US.res assets/program/resource -# -# Assets that are unpacked at run-time into the app's data directory. These -# are files read by non-LO code, fontconfig and freetype for now, that doesn't -# understand "/assets" paths. - mkdir -p assets/unpack/etc/fonts - cp fonts.conf assets/unpack/etc/fonts -# $UserInstallation/user/fonts is added to the fontconfig path in -# vcl/generic/fontmanager/helper.cxx: psp::getFontPath(). UserInstallation is -# set to the app's data dir above. - mkdir -p assets/gz.unpack/user/fonts - for F in $(INSTDIR)/share/fonts/truetype/Liberation*.ttf $(INSTDIR)/share/fonts/truetype/Gen*.ttf $(INSTDIR)/share/fonts/truetype/opens___.ttf; do \ - gzip -9 <$$F >assets/gz.unpack/user/fonts/`basename $$F`; \ - done -# -# Then gdbserver and gdb.setup so that we can debug with ndk-gdb. -# - mkdir -p $(SODEST) - cp $(ANDROID_NDK_GDBSERVER) $(SODEST) - echo set solib-search-path ./obj/local/$(ANDROID_APP_ABI) >$(SODEST)/gdb.setup - build-ant: android_version_setup copy-stuff link-so properties # # Copy jar files we need diff --git a/android/experimental/LOAndroid3/Makefile b/android/experimental/LOAndroid3/Makefile index 5169b2d4eb35..445b7fd26bee 100644 --- a/android/experimental/LOAndroid3/Makefile +++ b/android/experimental/LOAndroid3/Makefile @@ -15,98 +15,6 @@ include $(BOOTSTRAPDIR)/Makefile.shared native-code.cxx: $(SRCDIR)/solenv/bin/native-code.py $< -j -g core -g writer > $@ -copy-stuff: -# Then "assets". Let the directory structure under assets mimic -# that under solver for now. -# -# Please note that I have no idea what all of this is really necessary and for -# much of this stuff being copied, no idea whether it makes any sense at all. -# Much of this is copy-pasted from android/qa/sc/Makefile (where a couple of -# unit tests for sc are built, and those do seem to mostly work) and -# android/qa/desktop/Makefile (mmeeks's desktop demo, also works to some -# extent). -# - mkdir -p assets/gz.unpack/program/ure assets/lib assets/program/services assets/ure/share/misc assets/ComponentTarget/i18npool/util - gzip -9 <$(INSTDIR)/$(LIBO_ETC_FOLDER)/types/offapi.rdb >assets/gz.unpack/program/offapi.rdb - gzip -9 <$(INSTDIR)/$(LIBO_ETC_FOLDER)/types/oovbaapi.rdb >assets/gz.unpack/program/oovbaapi.rdb - gzip -9 <$(INSTDIR)/$(LIBO_URE_SHARE_FOLDER)/misc/types.rdb >assets/gz.unpack/program/udkapi.rdb -# For some reason the vnd.sun.star.expand:$LO_LIB_DIR doesn't seem to work, it expands to empty!? - for F in program/services/services ure/share/misc/services; do \ - sed -e 's!uri="vnd.sun.star.expand:$$LO_LIB_DIR/!uri="file://$$APP_DATA_DIR/lib/!g' <$(INSTDIR)/$$F.rdb >assets/$$F.rdb; \ - done - cp $(SRC_ROOT)/odk/examples/java/DocumentHandling/test/test1.odt \ - assets - cp $(WORKDIR)/ComponentTarget/i18npool/util/i18npool.component assets/ComponentTarget/i18npool/util -# - mkdir -p assets/share/config - cp -R $(INSTDIR)/share/registry assets/share - cp -R $(INSTDIR)/share/config/soffice.cfg assets/share/config -# -# Set up rc, the "inifile". See BootstrapMap::getBaseIni(). As this app -# doesn't use soffice_main() (at least I think it shouldn't), the -# rtl::Bootstrap::setIniFilename() call there that hardcodes -# /assets/program/lofficerc isn't executed. Instead the hardcoding of -# /assets/rc in BootstrapMap::getBaseIni() gets used. - echo '[Bootstrap]' > assets/rc - echo 'Logo=1' >> assets/rc - echo 'NativeProgress=1' >> assets/rc - echo 'URE_BOOTSTRAP=file:///assets/program/fundamentalrc' >> assets/rc -# echo 'RTL_LOGFILE=file:///dev/log/main' >> assets/rc - echo 'HOME=$$APP_DATA_DIR/cache' >> assets/rc - echo 'OSL_SOCKET_PATH=$$APP_DATA_DIR/cache' >> assets/rc -# -# Set up fundamentalrc - echo '[Bootstrap]' > assets/program/fundamentalrc - echo 'LO_LIB_DIR=file://$$APP_DATA_DIR/lib/' >> assets/program/fundamentalrc - echo 'URE_LIB_DIR=file://$$APP_DATA_DIR/lib/' >> assets/program/fundamentalrc # checkme - is this used to find configs ? - echo 'BRAND_BASE_DIR=file:///assets' >> assets/program/fundamentalrc - echo 'CONFIGURATION_LAYERS=xcsxcu:$${BRAND_BASE_DIR}/share/registry res:$${BRAND_BASE_DIR}/share/registry' >> assets/program/fundamentalrc - echo 'URE_BIN_DIR=file:///assets/ure/bin/dir/nothing-here/we-can/exec-anyway' >> assets/program/fundamentalrc -# -# Set up unorc - echo '[Bootstrap]' > assets/program/unorc - echo 'URE_INTERNAL_LIB_DIR=file://$$APP_DATA_DIR/lib/' >> assets/program/unorc - echo 'UNO_TYPES=file://$$APP_DATA_DIR/program/udkapi.rdb file://$$APP_DATA_DIR/program/offapi.rdb file://$$APP_DATA_DIR/program/oovbaapi.rdb' >> assets/program/unorc - echo 'UNO_SERVICES=file:///assets/ure/share/misc/services.rdb file:///assets/program/services/services.rdb' >> assets/program/unorc -# -# Set up bootstraprc - echo '[Bootstrap]' > assets/program/bootstraprc - echo 'InstallMode=<installmode>' >> assets/program/bootstraprc - echo 'ProductKey=LibreOffice $(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR)' >> assets/program/bootstraprc - echo 'UserInstallation=file://$$APP_DATA_DIR' >> assets/program/bootstraprc -# -# Set up versionrc - echo '[Version]' > assets/program/versionrc - echo 'AllLanguages=en-US' >> assets/program/versionrc - echo 'BuildVersion=' >> assets/program/versionrc - echo 'buildid=dead-beef' >> assets/program/versionrc - echo 'ProductMajor=360' >> assets/program/versionrc - echo 'ProductMinor=1' >> assets/program/versionrc - echo 'ReferenceOOoMajorMinor=3.6' >> assets/program/versionrc -# -# .res files - mkdir -p assets/program/resource - cp $(INSTDIR)/$(LIBO_SHARE_RESOURCE_FOLDER)/*en-US.res assets/program/resource -# -# Assets that are unpacked at run-time into the app's data directory. These -# are files read by non-LO code, fontconfig and freetype for now, that doesn't -# understand "/assets" paths. - mkdir -p assets/unpack/etc/fonts - cp fonts.conf assets/unpack/etc/fonts -# $UserInstallation/user/fonts is added to the fontconfig path in -# vcl/generic/fontmanager/helper.cxx: psp::getFontPath(). UserInstallation is -# set to the app's data dir above. - mkdir -p assets/gz.unpack/user/fonts - for F in $(INSTDIR)/share/fonts/truetype/Liberation*.ttf $(INSTDIR)/share/fonts/truetype/Gen*.ttf $(INSTDIR)/share/fonts/truetype/opens___.ttf; do \ - gzip -9 <$$F >assets/gz.unpack/user/fonts/`basename $$F`; \ - done -# -# Then gdbserver and gdb.setup so that we can debug with ndk-gdb. -# - mkdir -p $(SODEST) - cp $(ANDROID_NDK_GDBSERVER) $(SODEST) - echo set solib-search-path ./obj/local/$(ANDROID_APP_ABI) >$(SODEST)/gdb.setup - build-ant: android_version_setup copy-stuff link-so properties # # Copy jar files we need @@ -122,7 +30,7 @@ build-ant: android_version_setup copy-stuff link-so properties $(call COPYJAR,$(INSTDIR)/$(LIBO_SHARE_JAVA_FOLDER)/$${F}.jar); \ done # - unset JAVA_HOME && $(ANT) -quiet debug + unset JAVA_HOME && $(ANT) $(if $(VERBOSE)$(verbose),,-quiet) debug run: adb shell am start -n $(APP_PACKAGE)/.ui.LibreOfficeUIActivity -e input /assets/test1.odt diff --git a/android/experimental/LibreOffice4Android/Makefile b/android/experimental/LibreOffice4Android/Makefile index b70737942a78..f4b4c41addf5 100644 --- a/android/experimental/LibreOffice4Android/Makefile +++ b/android/experimental/LibreOffice4Android/Makefile @@ -17,100 +17,6 @@ native-code.cxx: $(SRCDIR)/solenv/bin/native-code.py -g core -g writer \ > $@ -copy-stuff: -# Then "assets". Let the directory structure under assets mimic -# that under solver for now. -# -# Please note that I have no idea what all of this is really necessary and for -# much of this stuff being copied, no idea whether it makes any sense at all. -# Much of this is copy-pasted from android/qa/sc/Makefile (where a couple of -# unit tests for sc are built, and those do seem to mostly work) and -# android/qa/desktop/Makefile (mmeeks's desktop demo, also works to some -# extent). -# - mkdir -p assets/gz.unpack/program/ure assets/lib assets/program/services assets/ure/share/misc assets/ComponentTarget/i18npool/util - gzip -9 <$(INSTDIR)/$(LIBO_ETC_FOLDER)/types/offapi.rdb >assets/gz.unpack/program/offapi.rdb - gzip -9 <$(INSTDIR)/$(LIBO_ETC_FOLDER)/types/oovbaapi.rdb >assets/gz.unpack/program/oovbaapi.rdb - gzip -9 <$(INSTDIR)/$(LIBO_URE_SHARE_FOLDER)/misc/types.rdb >assets/gz.unpack/program/udkapi.rdb -# For some reason the vnd.sun.star.expand:$LO_LIB_DIR doesn't seem to work, it expands to empty!? - for F in program/services/services ure/share/misc/services; do \ - sed -e 's!uri="vnd.sun.star.expand:$$LO_LIB_DIR/!uri="file://$$APP_DATA_DIR/lib/!g' <$(INSTDIR)/$$F.rdb >assets/$$F.rdb; \ - done - cp $(SRC_ROOT)/odk/examples/java/DocumentHandling/test/test1.odt \ - $(SRC_ROOT)/sw/qa/core/data/odt/test.odt \ - $(SRC_ROOT)/sw/qa/core/data/doc/testVba.doc \ - assets - cp $(WORKDIR)/ComponentTarget/i18npool/util/i18npool.component assets/ComponentTarget/i18npool/util -# - mkdir -p assets/share/config - cp -R $(INSTDIR)/share/registry assets/share - cp -R $(INSTDIR)/share/config/soffice.cfg assets/share/config -# -# Set up rc, the "inifile". See BootstrapMap::getBaseIni(). As this app -# doesn't use soffice_main() (at least I think it shouldn't), the -# rtl::Bootstrap::setIniFilename() call there that hardcodes -# /assets/program/lofficerc isn't executed. Instead the hardcoding of -# /assets/rc in BootstrapMap::getBaseIni() gets used. - echo '[Bootstrap]' > assets/rc - echo 'Logo=1' >> assets/rc - echo 'NativeProgress=1' >> assets/rc - echo 'URE_BOOTSTRAP=file:///assets/program/fundamentalrc' >> assets/rc -# echo 'RTL_LOGFILE=file:///dev/log/main' >> assets/rc - echo 'HOME=$$APP_DATA_DIR/cache' >> assets/rc - echo 'OSL_SOCKET_PATH=$$APP_DATA_DIR/cache' >> assets/rc -# -# Set up fundamentalrc - echo '[Bootstrap]' > assets/program/fundamentalrc - echo 'LO_LIB_DIR=file://$$APP_DATA_DIR/lib/' >> assets/program/fundamentalrc - echo 'URE_LIB_DIR=file://$$APP_DATA_DIR/lib/' >> assets/program/fundamentalrc # checkme - is this used to find configs ? - echo 'BRAND_BASE_DIR=file:///assets' >> assets/program/fundamentalrc - echo 'CONFIGURATION_LAYERS=xcsxcu:$${BRAND_BASE_DIR}/share/registry res:$${BRAND_BASE_DIR}/share/registry' >> assets/program/fundamentalrc - echo 'URE_BIN_DIR=file:///assets/ure/bin/dir/nothing-here/we-can/exec-anyway' >> assets/program/fundamentalrc -# -# Set up unorc - echo '[Bootstrap]' > assets/program/unorc - echo 'URE_INTERNAL_LIB_DIR=file://$$APP_DATA_DIR/lib/' >> assets/program/unorc - echo 'UNO_TYPES=file://$$APP_DATA_DIR/program/udkapi.rdb file://$$APP_DATA_DIR/program/offapi.rdb file://$$APP_DATA_DIR/program/oovbaapi.rdb' >> assets/program/unorc - echo 'UNO_SERVICES=file:///assets/ure/share/misc/services.rdb file:///assets/program/services/services.rdb' >> assets/program/unorc -# -# Set up bootstraprc - echo '[Bootstrap]' > assets/program/bootstraprc - echo 'InstallMode=<installmode>' >> assets/program/bootstraprc - echo 'ProductKey=LibreOffice $(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR)' >> assets/program/bootstraprc - echo 'UserInstallation=file://$$APP_DATA_DIR' >> assets/program/bootstraprc -# -# Set up versionrc - echo '[Version]' > assets/program/versionrc - echo 'AllLanguages=en-US' >> assets/program/versionrc - echo 'BuildVersion=' >> assets/program/versionrc - echo 'buildid=dead-beef' >> assets/program/versionrc - echo 'ProductMajor=360' >> assets/program/versionrc - echo 'ProductMinor=1' >> assets/program/versionrc - echo 'ReferenceOOoMajorMinor=3.6' >> assets/program/versionrc -# -# .res files - mkdir -p assets/program/resource - cp $(INSTDIR)/$(LIBO_SHARE_RESOURCE_FOLDER)/*en-US.res assets/program/resource -# -# Assets that are unpacked at run-time into the app's data directory. These -# are files read by non-LO code, fontconfig and freetype for now, that doesn't -# understand "/assets" paths. - mkdir -p assets/unpack/etc/fonts - cp fonts.conf assets/unpack/etc/fonts -# $UserInstallation/user/fonts is added to the fontconfig path in -# vcl/generic/fontmanager/helper.cxx: psp::getFontPath(). UserInstallation is -# set to the app's data dir above. - mkdir -p assets/gz.unpack/user/fonts - for F in $(INSTDIR)/share/fonts/truetype/Liberation*.ttf $(INSTDIR)/share/fonts/truetype/Gen*.ttf $(INSTDIR)/share/fonts/truetype/opens___.ttf; do \ - gzip -9 <$$F >assets/gz.unpack/user/fonts/`basename $$F`; \ - done -# -# Then gdbserver and gdb.setup so that we can debug with ndk-gdb. -# - mkdir -p $(SODEST) - cp $(ANDROID_NDK_GDBSERVER) $(SODEST) - echo set solib-search-path ./obj/local/$(ANDROID_APP_ABI) >$(SODEST)/gdb.setup - build-ant: android_version_setup copy-stuff link-so properties echo sdk.dir=$(ANDROID_SDK_HOME) >../../abs-lib/local.properties # ActionBarSherlock uses the v4 support library, apparently one needs to copy diff --git a/android/experimental/desktop/Makefile b/android/experimental/desktop/Makefile index df9a24f08fff..2c30fc46470b 100644 --- a/android/experimental/desktop/Makefile +++ b/android/experimental/desktop/Makefile @@ -21,99 +21,7 @@ BOOTSTRAP=org.libreoffice.android.Bootstrap # The default target just builds. -copy-stuff: -# Then "assets". Let the directory structure under assets mimic -# that under solver for now. -# -# Please note that some of thses files being set up to be present in -# the .apk and/or unpacked at install time might be unnecessary. -# - mkdir -p assets/gz.unpack/program/ure assets/lib assets/program/services assets/ure/share/misc assets/ComponentTarget/i18npool/util - gzip -9 <$(INSTDIR)/$(LIBO_ETC_FOLDER)/types/offapi.rdb >assets/gz.unpack/program/offapi.rdb - gzip -9 <$(INSTDIR)/$(LIBO_ETC_FOLDER)/types/oovbaapi.rdb >assets/gz.unpack/program/oovbaapi.rdb - gzip -9 <$(INSTDIR)/$(LIBO_URE_SHARE_FOLDER)/misc/types.rdb >assets/gz.unpack/program/udkapi.rdb -# For some reason the vnd.sun.star.expand:$LO_LIB_DIR doesn't seem to work, it expands to empty!? -# So just hardcode the known APP_DATA_PATH for now... - for F in program/services/services ure/share/misc/services; do \ - sed -e 's!uri="vnd.sun.star.expand:$$LO_LIB_DIR/!uri="file://$(APP_DATA_PATH)/lib/!g' <$(INSTDIR)/$$F.rdb >assets/$$F.rdb; \ - done - cp $(SRC_ROOT)/odk/examples/java/DocumentHandling/test/test1.odt \ - $(SRC_ROOT)/sw/qa/core/data/odt/test.odt \ - $(SRC_ROOT)/sw/qa/core/data/doc/testVba.doc \ - assets - cp $(WORKDIR)/ComponentTarget/i18npool/util/i18npool.component assets/ComponentTarget/i18npool/util -# - mkdir -p assets/share/config - cp -R $(INSTDIR)/share/registry assets/share - cp -R $(INSTDIR)/share/config/soffice.cfg assets/share/config -# -# Set up rc, the "inifile". See BootstrapMap::getBaseIni(). As this app -# doesn't use soffice_main() (at least I think it shouldn't), the -# rtl::Bootstrap::setIniFilename() call there that hardcodes -# /assets/program/lofficerc isn't executed. Instead the hardcoding of -# /assets/rc in BootstrapMap::getBaseIni() gets used. - echo '[Bootstrap]' > assets/rc - echo 'Logo=1' >> assets/rc - echo 'NativeProgress=1' >> assets/rc - echo 'URE_BOOTSTRAP=file:///assets/program/fundamentalrc' >> assets/rc -# echo 'RTL_LOGFILE=file:///dev/log/main' >> assets/rc - echo "HOME=$(APP_DATA_PATH)/cache" >> assets/rc - echo "OSL_SOCKET_PATH=$(APP_DATA_PATH)/cache" >> assets/rc -# -# Set up fundamentalrc - echo '[Bootstrap]' > assets/program/fundamentalrc - echo "LO_LIB_DIR=file://$(APP_DATA_PATH)/lib/" >> assets/program/fundamentalrc - echo "URE_LIB_DIR=file://$(APP_DATA_PATH)/lib/" >> assets/program/fundamentalrc # checkme - is this used to find configs ? - echo 'BRAND_BASE_DIR=file:///assets' >> assets/program/fundamentalrc - echo 'CONFIGURATION_LAYERS=xcsxcu:$${BRAND_BASE_DIR}/share/registry res:$${BRAND_BASE_DIR}/share/registry' >> assets/program/fundamentalrc - echo 'URE_BIN_DIR=file:///assets/ure/bin/dir/not-here/can-we/exec-anyway' >> assets/program/fundamentalrc - echo 'URE_MORE_TYPES=file://$(APP_DATA_PATH)/program/offapi.rdb file://$(APP_DATA_PATH)/program/oovbaapi.rdb' >> assets/program/fundamentalrc - echo 'URE_MORE_SERVICES=file:///assets/program/services/services.rdb' >> assets/program/fundamentalrc -# -# Set up unorc - echo '[Bootstrap]' > assets/program/unorc - echo "URE_INTERNAL_LIB_DIR=file://$(APP_DATA_PATH)/lib/" >> assets/program/unorc - echo 'UNO_TYPES=file://$(APP_DATA_PATH)/program/udkapi.rdb $${URE_MORE_TYPES}' >> assets/program/unorc - echo 'UNO_SERVICES=file:///assets/ure/share/misc/services.rdb $${URE_MORE_SERVICES}' >> assets/program/unorc -# -# Set up bootstraprc - echo '[Bootstrap]' > assets/program/bootstraprc - echo 'InstallMode=<installmode>' >> assets/program/bootstraprc - echo 'ProductKey=LibreOffice $(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR)' >> assets/program/bootstraprc - echo "UserInstallation=file://$(APP_DATA_PATH)" >> assets/program/bootstraprc -# -# Set up versionrc - echo '[Version]' > assets/program/versionrc - echo 'AllLanguages=en-US' >> assets/program/versionrc - echo 'BuildVersion=' >> assets/program/versionrc - echo 'buildid=dead-beef' >> assets/program/versionrc - echo 'ProductMajor=360' >> assets/program/versionrc - echo 'ProductMinor=1' >> assets/program/versionrc - echo 'ReferenceOOoMajorMinor=3.6' >> assets/program/versionrc -# -# .res files - mkdir -p assets/program/resource - cp $(INSTDIR)/$(LIBO_SHARE_RESOURCE_FOLDER)/*en-US.res assets/program/resource -# -# Assets that are unpacked at run-time into the app's data directory. These -# are files read by non-LO code, fontconfig and freetype for now, that doesn't -# understand "/assets" paths. - mkdir -p assets/unpack/etc/fonts - cp fonts.conf assets/unpack/etc/fonts -# $UserInstallation/user/fonts is added to the fontconfig path in -# vcl/generic/fontmanager/helper.cxx: psp::getFontPath(). UserInstallation is -# set to the app's data dir above. - mkdir -p assets/gz.unpack/user/fonts - for F in $(INSTDIR)/share/fonts/truetype/Liberation*.ttf $(INSTDIR)/share/fonts/truetype/Gen*.ttf $(INSTDIR)/share/fonts/truetype/opens___.ttf; do \ - gzip -9 <$$F >assets/gz.unpack/user/fonts/`basename $$F`; \ - done -# -# Then gdbserver and gdb.setup so that we can debug with ndk-gdb. -# - mkdir -p $(SODEST) - cp $(ANDROID_NDK_GDBSERVER) $(SODEST) - echo set solib-search-path ./obj/local/$(ANDROID_APP_ABI) >$(SODEST)/gdb.setup -# ------------ Pieces not from DocumentLoader ------------ +copy-stuff-desktop: # tango artwork / icons cp -R $(INSTDIR)/$(LIBO_SHARE_FOLDER)/config/images_tango.zip assets/share/config # shell / splash images @@ -138,7 +46,6 @@ copy-stuff: # - this looks useful but breaks more than it fixes ... # echo "DISABLE_EXTENSION_SYNCHRONIZATION=1" >> assets/program/lofficerc - setup-jars: # # Copy jar files we need @@ -154,8 +61,8 @@ setup-jars: $(call COPYJAR,$(INSTDIR)/$(LIBO_SHARE_JAVA_FOLDER)/$${F}.jar); \ done -build-ant: android_version_setup copy-stuff link-so properties setup-jars - unset JAVA_HOME && $(ANT) -quiet debug +build-ant: android_version_setup copy-stuff copy-stuff-desktop link-so properties setup-jars + unset JAVA_HOME && $(ANT) $(if $(VERBOSE)$(verbose),,-quiet) debug run: $(ANDROID_SDK_HOME)/platform-tools/adb shell am start -n $(APP_PACKAGE)/.Desktop |