summaryrefslogtreecommitdiffstats
path: root/bridges
Commit message (Collapse)AuthorAgeFilesLines
* bridges,iOS removed suport for x86 and arm.jan Iversen2018-03-112-473/+0
| | | | | | Only arm64 is supported, code is more readable Change-Id: I6940b0d03dc26c9c8f10c1cb105a7564471f2ca5
* Make LibreOffice buildable on Haiku.Kacper Kasper2018-03-052-2/+3
| | | | | | | | | * Obviously VCL wiring is missing, but most components do build. Change-Id: Ie853ada1423a8f4c2b647be59cd47a7730c42978 Reviewed-on: https://gerrit.libreoffice.org/50293 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
* iOS, solved problem with -I for asm modulejan Iversen2018-02-211-2/+3
| | | | Change-Id: I9e699eea04231eeeff4146657124ee4f0e68412d
* iOS, remove throw definitionjan Iversen2018-02-201-6/+0
| | | | | | clean cpp_uno part. Change-Id: Ief08e4cf596b375243ae215d8dc2e1cdb5830ac1
* Buildsystem changes to recognize Haiku.Kacper Kasper2018-02-191-3/+3
| | | | | | | Change-Id: I219d556f8e124cfe426cc1ac3c54da34eb7ef790 Reviewed-on: https://gerrit.libreoffice.org/49925 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Jenkins <ci@libreoffice.org>
* iOS, add custom include for codesnippets.Sjan Iversen2018-02-171-0/+4
| | | | Change-Id: I285838f6f3e8ec57a63239f71a403809154c47e2
* iOS, readded perl script to generate codesnippetsjan Iversen2018-02-172-2805/+34
| | | | Change-Id: Ie9f3aa8057e9b50beedf47ff892188cf3b362194
* iOS, add old snippet script.jan Iversen2018-02-151-0/+114
| | | | | | | We need to check if the script generated the same code always. Looks like nFunIndexes is never changed. Change-Id: Ic247cccbf1e4a75e6a0acf5807fdcf84bfcf4cb3
* iOS, update to original filesjan Iversen2018-02-153-3/+16
| | | | | | Update to old files (from Tor in 2013) to prepare for generate. Change-Id: I832a242b7b91179e9c269fa9e48a1698aa2f2a66
* iOS, reduce arm64 files to actually neededjan Iversen2018-02-157-725/+1
| | | | | | | Still comparing the "old" gcc3_ios_arm with the new one, in order to make the asm code work. Change-Id: I3a2fdfc1891a6a4d7065917f5ef8bd19c49b3987
* iOS, add gcc3 helper for ARM64jan Iversen2018-02-143-964/+6
| | | | Change-Id: Iad8cfd72803864bd1c8a5d01c74e1f856c27685d
* iOS, simulator == MACOSXjan Iversen2018-02-141-37/+27
| | | | | | | the simulator is a normal MAC compile, with different SDK so the cpp_uno bindings should be identical Change-Id: Ie53463beab628414185b492c78dcb3d8364794bf
* iOS, use gcc3 mac code for simulatorjan Iversen2018-02-141-0/+5
| | | | | | | | | | Refer to the mac code, instead of copying it to gcc3_ios, when running in simulator. There is a problem with the macro calls, so the reference to the sources are duplicated. Change-Id: I72848ba960b8a7f85708723bfeb682ceecc1e448
* bridges: MSVC: pragma warning: make more specific, remove obsoleteMike Kaganski2018-01-317-16/+0
| | | | | | | Change-Id: Ib13f198e5941a33a9a8d1091c8ceb48e273f00cc Reviewed-on: https://gerrit.libreoffice.org/48949 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
* Fix typosAndrea Gelmini2018-01-255-6/+6
| | | | | | | Change-Id: I13acf050d83099be8874514688936bb4ddbb1a26 Reviewed-on: https://gerrit.libreoffice.org/48543 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
* More loplugin:cstylecast on WindowsStephan Bergmann2018-01-232-2/+2
| | | | | | | | | | | | Automatic rewrite (of loplugin:cstylecast and loplugin:unnecessaryparen) after cab0427cadddb3aaf1349c66f2fa13a4234ba4b2 "Enable loplugin:cstylecast for some more cases" and a409d32e7f6fc09e041079d6dbc3c927497adfed "More loplugin:cstylecast" Change-Id: Ib3355159dd08333e1b7a8d091caf2069cdcc7862 Reviewed-on: https://gerrit.libreoffice.org/48317 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* More loplugin:cstylecast on macOSStephan Bergmann2018-01-201-1/+1
| | | | | | | | | | | | Automatic rewrite (of loplugin:cstylecast and loplugin:unnecessaryparen) after cab0427cadddb3aaf1349c66f2fa13a4234ba4b2 "Enable loplugin:cstylecast for some more cases" and a409d32e7f6fc09e041079d6dbc3c927497adfed "More loplugin:cstylecast" Change-Id: Iff4877e8a42804c952c48c13332caf0a83c92870 Reviewed-on: https://gerrit.libreoffice.org/48216 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* SAL_W32 is just an alias for _WIN32Stephan Bergmann2018-01-191-4/+4
| | | | | | | | | ...so consistently use the latter instead of the former Change-Id: I144d5e7c472632f93b2258461510346bc85892d9 Reviewed-on: https://gerrit.libreoffice.org/48135 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* enable c++17 for android again after boost auto_ptr has a workaroundChristian Lohmaier2018-01-182-2/+2
| | | | | | | | | | see 90d2155912bcee40377620d4836726041a72d537 for boost fix and see effe6b3d84302afce3d5095e4f376e7e3bf669e0 for bridges fix for mac Change-Id: Ic6209ce0927dafd39763ef0b2fabbcaa7abf743f Reviewed-on: https://gerrit.libreoffice.org/46002 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Jenkins <ci@libreoffice.org>
* android: use unified headers and llvm-c++ STL (x86) with NDK 16Christian Lohmaier2018-01-185-16/+55
| | | | | | | | | | | | | gnustl (and others) are to be removed in future versions of the ndk also bump gradle and build-tools to current versions along with it arm unfortunately crashes with llvm-c++, so keep with gnustl for now/fix that later Change-Id: Ic794c3293b599b77ec48096bf3283a99c09cbb79 Reviewed-on: https://gerrit.libreoffice.org/45163 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
* Fix typosAndrea Gelmini2018-01-162-2/+2
| | | | | | | Change-Id: I078626eaa3155cc429320cc8c1532003b382b22a Reviewed-on: https://gerrit.libreoffice.org/47855 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
* More loplugin:cstylecast: bridgesStephan Bergmann2018-01-122-2/+2
| | | | | | | | auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I4d48f46fa64fe866081cd85c731a93b4bfcdf787
* new loplugin: convertlongNoel Grandin2017-12-211-1/+1
| | | | | | | | | | | merge the droplong and convertuintptr into one new plugin. Limit the analysis to looking at var decl's, since that seems to be safest proposition, even if that too needs some careful analysis. Change-Id: Id005baaf05cfb157ce44a06a1c81f08559a07d1f Reviewed-on: https://gerrit.libreoffice.org/46851 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:salcall fix functionsNoel Grandin2017-12-118-47/+47
| | | | | | | | | | since cdecl is the default calling convention on Windows for such functions, the annotation is redundant. Change-Id: I1a85fa27e5ac65ce0e04a19bde74c90800ffaa2d Reviewed-on: https://gerrit.libreoffice.org/46164 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* bridges: [loplugin:includeform] gcc3_linux_intelMichael Stahl2017-12-086-23/+23
| | | | Change-Id: I0a60521e893990af63d723871edcbc564b135074
* std::unexpected_handler is gone at least from recent libc++ in C++17 modeStephan Bergmann2017-12-051-1/+1
| | | | | | | Change-Id: Ibae0499f52c1e22ec9790e62cc84053dff2c2add Reviewed-on: https://gerrit.libreoffice.org/45855 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* new loplugin salcall: remove unnecessary SAL_CALLNoel Grandin2017-12-043-22/+10
| | | | | | | | | | | | | | | | | | In this first commit, I use the plugin to verify the consistency of our SAL_CALL annotations. The point being to make the next commit more mechanical in nature, purely using the rewriter. There are various chunks of unix-only code that have never had to be compiled by MSVC, hence the inconsistencies. In bridges, I had to inline some typedefs to make the verification code happy, since it cannot see into typedefs. Change-Id: Iec6e274bed857febf7295cfcf5e9f21fe4a34da0 Reviewed-on: https://gerrit.libreoffice.org/45502 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* fix includes in aarch64 bridgeDavid Tardon2017-11-264-5/+5
| | | | Change-Id: Ia27f15483c27bc43a3cd3a74432f15fa928ad6da
* Fix ASan "alloc-dealloc-mismatch (operator new [] vs operator delete)"Stephan Bergmann2017-11-141-24/+64
| | | | | | | ...e.g. during CppunitTest_smoketest, after be2d9d3407ddae22797879e93778513be30ec5aa "Clean up m_generatedRttis at exit" Change-Id: Ife4b07927ba11cf5b99e987b3bb9af068652ba62
* ofz: Direct-leakCaolán McNamara2017-11-131-5/+11
| | | | | | | | | | asan reports that the strdups leak and __si_class_type_info takes a const char* arg Change-Id: Ie0ee94554689d9246981cb7d6ce0f23917c2d333 Reviewed-on: https://gerrit.libreoffice.org/44641 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* Clean up m_generatedRttis at exitStephan Bergmann2017-11-091-16/+24
| | | | | | | | | | | ...inspired by <https://gerrit.libreoffice.org/#/c/44487/> "silence RTTI::getRTTI Direct-leak". (std::type_info is guaranteed to have a virtual dtor.) Change-Id: I972bfd57a2e800ef0e9bfc978fdc6345dbff853e Reviewed-on: https://gerrit.libreoffice.org/44532 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* iOS include error in bridgesjan Iversen2017-11-031-1/+1
| | | | | | Need to use "" for call.hxx include Change-Id: I9a30f3d3cfab83076f9ad22a5b637f8f4fc7c432
* loplugin:includeform: bridges (Windows)Stephan Bergmann2017-10-274-14/+14
| | | | Change-Id: I4514d751d5449902c589c7f3577c7f3cd593d2e9
* loplugin:constmethods in unotoolsNoel Grandin2017-10-261-1/+1
| | | | | | | Change-Id: I13df4e184a826682f34a1d9e974b601397ba4a3d Reviewed-on: https://gerrit.libreoffice.org/43865 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:includeform: bridges (macOS)Stephan Bergmann2017-10-248-29/+29
| | | | Change-Id: I9df97c6684de7dfc60f79dd11abaed069e5f08b2
* loplugin:includeform: bridgesStephan Bergmann2017-10-2325-128/+128
| | | | Change-Id: Icad98d3153a5b1710c8c2a2d338ba0129e9ff208
* overload std::hash for OUString and OStringNoel Grandin2017-10-2326-26/+26
| | | | | | | | | no need to explicitly specify it anymore Change-Id: I6ad9259cce77201fdd75152533f5151aae83e9ec Reviewed-on: https://gerrit.libreoffice.org/43567 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Again, no -fstack-protector-strong for gcc3_linux_aarch64/cpp2uno.cxxStephan Bergmann2017-10-191-3/+2
| | | | | | | | | | | | | | | | | | | | | 8d12e4ec8b843d59661a12a7a92bfec7e4473e0f "No -fstack-protect-strong for gcc3_linux_aarch64/cpp2uno.cxx vtableSlotCall" had done that in the past (so that setting up the x0/x1 return registers in vtableSlotCall is not clobbered by the stack protector code), but gbuild details have apparently changed in the meantime, so that gb_CXXFLAGS_COMMON's -fstack-protector-strong now ends up on the compiler command line before what is covered by gb_Library_add_cxxobjects's argument, so didn't get subst'ed to -fstack-protector. That caused Flathub aarch64 builds to fail in CustomTarget_testtools/uno_test. However, if both -fstack-protector-strong and -fstack-protector are present on the command line, the second apparently wins, so use that hack for now. (-fstack-protector-strong is only available since GCC 4.9, but -fstack-protector is already available in our current baseline GCC 4.8.1, and even for a build on that baseline it wouldn't hurt if cpp2uno.cxx was explicitly built with -fstack-protector even if none of the other files were built with -fstack-protector-strong.) Change-Id: I9d78d2e5b08b7c0a4adb1531b482cd43617886f7
* bridges: consistently use "" and <> in include directivesMike Kaganski2017-10-116-24/+24
| | | | | | | Change-Id: I8fb8e4fad4d6bfb4e24648833826f1a7e211b062 Reviewed-on: https://gerrit.libreoffice.org/43320 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
* Fix --enable-assert-always-abort (but not --enable-debug) buildTor Lillqvist2017-10-051-1/+1
| | | | | | | Look at NDEBUG, not OSL_DEBUG_LEVEL, to see whether asserts are active or not. Change-Id: I772d27da4bcc73c8c5a50ab4b72f50caddcf7273
* iOS, make simulator config copy of macosx.jan Iversen2017-09-2216-1073/+4945
| | | | | | | | When compiling for the simulator it is like compiling for macosx (64bit) but with other libraries, therefore the bridge should be like the macosx. Change-Id: I59f1442a5c77d09ad0bc4bf31c2432fc32ef725e
* iOS, updated helper.s to do 64 bitjan Iversen2017-09-221-24/+1
| | | | | | Removed __arm reference Change-Id: I194d79ccb5ba2117e0f468080813bf8de1ada84a
* iOS, change bridges to 64bit and reducejan Iversen2017-09-217-1660/+1055
| | | | | | | | | Changed __i386 to not __arm64 iOS either compiles for arm64 (production) or x86_64 (simulator) add common parts to cpp2uno and uno2cpp Change-Id: I059f3cc23bb658d6d53dbf2bf4aa6634eeac9662
* iOS, remove support for 32bit (arm).jan Iversen2017-09-1917-1284/+11
| | | | | | | | | | | | | | Supporting 32bit iOS, means a.o. adding several libraries to the dependency list because macOSX does not install them by default (e.g. zlib). 32bit is only used in old iPhones. updated configure.ac removed from solenv/gbuild/platform bridges corrected Change-Id: I415e744a9cb4acb3b5fbfca33c22940a1d56e390
* Some more WIN32_LEAN_AND_MEANMike Kaganski2017-09-182-0/+6
| | | | | | | Change-Id: Iadb0ebb66809c192fb817b8c7cf2f8cdb4d0b874 Reviewed-on: https://gerrit.libreoffice.org/42419 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
* bridges: [loplugin:stringconstant]Michael Stahl2017-09-1821-21/+21
| | | | Change-Id: I07501ac3593cd5df713b74e04ea64d22365958b9
* Use more WIN32_LEAN_AND_MEANMike Kaganski2017-09-162-0/+2
| | | | | | | | | https://msdn.microsoft.com/en-us/aa383745 Change-Id: I83528dc8e6a5e119e7aa816219d35f1ea3723b96 Reviewed-on: https://gerrit.libreoffice.org/42338 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
* Fix typosAndrea Gelmini2017-09-072-2/+2
| | | | | | | Change-Id: I855b26e447a8406cbab6f4c7f918b3319debba35 Reviewed-on: https://gerrit.libreoffice.org/42034 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
* iOS, update gcc3_ios_arm exception.jan Iversen2017-09-051-71/+97
| | | | | | except.c updated to new structure (includes etc). Change-Id: Ie39ec356b2eb0d14f7ba1b15ab1a6e093a35fd74
* Replace use of oslInterlockedCount with std::atomic in bridgesStephan Bergmann2017-08-289-24/+37
| | | | Change-Id: Iad47a01fd283345a2461eaaea50633bf840e5201