Commit graph

4280 commits

Author SHA1 Message Date
Norbert Thiebaud
c0bed9c72e remove precompiled_xxx.hxx/cxx 2011-11-27 18:07:55 -06:00
Norbert Thiebaud
8fc6fc97d5 remove include of pch header from sal 2011-11-27 13:18:15 -06:00
Norbert Thiebaud
e4610ffd2d remove PCH support in dmake-module 2011-11-27 12:26:12 -06:00
Tor Lillqvist
474dcc8fc9 The lo_main() thing on Android works fine, remove superfluous logging 2011-11-26 00:23:44 +02:00
François Tigeot
3a1441c0d3 PDP_ENDIAN and variants are unused.
Remove their use from the code.
2011-11-25 14:38:11 +01:00
Bjoern Michaelsen
f2f0dbd273 make gbuild makefiles run independant of pwd again 2011-11-25 12:04:40 +01:00
Tor Lillqvist
15f6fec4d4 Add lo_get_javavm() to get the JavaVM we are runnning in 2011-11-25 01:39:20 +02:00
Tor Lillqvist
1c08f9066c Replace also the std::type_info::before() in libgnustl_shared.so
It too suffers from the same problem as operator==: Compares name
pointers, not name strings. Thus with two things to patch, had to
refactor it.

(before() doesn't seem to get called when running the bridgetest at
least, though.)

Noticed that there is no need to wrap the replacement asm snippets
with dummy C functions. Just having them at the outermost level in the
source file works as expected.
2011-11-24 23:12:22 +02:00
Tor Lillqvist
de5840a524 Reduce logging verbosity and tune levels 2011-11-24 19:29:54 +02:00
Tor Lillqvist
5df8678709 Binary patch the mmapped libgnustl_shared.so from NDK r7
Poke in a jump to our replacement for std::type_info::operator==. See
http://code.google.com/p/android/issues/detail?id=22165 .
2011-11-24 19:20:14 +02:00
Tor Lillqvist
6f18ccfcd6 Add "clean" target 2011-11-24 19:20:11 +02:00
Caolán McNamara
89f057a09d ditch dbg_dump 2011-11-24 15:29:52 +00:00
Stephan Bergmann
0a1f03544a Call getResult with fully qualified name. 2011-11-23 21:56:22 +01:00
Stephan Bergmann
364a3d2864 Silence bogus MSC "must return a value" errors. 2011-11-23 20:26:52 +01:00
Michael Meeks
f1ef1ed690 version information from Arnaud on deprecating the getpid workaround. 2011-11-23 15:30:48 +00:00
Stephan Bergmann
0c7bff0271 Changed sal/log.h -> sal/log.hxx, drop _S from C++ streaming log macros.
A compile time check ensures the common case of streaming just a plain
C-style string literal still produces reasonably compact call-site code.
The format-string variants are still available in sal/detail/log.h, but
only to be used in obsolete osl/diagnose.h etc., and going to be removed
again eventually.
2011-11-23 15:50:58 +01:00
Jan Holesovsky
832e6d2293 Some trivial fixes for MinGW with -std=c++0x enabled; not finished. 2011-11-23 11:59:30 +01:00
Stephan Bergmann
981470b240 Base SAL_INFO/WARN inclusion on if instead of #if.
So that variables only used within SAL_INFO/WARN do not lead to
unused variable warnings in product builds.  Also for OSL_TRACE
(which used to work that way before already); allowing to revert
a recent warning fix.
2011-11-22 13:24:27 +01:00
Stephan Bergmann
171855c21e rtlbootstrap.mk.cxx needs to be a C++ file (including C++ macros.hxx). 2011-11-22 11:01:06 +01:00
Stephan Bergmann
70a6b9ffbd New sal/log.h obsoletes osl/diagnose.h and tools/debug.hxx.
* New SAL_INFO..., SAL_WARN... macros.
* New SAL_STREAM supersedes OSL_FORMAT.
* oustringostreaminserter.hxx moved from unotest to rtl (and always UTF-8 now).
* TODO to enable GCC __attribute__((format)) in sal/log.h (requires call-site
  cleanup).
* Further functionality in tools/debug.hxx (DBG_MEMTEST, DBG_CTOR, etc.) not yet
  addressed.
* Some replacements tools String -> rtl::OUString.
2011-11-22 09:41:47 +01:00
Michael Meeks
997ac87c86 remove extraneous endif. 2011-11-21 17:57:44 +00:00
Michael Meeks
fc1c44d1dd only build custom gethostbyname for OSX & IOS 2011-11-21 17:40:48 +00:00
Michael Meeks
441227374c Revert "Remove internal gethostbyname_r implementation." - OSX needs it
This reverts commit af19d9f563.
2011-11-21 17:40:47 +00:00
Arnaud Versini
513c888595 Remove internal backtrace and backtrace_symbols_fd 2011-11-21 17:10:08 +00:00
Arnaud Versini
af19d9f563 Remove internal gethostbyname_r implementation. 2011-11-21 17:10:07 +00:00
Arnaud Versini
161ff9a443 Replace gethostbyname by _osl_gethostbyname_r in socket.c . 2011-11-21 17:10:07 +00:00
Tor Lillqvist
7a357d93d8 Add stuff to run bridgetest 2011-11-21 18:21:54 +02:00
Tor Lillqvist
edda1f9a34 Bah, don't bother with conditional copying of stuff into the .apk here
You are not expected to be make'ing here without knowing what you are
doing anyway. Just unconditionally require the stuff needed by the
sample cppunit tests mentioned on the last lines.
2011-11-21 18:21:46 +02:00
Tor Lillqvist
4b294b2c20 Add the localedata_en and localedata_others libs 2011-11-21 18:21:44 +02:00
Tor Lillqvist
8a3ea757c3 Use --with-library-suffix=lo for Android to avoid clash with system ICU 2011-11-21 15:48:53 +02:00
Lionel Elie Mamane
6dc6820038 Do not catch signals in dbgutil build
Helps debug crashes, segfaults, etc
as one gets the right backtrace in gdb and dumped core.
2011-11-21 11:56:28 +01:00
Caolán McNamara
2c46cde2ed poke __cplusplus into workben comparison tool 2011-11-21 10:40:42 +00:00
Lionel Elie Mamane
acc65ffb2c SAL_N_ELEMENTS: use "check argument is array" version in all C++0x compilers 2011-11-21 11:31:20 +01:00
Tor Lillqvist
0218f14776 Ignore also "assets" 2011-11-21 01:53:28 +02:00
Tor Lillqvist
789bbd9219 Include more stuff in the .apk needed by test_i18npool_test_breakiterator
Now it runs until a crash caused by ICU library mixup between our ones
and the system ones, they have the same names but aren't
compatible... (see 7ee03666d7cfc27453315e1682e3c32d39a031b6).
2011-11-21 01:51:19 +02:00
Tor Lillqvist
0e867a8860 Fix crash in the "memory" FileHandle_Impl 2011-11-21 01:51:19 +02:00
Tor Lillqvist
8ec7135730 Use proper command line parsing for the lo-main-cmdline extra string 2011-11-20 18:12:36 +02:00
Tor Lillqvist
5d01d4e37c Unix style command line parser 2011-11-20 18:12:35 +02:00
Tor Lillqvist
5e03999e93 osl_syncFile() should work also for NULL handles 2011-11-19 03:11:42 +02:00
Tor Lillqvist
552f521070 Add read-only pseudo-files representing a memory block
For Android only for now. To be used to read raw asset files from the
application package (.apk file, a zip archive).
2011-11-19 02:55:13 +02:00
Tor Lillqvist
2ad14b0e03 More misc Android work
Add possibility to start strace tracing the process. Unfortunately it
this doesn't seem to work as nicely as one might have hoped. If the
process crashes, the last strace output does not show up. Some
buffering that gets abruptly discarded when the straced process dies?

Add a function to the native code to look up an archive member in the
.apk and return a pointer to it. To be used for non-compressed
resources only. We mmap the whole .apk. The Zip format parsing code is
borrrowed from Mozilla's APKOpen.cpp.

Correspondingly, add to the local build.xml a re-definition of the
"-package-resources" target from Ant's build.xml modified to not
compress resources.

Improved the Makefile a lot. New target "install" to build the apk and
install it without constructing the apk twice.

Other minor changes here and there.
2011-11-19 02:55:12 +02:00
Korrawit Pruegsanusak
9a7b77ae23 cppcheck: unread variables
These variables are set, but unused.
2011-11-18 00:40:02 +07:00
Tor Lillqvist
e55ab1e6de Add the gcc3_uno library 2011-11-17 17:46:14 +02:00
Tor Lillqvist
3e596b7fc6 Missing semicolon 2011-11-17 15:56:41 +02:00
Tor Lillqvist
f95c3e0ee2 Look for lo_main() and not main() on Android 2011-11-17 15:23:04 +02:00
Tor Lillqvist
21c0c69ddf Use lo_dladdr() on Android 2011-11-17 15:23:03 +02:00
Tor Lillqvist
232ad7dac6 Add more libraries 2011-11-17 15:23:02 +02:00
Tor Lillqvist
4b49b73058 Add lo_dladdr(), a wrapper for Android's dladdr()
Android's dladdr() stores just the basename of a shared object in
Dl_info::dli_fname. LibreOffice expects either a complete absolute
pathname or a relative path from the current directory to be returned
there. So look up the full pathname of the library from
/proc/self/maps.

Also remove the fallback message loop after lo_main() returns, instead
just exit.
2011-11-17 15:23:02 +02:00
Tor Lillqvist
9c6c39b62d Include also the boostrap UNO component 2011-11-17 15:23:00 +02:00
Tor Lillqvist
49a6efd9d9 Copy more shared objects for unit testing 2011-11-17 15:22:55 +02:00