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
e730da8b
Kaydet (Commit)
e730da8b
authored
Ara 14, 2011
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Turn Bootstrap into a "library" project from Ant's point of view
üst
829c5338
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
191 deletions
+3
-191
AndroidManifest.xml
android/Bootstrap/AndroidManifest.xml
+2
-17
Makefile
android/Bootstrap/Makefile
+0
-129
build.xml
android/Bootstrap/build.xml
+0
-29
project.properties
android/Bootstrap/project.properties
+1
-0
main.xml
android/Bootstrap/res/layout/main.xml
+0
-12
strings.xml
android/Bootstrap/res/values/strings.xml
+0
-4
No files found.
android/Bootstrap/AndroidManifest.xml
Dosyayı görüntüle @
e730da8b
...
...
@@ -3,22 +3,7 @@
package=
"org.libreoffice.android"
android:versionCode=
"1"
android:versionName=
"1.0"
>
<uses-sdk
android:minSdkVersion=
"9"
/>
<!-- This .apk uses a subclass of NativeActivity, so it *has* Java code. -->
<!-- android:hasCode="false" -->
<application
android:label=
"@string/app_name"
android:debuggable=
"true"
>
<!-- <activity android:name="android.app.NativeActivity" -->
<activity
android:name=
".Bootstrap"
android:label=
"LibreOffice Bootstrap"
android:configChanges=
"orientation|keyboardHidden"
>
<!-- Tell NativeActivity the name of our .so -->
<meta-data
android:name=
"android.app.lib_name"
android:value=
"lo-bootstrap"
/>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
<application>
<activity
android:name=
"org.libreoffice.android.Bootstrap"
/>
</application>
</manifest>
android/Bootstrap/Makefile
deleted
100644 → 0
Dosyayı görüntüle @
829c5338
# The full path the the app's directory needs to be supplied in a
# couple of places, unfortunately.
APP_DATA_PATH
=
/data/data/org.libreoffice.android
NDK_HOME
:=
$(
shell
type
-p
ndk-build
)
NDK_HOME
:=
$(
shell
dirname
$(NDK_HOME))
SODEST
=
libs/armeabi-v7a
OBJLOCAL
=
obj/local/armeabi-v7a
define
COPY
cp
$(1)
$(SODEST)$(if
$(2),/$(2))
&&
\
arm-linux-androideabi-strip
--strip-debug
$(SODEST)$(if
$(2),/$(2),/$(notdir
$(1)))
&&
\
cp
$(1)
$(OBJLOCAL)$(if
$(2),/$(2))
endef
# The default target just builds.
all
:
build-ant lo-bootstrap.jar
copy-stuff
:
#
# Copy shared libraries we need to libs/armeabi-v7a so that ant will
# include them in the .apk.
#
# Copy them to obj/local/armeabi-v7a, too, where gdb will look for
# them.
#
mkdir
-p
$(SODEST)
$(OBJLOCAL)
#
# First the most important one, liblo-bootstrap.so
$(call
COPY,$(OUTDIR)/lib/liblo-bootstrap.so)
#
# Then the cppunittester "program". As all "program"
# files we build for Android actually is a shared object.
$(call
COPY,$(OUTDIR)/bin/cppunit/cppunittester,libcppunittester.so)
#
# The cppunit library
$(call
COPY,$(OUTDIR)/lib/libcppunit-1.12.so)
#
# cppunit "plug-ins", first ones from sal
#
$(call
COPY,../../sal/$(INPATH)/lib/*.so)
#
# and ones from other modules. Note that depending on when you try
# this, these might not have been built yet.
#
for
F
in
$(SRC_ROOT)/cppu/$(INPATH)/lib/qa_*.so;
do
\
$(call
COPY,$${F},`basename
$${F}`);
\
done
#
for
F
in
i18npool_test_breakiterator;
do
\
$(call
COPY,$(WORKDIR)/LinkTarget/CppunitTest/libtest_$${F}.so);
\
done
#
# Other "programs"
$(call
COPY,$(OUTDIR)/bin/uno,libunoexe.so)
#
# Libs and UNO components that the tests from other modules need.
#
for
F
in
$(strip
\
comphelpgcc3
\
gcc3_uno
\
i18nisolang1gcc3
\
i18nutilgcc3
\
icudatalo
\
icui18nlo
\
icuuclo
\
localedata_en
\
localedata_others
\
reg
\
store
\
ucbhelper4gcc3
\
uno_cppu
\
uno_salhelpergcc3
\
uno_cppuhelpergcc3
\
unoexceptionprotector
\
xml2
\
xmlreader
\
bootstrap.uno
\
i18npool.uno);
do
\
$(call
COPY,$(OUTDIR)/lib/lib$${F}.so);
\
done
#
# Then the shared GNU C++ library
$(call
COPY,$(NDK_HOME)/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/libgnustl_shared.so)
#
# bridgetest components, not in solver
for
F
in
bridgetest
constructors
cppobj;
do
\
$(call
COPY,$(SRC_ROOT)/testtools/$(INPATH)/lib/lib$${F}.uno.so);
\
done
#
# Then other "assets". Let the directory structure under assets mimic
# that under solver for now.
mkdir
-p
assets/bin
assets/lib
assets/xml/ure
assets/ComponentTarget/i18npool/util
cp
$(OUTDIR)/bin/udkapi.rdb
assets/bin
cp
$(OUTDIR)/bin/types.rdb
assets/bin
cp
$(OUTDIR)/xml/ure/services.rdb
assets/xml/ure
cp
$(WORKDIR)/ComponentTarget/i18npool/util/i18npool.component
assets/ComponentTarget/i18npool/util
for
F
in
uno_services
uno_types;
do
\
sed
-e
's!uri="./!uri="$(APP_DATA_PATH)/lib/!g'
<$(SRC_ROOT)/testtools/$(INPATH)/lib/$${F}.rdb
>assets/lib/$${F}.rdb;
\
done
build-ant
:
copy-stuff
unset
JAVA_HOME
&&
ant debug
lo-bootstrap.jar
:
build-ant
cd
bin/classes
&&
jar cvf ../../lo-bootstrap.jar
fi
/iki/tml org/libreoffice/android/Bootstrap.class
install
:
copy-stuff lo-bootstrap.jar
cp
lo-bootstrap.jar
$(OUTDIR)
bin
unset
JAVA_HOME
&&
ant debug
install
@
echo
@
echo
'Run it with something like what "make run" does (see Makefile)'
@
echo
run
:
# Note: these are just examples.
#
adb
shell
am
start
-n
org.libreoffice.android/.Bootstrap
-e
lo-main-library
libcppunittester
-e
lo-main-cmdline
"$(APP_DATA_PATH)/lib/libqa_sal_types.so"
#
sleep
10
adb shell am start -n org.libreoffice.android/.Bootstrap -e lo-main-library libcppunittester -e lo-main-cmdline "$(APP_DATA_PATH)/lib/libtest_i18npool_test_breakiterator.so --protector libunoexceptionprotector.so unoexceptionprotector '-env
:
UNO_TYPES=file:///assets/bin/udkapi.rdb file:///assets/bin/types.rdb' '-env:UNO_SERVICES=file:///assets/xml/ure/services.rdb file:///assets/ComponentTarget/i18npool/util/i18npool.component' -env:LO_LIB_DIR=file://$(APP_DATA_PATH)/lib"
#
# adb shell am start -n org.libreoffice.android/.Bootstrap -e lo-main-library libunoexe -e lo-main-cmdline "-ro /assets/lib/uno_services.rdb -ro /assets/lib/uno_types.rdb -s com.sun.star.test.bridge.BridgeTest -- com.sun.star.test.bridge.CppTestObject" -e lo-main-delay 2
clean
:
rm
-rf
bin assets
android/Bootstrap/build.xml
Dosyayı görüntüle @
e730da8b
...
...
@@ -82,33 +82,4 @@
<!-- version-tag: 1 -->
<import
file=
"${sdk.dir}/tools/ant/build.xml"
/>
<!-- Re-define the "-package-resources" target to not compress resources -->
<target
name=
"-package-resources"
depends=
"-crunch"
>
<!-- only package resources if *not* a library project -->
<do-only-if-not-library
elseText=
"Library project: do not package resources..."
>
<aapt
executable=
"${aapt}"
command=
"package"
versioncode=
"${version.code}"
versionname=
"${version.name}"
debug=
"${build.is.packaging.debug}"
manifest=
"AndroidManifest.xml"
assets=
"${asset.absolute.dir}"
androidjar=
"${android.jar}"
apkfolder=
"${out.absolute.dir}"
nocrunch=
"${build.packaging.nocrunch}"
resourcefilename=
"${resource.package.file.name}"
resourcefilter=
"${aapt.resource.filter}"
projectLibrariesResName=
"project.libraries.res"
projectLibrariesPackageName=
"project.libraries.package"
previousBuildType=
"${build.last.target}"
buildType=
"${build.target}"
>
<res
path=
"${out.res.absolute.dir}"
/>
<res
path=
"${resource.absolute.dir}"
/>
<nocompress
/>
<!-- forces no compression on any files in assets or res/raw -->
<!-- <nocompress extension="xml" /> forces no compression on specific file extensions in assets and res/raw -->
</aapt>
</do-only-if-not-library>
</target>
</project>
android/Bootstrap/project.properties
Dosyayı görüntüle @
e730da8b
...
...
@@ -7,5 +7,6 @@
# "ant.properties", and override values to adapt the script to your
# project structure.
android.library
=
true
# Project target.
target
=
android-14
android/Bootstrap/res/layout/main.xml
deleted
100644 → 0
Dosyayı görüntüle @
829c5338
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:orientation=
"vertical"
android:layout_width=
"fill_parent"
android:layout_height=
"fill_parent"
>
<TextView
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
android:text=
"Hello World"
/>
</LinearLayout>
android/Bootstrap/res/values/strings.xml
deleted
100644 → 0
Dosyayı görüntüle @
829c5338
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string
name=
"app_name"
>
LibreOfficeBootstrap
</string>
</resources>
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