Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d7702755
Kaydet (Commit)
d7702755
authored
Mar 26, 2012
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
More hacking
üst
10f5ab71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
9 deletions
+30
-9
Makefile
android/experiments/DocumentLoader/Makefile
+27
-9
DocumentLoader.java
.../src/org/libreoffice/android/examples/DocumentLoader.java
+3
-0
No files found.
android/experiments/DocumentLoader/Makefile
Dosyayı görüntüle @
d7702755
...
@@ -112,6 +112,14 @@ copy-stuff:
...
@@ -112,6 +112,14 @@ copy-stuff:
#
#
# Then other "assets". Let the directory structure under assets mimic
# Then other "assets". Let the directory structure under assets mimic
# that under solver for now.
# 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/bin/ure
assets/lib
assets/program
assets/xml/ure
assets/ComponentTarget/i18npool/util
mkdir
-p
assets/bin/ure
assets/lib
assets/program
assets/xml/ure
assets/ComponentTarget/i18npool/util
cp
$(OUTDIR)/bin/udkapi.rdb
assets/bin
cp
$(OUTDIR)/bin/udkapi.rdb
assets/bin
cp
$(OUTDIR)/bin/types.rdb
assets/bin
cp
$(OUTDIR)/bin/types.rdb
assets/bin
...
@@ -124,14 +132,24 @@ copy-stuff:
...
@@ -124,14 +132,24 @@ copy-stuff:
cp
$(SRC_ROOT)
/odk/examples/java/DocumentHandling/test/test1.odt assets
cp
$(SRC_ROOT)
/odk/examples/java/DocumentHandling/test/test1.odt assets
cp
$(WORKDIR)
/ComponentTarget/i18npool/util/i18npool.component assets/ComponentTarget/i18npool/util
cp
$(WORKDIR)
/ComponentTarget/i18npool/util/i18npool.component assets/ComponentTarget/i18npool/util
#
#
# Set up lofficerc, the "inifile" (see soffice_main())
mkdir
-p
assets/ure/share/misc
assets/share/registry/res
assets/share/config/soffice.cfg
echo
'[Bootstrap]'
>
assets/program/lofficerc
cp
-R
$(OUTDIR)/xml/*.xcd
assets/share/registry
echo
'Logo=1'
>>
assets/program/lofficerc
mv
assets/share/registry/fcfg_langpack_en-US.xcd
assets/share/registry/res
echo
'NativeProgress=1'
>>
assets/program/lofficerc
cp
-R
$(OUTDIR)/xml/uiconfig/*
assets/share/config/soffice.cfg
echo 'URE_BOOTSTRAP=file
:
///assets/program/fundamentalrc' >> assets/program/lofficerc
cp
-R
$(OUTDIR)/xml/registry/*
assets/share/registry
# echo 'RTL_LOGFILE=file:///dev/log/main' >> assets/program/lofficerc
#
echo
"HOME=$(APP_DATA_PATH)/files"
>>
assets/program/lofficerc
# Set up rc, the "inifile". See BootstrapMap::getBaseIni(). As this app
echo
"OSL_SOCKET_PATH=$(APP_DATA_PATH)/files"
>>
assets/program/lofficerc
# 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
# Set up fundamentalrc
echo
'[Bootstrap]'
>
assets/program/fundamentalrc
echo
'[Bootstrap]'
>
assets/program/fundamentalrc
...
@@ -151,7 +169,7 @@ copy-stuff:
...
@@ -151,7 +169,7 @@ copy-stuff:
echo
'[Bootstrap]'
>
assets/program/bootstraprc
echo
'[Bootstrap]'
>
assets/program/bootstraprc
echo
'InstallMode=<installmode>'
>>
assets/program/bootstraprc
echo
'InstallMode=<installmode>'
>>
assets/program/bootstraprc
echo
'ProductKey=LibreOffice 3.6'
>>
assets/program/bootstraprc
echo
'ProductKey=LibreOffice 3.6'
>>
assets/program/bootstraprc
echo "UserInstallation=file
:
//$(APP_DATA_PATH)/
files
/.libreoffice" >> assets/program/bootstraprc
echo "UserInstallation=file
:
//$(APP_DATA_PATH)/
cache
/.libreoffice" >> assets/program/bootstraprc
# Set up versionrc
# Set up versionrc
echo
'[Version]'
>
assets/program/versionrc
echo
'[Version]'
>
assets/program/versionrc
...
...
android/experiments/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java
Dosyayı görüntüle @
d7702755
...
@@ -50,9 +50,12 @@ public class DocumentLoader
...
@@ -50,9 +50,12 @@ public class DocumentLoader
Bootstrap
.
setup
(
this
);
Bootstrap
.
setup
(
this
);
Bootstrap
.
putenv
(
"SAL_LOG=yes"
);
// Load a lot of shlibs here explicitly in advance because that
// Load a lot of shlibs here explicitly in advance because that
// makes debugging work better, sigh
// makes debugging work better, sigh
Bootstrap
.
dlopen
(
"libvcllo.so"
);
Bootstrap
.
dlopen
(
"libvcllo.so"
);
Bootstrap
.
dlopen
(
"libmergedlo.so"
);
com
.
sun
.
star
.
uno
.
XComponentContext
xContext
=
null
;
com
.
sun
.
star
.
uno
.
XComponentContext
xContext
=
null
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment