Commit Graph

51 Commits

Author SHA1 Message Date
29f9c06217 Let's not break "make clean install"
Change-Id: I1a1694bf4ad463ed18c99c5471c53ca26578dfdb
2012-11-26 09:40:57 +02:00
a9747280ef It's an emulator, not simulator
Change-Id: I01665f9030c9a544a89d3857f96bf3073c706435
2012-11-26 09:40:56 +02:00
b60f7e4e1c Add newline
Change-Id: Iadb52498dc3906df7488fb534fd04336b3e468e5
2012-11-25 17:50:28 +02:00
ae6431798e Make the android_version_setup work better
Change-Id: Ibc8f9df533c1fef3c1e428e62622ac2c56552498
2012-11-25 17:38:21 +02:00
aaaf5126c6 android: adapt the ant clobbering to a given SDK version.
Another volunteer fell over this, and (I hope) it's easy enough.

Change-Id: I7149d16fd8b7749afeeccef2ebc8f493200f1900
2012-11-24 16:42:47 +00:00
cecc926070 Clean up remains of NativeActivity-based Android app support
We haven't been able to build NativeActivity-based apps (like the
android/qa/sc and anroid/qa/desktop thingies) since we switched to
DISABLE_DYNLOADING and a single DSO liblo-native-code.so anyway.

No lo_main() any more. <sal/main.h> should not be included ever when
compiling for Android of iOS now.

Lots of stuff binned from vcl's androidinst.cxx, in the (vain?) hope
that it will reduce the amount of never invoked GUI code that gets
linked in.

Change-Id: I25f584864c40110774c728a23151e089620442d9
2012-11-21 23:03:57 +02:00
ae81246917 We don't need the library search path anymore
As we don't use any dlopen() etc wrappers now with just one single
DSO, we have no use for the library search path either.

Change-Id: Ifaf11c4785a90fe5c7dafb3310bc7933ea31238c
2012-11-21 15:22:27 +02:00
970b53e050 Enable storing some files gzipped in the .apk
We gzip them separately in the Makefile and the gzipped result will be
stored without (further) compression in the .apk.

Use this to store the ttf font files. Shaves off a bit .apk size.

This might seem a bit odd way to do it, why not store these files in
the normal Zip compressed fashion in the .apk? It seems hard to tell
Ant (based on path, not extension) what files to compress and what
not, so we have to keep telling it to not (further) compress any files
at all.

Change-Id: I0d40d8811e6c9df6b28c285845b1db225507f5d4
2012-11-21 15:05:13 +02:00
a0adefdc49 Update to match SDK r21
Change-Id: I7bc54a295c7155a1a173c28f45118a6d2983d0d2
2012-11-20 14:28:27 +02:00
26b8cd2b3e Reduce dynamic symbols and strip all local ones from the Android single .so
Use a version script ("version map") that exports only the Java_* and
JNI_OnLoad symbols that the JNI machinery needs. No non-dynamic
symbols are needed (in the .so that goes into the .apk; the one kept
locally for debugging is not stripped).

Change-Id: Ie874e59c593ec9e5d08ba369612cef1a3ea85fe4
2012-11-16 16:25:17 +02:00
b9bef032ce COPYSO should not be used with DISABLE_DYNLOADING
Change-Id: I0e04cd8fe35a487b85cd3abd420d24ab2a55821a
2012-10-11 10:07:12 +03:00
4b7e701024 Use DISABLE_DYNLOADING on Android
IN this branch these changes are not conditional. Unclear yet whether
this is what we finally will want to use or not. Maybe should make
these changes conditional and do this stuff in master instead?

Change-Id: I379d570a0e00648d295c675fd90eba6594ba3182
2012-10-11 10:07:05 +03:00
e989d16748 dung out no longer needed initUCBHelper methods; thanks to sberg. 2012-09-19 18:41:45 +01:00
c0bc0003ee RTFM for Arrays.copyOfRange()
Change-Id: Ie0d7bd95207aafb269f23974b8e90fa0b50fdb86
2012-09-05 16:12:14 +03:00
f1aca5bf8a Fix infinite loop introduced by accident
Change-Id: I4aee6214123b14f40e01850e1814a4e2d089ec8c
2012-09-04 14:01:39 +03:00
f17665bc40 Fix misleading macro name
Change-Id: I6ef47a04c6628723a433bbb625b0934979bd6725
2012-09-04 14:01:38 +03:00
c02e838ec2 Factor out the Android APP_ABI sanely instead of copy-paste galore
Change-Id: I66e97d73c410ac6f2e481ba9b2b22183f57438bd
2012-08-23 12:28:59 +03:00
e2a7989765 Build also the DocumentLoader test Android app with gbuild
Serialize the Ant cleaning and building of android/abs-lib so that one
Ant is not cleaning it while another is building something that
depends on it.

Change-Id: I22fde47bf84208fa129b8f6a65a2314c885451a0
2012-08-22 14:29:36 +03:00
1060cd8459 Perform setup(Activity) just once
Change-Id: Icf77936c4307f816e85cb840d650a4c958a15995
2012-08-13 07:41:20 +03:00
cbca382f2f Clarify that "stop" and "start" is only for simulator, I guess
Change-Id: I0bb98a9842003973ad50f227961ac00197f85bf2
2012-08-08 11:43:51 +03:00
d10065ea3a merge pointlessly fragmented chart2 libraries, leaving controller split. 2012-08-06 10:33:46 +01:00
e61e51ab96 android: share more common Makefile pieces between a couple of users
Try to start consolidating the complexity here.
generate Application.mk to specify the required ABI
fold common distro-config pieces out of README
2012-08-03 16:41:42 +01:00
42c1644f8b android: get rule sharing right; it seems we have to nest imports 2012-08-03 11:58:19 +01:00
ab852cc0b6 android: share the clobbering of ant rules to not compress resources
Change-Id: Id2aa869f05b09dc22676d63390ec10bf575571ef
2012-08-03 10:50:21 +01:00
3ea3c6afa2 Use XToolkit2::createScreenCompatibleDeviceUsingBuffer
Render directly to a direct ByteBuffer allocated on the Java side.

Change-Id: I2d66e4146df77e92260918a78ef22cd9b8c95384
2012-06-12 13:50:50 +03:00
8ae077379e Use 32bpp bitmaps on Android (and iOS)
Modify DocumentLoader correspondingly. Take Android bug 32588 into
account.

Ideal would be to extend the XDevice stuff, or something, so that one
could hand it a pre-allocated RGBA buffer into which the
drawing/rendering would go. Then one could get rid of the silly
convert-to-BMP phase, which prefixes the bitmap data with BMP and DIB
headers (and thus, I guess, has to copy and allocate another
copy). Will see.

Change-Id: I4597cd933db8faa8105dc8f19638d712d5d2238a
2012-06-05 17:17:41 +03:00
9776138e97 Add a BGR to RGBA twiddling JNI function
Change-Id: Iafa2c1805eea2f521479dc97d5668d82b1c91bef
2012-05-31 16:20:53 +03:00
c9f5b8a334 Add temporary test JNI method createWindowFoo()...
Change-Id: I8f99399faa3b0762bdea2aac09f1b849639cd191
2012-05-30 00:02:18 +03:00
7309b1c1dc Add an "extra" called lo-extra-libs for a list of libs to load early
Change-Id: I41900eca9a46acbd2f1dfac98fcfc73a62acc150
2012-05-30 00:02:16 +03:00
1a9be1b62e android: disable document recovery, it doesn't demo so well. 2012-05-28 14:50:50 +01:00
e363e668c7 android: make launcher function as expected - starts writer.
Remove now redundant FONTCONFIG cmdline arguments, and add fallbacks
for not having cmdline arguments in the intent when launching.
2012-05-28 14:50:50 +01:00
1bb9a60a96 android: un-break env. var parsing (sorry) 2012-05-23 15:58:49 +01:00
b36ff96d1d android: make launcher function as expected - starts writer.
Remove now redundant FONTCONFIG cmdline arguments, and add fallbacks
for not having cmdline arguments in the intent when launching.
2012-05-23 15:55:55 +01:00
40fab3bd05 Don't create the local.properties files in the source tree from configure
Change-Id: Ic87be0146360c5e32f1f12f255c897e051c9a50c
2012-05-16 18:59:28 +03:00
182c1e4f99 Call lo-bootstrap's redirect_stdio
Change-Id: I45732ac81d00837ce517ed5c527c8c767e690abf
2012-05-16 10:12:25 +03:00
cafcd85774 Set TMPDIR also in non-NativeActivity apps 2012-04-05 20:46:22 +03:00
6b6ca3d116 Automate setting of FONTCONFIG_FILE 2012-04-02 12:39:53 +03:00
a9a50cd9ff Refactor where patch_libgnustl_shared() and extract_files() are called 2012-04-02 12:39:52 +03:00
6db50818c1 Add JNI wrapper for InitUCBHelper() and call it 2012-03-28 16:57:59 +03:00
5814229948 Add JNI wrappers for InitVCL and osl_setCommandArgs 2012-03-22 22:49:48 +02:00
2cbb41b3ab Edit a comment a bit 2012-03-22 22:49:47 +02:00
10d74d9afe Need also android/Bootstrap/local.properties 2012-02-03 12:47:30 +02:00
73a47ed375 Set TMPDIR for osl_getTempDirURL() 2012-01-31 14:06:37 +02:00
427edef2c7 putenv() does seem to be process-wide 2012-01-31 14:05:39 +02:00
420f3f8a5c Add setting environment variables 2012-01-12 01:28:03 +02:00
3267d34fb9 Need to trim trailing newline from the indirect command line string 2012-01-11 14:27:44 +02:00
11c9125c28 Work around http://code.google.com/p/android/issues/detail?id=23351 2012-01-11 13:48:55 +02:00
6aac868d65 Add comment about how to use the lo-strace "extra" (option) 2011-12-22 15:45:33 +02:00
e730da8be7 Turn Bootstrap into a "library" project from Ant's point of view 2011-12-14 18:04:50 +02:00
00373d2097 Move .gitignore one level up 2011-12-12 22:15:01 +02:00