summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)Author
2011-11-22Base SAL_INFO/WARN inclusion on if instead of #if.Stephan Bergmann
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-22rtlbootstrap.mk.cxx needs to be a C++ file (including C++ macros.hxx).Stephan Bergmann
2011-11-22New sal/log.h obsoletes osl/diagnose.h and tools/debug.hxx.Stephan Bergmann
* 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-21remove extraneous endif.Michael Meeks
2011-11-21only build custom gethostbyname for OSX & IOSMichael Meeks
2011-11-21Revert "Remove internal gethostbyname_r implementation." - OSX needs itMichael Meeks
This reverts commit af19d9f563667376f759b4526bc1bcb056947394.
2011-11-21Remove internal backtrace and backtrace_symbols_fdArnaud Versini
2011-11-21Remove internal gethostbyname_r implementation.Arnaud Versini
2011-11-21Replace gethostbyname by _osl_gethostbyname_r in socket.c .Arnaud Versini
2011-11-21Add stuff to run bridgetestTor Lillqvist
2011-11-21Bah, don't bother with conditional copying of stuff into the .apk hereTor Lillqvist
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-21Add the localedata_en and localedata_others libsTor Lillqvist
2011-11-21Use --with-library-suffix=lo for Android to avoid clash with system ICUTor Lillqvist
2011-11-21Do not catch signals in dbgutil buildLionel Elie Mamane
Helps debug crashes, segfaults, etc as one gets the right backtrace in gdb and dumped core.
2011-11-21poke __cplusplus into workben comparison toolCaolán McNamara
2011-11-21SAL_N_ELEMENTS: use "check argument is array" version in all C++0x compilersLionel Elie Mamane
2011-11-21Ignore also "assets"Tor Lillqvist
2011-11-21Include more stuff in the .apk needed by test_i18npool_test_breakiteratorTor Lillqvist
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-21Fix crash in the "memory" FileHandle_ImplTor Lillqvist
2011-11-20Use proper command line parsing for the lo-main-cmdline extra stringTor Lillqvist
2011-11-20Unix style command line parserTor Lillqvist
2011-11-19osl_syncFile() should work also for NULL handlesTor Lillqvist
2011-11-19Add read-only pseudo-files representing a memory blockTor Lillqvist
For Android only for now. To be used to read raw asset files from the application package (.apk file, a zip archive).
2011-11-19More misc Android workTor Lillqvist
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-18cppcheck: unread variablesKorrawit Pruegsanusak
These variables are set, but unused.
2011-11-17Add the gcc3_uno libraryTor Lillqvist
2011-11-17Missing semicolonTor Lillqvist
2011-11-17Look for lo_main() and not main() on AndroidTor Lillqvist
2011-11-17Use lo_dladdr() on AndroidTor Lillqvist
2011-11-17Add more librariesTor Lillqvist
2011-11-17Add lo_dladdr(), a wrapper for Android's dladdr()Tor Lillqvist
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-17Include also the boostrap UNO componentTor Lillqvist
2011-11-17Copy more shared objects for unit testingTor Lillqvist
2011-11-17Improve a diagnostic log messageTor Lillqvist
2011-11-16tweak gbuild standart Makefile to allow partial build in unsourced envNorbert Thiebaud
This allow to run make in a module wihtout the need to source Env.Host.sh.
2011-11-16WaE: Unused parameterTor Lillqvist
2011-11-16Further Android work, now most sal cppunit tests seem to runTor Lillqvist
Do the LD_LIBRARY_PATH splitting in Java, much easier, and pass the split up path to the native setup() method. Use lo_dlopen() in the osl_loadModuleAscii. Harcode en-US.UTF-8 as the locale for now. Cut down on verbose logging of stuff that already works.
2011-11-15Rework the bootstrap mechanism of a LO program on AndroidTor Lillqvist
Do use NativeActivity and android_native_app_glue after all. I hope this enables us to have a "message pump" (a loop that typically would call ALooper_pollAll()) inside the LO "program" being run, as expected by LO code. (On Android, a "program", even one mostly implemented in native code, is actually a shared library loaded by the main Java code of an app.) The android_native_app_glue code and the android_main() it calls belongs in the bootstrap library, though. Not in SAL_MAIN_IMPL. The earlier idea, having a "normal" Java Activity subclass, would mean events come in as method calls to that class. To then turn those into something the LO code can "get", we would have effectively had to re-implement what android_native_app_glue does anyway.
2011-11-15Intermediate Android commit, before having NativeActivity load lo-bootstrapTor Lillqvist
2011-11-14Search app's lib firstTor Lillqvist
2011-11-13Remove _osl_getDomainName and simplify _osl_getFullQualifiedDomainNameArnaud Versini
2011-11-13Replace domainname command by getdomainname syscall or functionArnaud Versini
2011-11-11WaE: defined but not usedTor Lillqvist
2011-11-11Intermediate Android commitTor Lillqvist
2011-11-11Release strings after useTor Lillqvist
2011-11-11TypoTor Lillqvist
2011-11-11More baby steps for AndroidTor Lillqvist
2011-11-10Deliver the Android libuno_sal.soTor Lillqvist
2011-11-07First baby steps of proper Android "native" program supportTor Lillqvist
We use the "native app glue" thing from the NDK to avoid having to have an explicit Java wrapper. (There is one provided by the OS's NativeActivity anyway; all Android apps are Java programs.) For simplicity, we just #include android_native_app_glue.c in sal/main.h. sal/main.h is included only from source files that actually form the "main" programs for our programs anyway, I hope. Presumably the only programs we actually want to build for Android in this way are unit tests. Any real (or toy) LibreOffice-related Android app would have a totally Android-specific user interface written in Java, and just call LO libraries, I think.
2011-11-07Remove obsolete IsWin95A functionJesús Corrius