Test repository to check push and ssh key
Find a file
Luboš Luňák 0adc9b615f GBUILD_TRACE, support for finding out where the build time is spent
See instructions in solenv/gbuild/Trace.mk . This generates a file than
can be viewed e.g. in the Chromium tracing view.

Change-Id: I5f90647c58ca729375525b6daed2d4918adc8188
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88754
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-02-16 14:49:45 +01:00
.git-hooks
.github
accessibility clang-format accessibility & basctl with under 5-percent lines of change 2020-02-16 11:04:43 +01:00
android GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
animations Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
apple_remote
avmedia tdf#124176: Use pragma once instead of include guards 2020-02-13 11:59:05 +01:00
basctl clang-format accessibility & basctl with under 5-percent lines of change 2020-02-16 11:04:43 +01:00
basegfx tdf#130655 callback interface for 3D and secure dash 2020-02-14 19:19:49 +01:00
basic clang-format accessibility & basctl with under 5-percent lines of change 2020-02-16 11:04:43 +01:00
bean tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
bin Optionally generate PDBs also for nss 2020-02-14 15:25:24 +01:00
binaryurp
bridges Hack to dynamically adapt to __cxa_exceptiom in LLVM 11 libcxxabi 2020-02-13 09:23:01 +01:00
canvas draw sprite bounds in vclcanvas only if explicitly asked for 2020-02-16 14:49:25 +01:00
chart2 clang-format chart2 with under 5-percent lines of change 2020-02-16 11:05:14 +01:00
cli_ure
codemaker
comphelper clang-format c*,d*,e* with under 5-percent lines of change 2020-02-16 14:10:11 +01:00
compilerplugins Fix loplugin:conststringvar 2020-02-16 14:17:12 +01:00
config_host HAVE_GCC_ATTRIBUTE_WARN_UNUSED should always be true now for Clang/GCC 2020-01-28 18:35:49 +01:00
configmgr GenericCommands: fix Fontwork tooltips 2020-02-06 23:11:39 +01:00
connectivity Prefer array over vector for 3 elements container 2020-02-13 11:22:40 +01:00
cppcanvas clang-format c*,d*,e* with under 5-percent lines of change 2020-02-16 14:10:11 +01:00
cppu
cppuhelper android: Actually let's avoid the exceptions via bridges only on aarch4. 2020-02-11 15:24:34 +01:00
cpputools
cui remove MetricField use from cui 2020-02-14 21:24:14 +01:00
dbaccess clang-format c*,d*,e* with under 5-percent lines of change 2020-02-16 14:10:11 +01:00
desktop GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
dictionaries@3097066a2e
distro-configs Introduce INCLUDE: in the distro-configs... 2020-02-11 20:25:32 +01:00
drawinglayer remove graphicprimitive2d.{cxx,hxx} from clang-format blacklist 2020-02-11 18:53:46 +01:00
dtrans loplugin:nullptr (clang-cl) 2020-02-04 08:01:39 +01:00
editeng clang-analyzer-deadcode.DeadStores 2020-02-12 10:31:25 +01:00
embeddedobj clang-format c*,d*,e* with under 5-percent lines of change 2020-02-16 14:10:11 +01:00
embedserv
emfio clang-format c*,d*,e* with under 5-percent lines of change 2020-02-16 14:10:11 +01:00
eventattacher
extensions GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
external GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
extras GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
filter GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
forms clang-format f*,h* with under 5-percent lines of change 2020-02-16 14:10:39 +01:00
formula clang-format f*,h* with under 5-percent lines of change 2020-02-16 14:10:39 +01:00
fpicker clang-format f*,h* with under 5-percent lines of change 2020-02-16 14:10:39 +01:00
framework clang-format f*,h* with under 5-percent lines of change 2020-02-16 14:10:39 +01:00
helpcompiler
helpcontent2@e57ef36242 Update git submodules 2020-02-16 14:00:07 +01:00
hwpfilter clang-format f*,h* with under 5-percent lines of change 2020-02-16 14:10:39 +01:00
i18nlangtag Resolves: tdf#130550 Add Ligurian [lij-IT] to language list 2020-02-10 20:50:27 +01:00
i18npool GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
i18nutil Add case table for Medefaidrin 2020-02-12 17:33:39 +01:00
icon-themes Colibre: Update print related icons & mail merge toolbar icons 2020-02-16 07:19:11 +01:00
idl
idlc
include move some headers inside sfx2/ 2020-02-16 07:00:15 +01:00
instsetoo_native GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
io remove some unused local vars 2020-01-26 08:01:42 +01:00
ios GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
javaunohelper tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
jurt Cleanup: Move unit tests to ridljar 2020-02-10 09:48:05 +01:00
jvmaccess tdf#42949 Fix IWYU warnings in jvmfwk/ & jvmaccess/ 2019-04-26 14:54:54 +02:00
jvmfwk GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
l10ntools avoid flex-caused warnings about unused functions 2020-02-03 16:33:20 +01:00
librelogo GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
libreofficekit
lingucomponent
linguistic
lotuswordpro use color instead of int 2020-02-10 10:16:44 +01:00
m4
nlpsolver
o3tl
odk GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
offapi tdf#126700 allow replacing the default documents 2020-02-12 00:27:51 +01:00
officecfg GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
onlineupdate Fix accidental variable shadowing 2020-02-10 01:03:22 +01:00
oovbaapi
oox tdf#119138 Show custom chart title if autoTitleDeleted is missing 2020-02-13 09:54:40 +01:00
opencl
osx
package make update_pch also consider files in <module>/src/**/inc 2020-02-01 20:12:21 +01:00
pch Removed duplicated includes 2019-12-04 07:06:49 +01:00
postprocess GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
pyuno GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
qadevOOo Fix typo 2020-02-09 19:41:10 +01:00
readlicense_oo GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
registry
remotebridges
reportbuilder
reportdesign convert XML_STYLE_FAMILY to scoped enum 2020-02-15 07:02:36 +01:00
ridljar GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
sal clang-analyzer-deadcode.DeadStores 2020-02-12 10:31:25 +01:00
salhelper
sax remove some unused local vars 2020-01-26 08:01:42 +01:00
sc convert XML_STYLE_FAMILY to scoped enum 2020-02-15 07:02:36 +01:00
scaddins
sccomp remove some unused local vars 2020-01-28 09:18:31 +01:00
schema
scp2
scripting
sd split StringToMetric and TextToValue into fieldvalue.hxx 2020-02-14 15:36:23 +01:00
sdext GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
setup_native
sfx2 move some headers inside sfx2/ 2020-02-16 07:00:15 +01:00
shell GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
slideshow
smoketest
solenv GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
soltools tdf#130137 Replace remaining uses of WNT define checks with _WIN32 2020-01-25 22:02:16 +01:00
sot
starmath make update_pch also consider files in <module>/src/**/inc 2020-02-01 20:12:21 +01:00
stoc Be more verbose about JNI errors at least with --enable-dbgutil 2020-02-06 11:16:42 +01:00
store
svgio
svl tdf#129878: replace error string for number format errors in Calc 2020-02-16 08:41:26 +01:00
svtools remove recently unused functions 2020-02-14 21:44:16 +01:00
svx tdf#130483 prevent pasting cell exceeds the border. 2020-02-15 17:53:02 +01:00
sw no more SwIterator in HasHiddenInformationNotes 2020-02-16 14:10:56 +01:00
swext
sysui GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
test cppcheck: redundantInitialization in XSheetCondition::testGetSetOperator() 2020-02-10 01:01:21 +01:00
testtools GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
toolkit move dialog.hxx to vcl/include/toolkit 2020-02-14 09:59:12 +01:00
tools GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
translations@614eb34296 Update git submodules 2020-02-11 19:23:35 +01:00
ucb clang-analyzer-deadcode.DeadStores 2020-02-12 10:31:25 +01:00
ucbhelper move some headers inside ucbhelper 2020-02-04 06:21:41 +01:00
udkapi Revert "tdf#124176: Use "pragma once" on udkapi/*" 2019-12-28 19:55:35 +01:00
uitest
UnoControls tdf#124176: Use "pragma once" on UnoControls/* 2019-12-28 10:31:38 +01:00
unodevtools clang-tidy modernize-concat-nested-namespace 2020-01-31 18:36:09 +01:00
unoidl
unoil GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
unotest Fix mis-merge 2020-02-06 22:22:23 +01:00
unotools tdf#126700 allow replacing the default documents 2020-02-12 00:27:51 +01:00
unoxml -Werror,-Wnon-c-typedef-for-linkage 2020-02-10 08:03:05 +01:00
ure
uui
vbahelper make update_pch also consider files in <module>/src/**/inc 2020-02-01 20:12:21 +01:00
vcl GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
winaccessibility GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
wizards GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
writerfilter tdf#95495 DOCX import: fix inherited list level of custom styles 2020-02-13 09:37:51 +01:00
writerperfect Fix typo 2020-02-11 16:26:18 +01:00
xmerge tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
xmlhelp
xmloff convert XML_STYLE_FAMILY to scoped enum 2020-02-15 07:02:36 +01:00
xmlreader
xmlscript Fix typo 2020-02-16 10:23:08 +01:00
xmlsecurity clang-analyzer-deadcode.DeadStores 2020-02-12 10:31:25 +01:00
.buckconfig
.buckversion Add build toolchain to upload LibreOffice API to Maven Central 2015-12-03 23:32:11 +00:00
.clang-format clang-format: don't fix up namespace comments 2019-11-14 08:30:47 +01:00
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore Add QtCreator-specific file to .gitignore 2019-06-08 15:36:20 +02:00
.gitmodules
.gitreview
antivirusDetection.vbs tdf#84553 Correctly handle failures while getting a WMI Object. 2020-02-12 09:14:03 +01:00
autogen.sh Introduce INCLUDE: in the distro-configs... 2020-02-11 20:25:32 +01:00
BUCK
config.guess
config.sub
config_host.mk.in MAC_OS_X_VERSION_MIN_REQUIRED_DOTS is the same as MACOSX_DEPLOYMENT_TARGET 2020-02-16 11:13:50 +01:00
config_host_lang.mk.in
configure.ac MAC_OS_X_VERSION_MIN_REQUIRED_DOTS is the same as MACOSX_DEPLOYMENT_TARGET 2020-02-16 11:13:50 +01:00
COPYING Licencing files 2011-01-11 21:49:39 +00:00
COPYING.LGPL Licencing files 2011-01-11 21:49:39 +00:00
COPYING.MPL
download.lst Update mdds to 1.6.0. 2020-02-09 22:21:30 +01:00
g ./g: don't exit early on ./g checkout -f 2018-07-02 23:51:08 +02:00
hardened_runtime.xcent macOS: enable hardened runtime when signing 2019-05-31 21:13:31 +02:00
install-sh Fix typos 2019-08-12 22:12:57 +02:00
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit logerrit: Upgrade URIs to https:// 2020-01-16 01:01:58 +01:00
Makefile.fetch
Makefile.gbuild updater: workaround cygwin python bug around command line arguments 2017-08-05 05:31:06 +02:00
Makefile.in
README.cross
README.md
README.Solaris
Repository.mk drop workben outdevgrind 2020-02-13 16:50:38 +01:00
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-blacklist file for ci-based ubsan build 2015-10-31 01:32:18 -05:00
setup.cfg
TEMPLATE.SOURCECODE.HEADER

LibreOffice

Coverity Scan Build Status CII Best Practices Translation status

LibreOffice is an integrated office suite based on copyleft licenses and compatible with most document formats and standards. Libreoffice is backed by The Document Foundation, which represents a large independent community of enterprises, developers and other volunteers moved by the common goal of bringing to the market the best software for personal productivity. LibreOffice is open source, and free to download, use and distribute.

A quick overview of the LibreOffice code structure.

Overview

You can develop for LibreOffice in one of two ways, one recommended and one much less so. First the somewhat less recommended way: it is possible to use the SDK to develop an extension, for which you can read the API docs here and here. This re-uses the (extremely generic) UNO APIs that are also used by macro scripting in StarBasic.

The best way to add a generally useful feature to LibreOffice is to work on the code base however. Overall this way makes it easier to compile and build your code, it avoids any arbitrary limitations of our scripting APIs, and in general is far more simple and intuitive - if you are a reasonably able C++ programmer.

The build chain and runtime baselines

These are the current minimal operating system and compiler versions to run and compile LibreOffice, also used by the TDF builds:

  • Windows:
    • Runtime: Windows 7
    • Build: Cygwin + Visual Studio 2017 version 15.7
  • macOS:
    • Runtime: 10.10
    • Build: 10.13.2 + Xcode 9.3
  • Linux:
    • Runtime: RHEL 7 or CentOS 7
    • Build: either GCC 7.0.0; or Clang 5.0.2 with libstdc++ 7.3.0
  • iOS (only for LibreOfficeKit):
    • Runtime: 11.4 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.3 and iPhone SDK 11.4
  • Android:
    • Build: NDK r19c and SDK 22.6.2

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 5.0.2. Since Xcode doesn't provide the compiler plugin headers, you have to compile your own Clang to use them on macOS.

You can find the TDF configure switches in the distro-configs/ directory.

To setup your initial build environment on Windows and macOS, we provide the LibreOffice Development Environment (LODE) scripts.

For more information see the build instructions for your platform in the TDF wiki.

The important bits of code

Each module should have a README file inside it which has some degree of documentation for that module; patches are most welcome to improve those. We have those turned into a web page here:

https://docs.libreoffice.org/

However, there are two hundred modules, many of them of only peripheral interest for a specialist audience. So - where is the good stuff, the code that is most useful. Here is a quick overview of the most important ones:

Module Description
sal/ this provides a simple System Abstraction Layer
tools/ this provides basic internal types: 'Rectangle', 'Color' etc.
vcl/ this is the widget toolkit library and one rendering abstraction
framework UNO framework, responsible for building toolbars, menus, status bars, and the chrome around the document using widgets from VCL, and XML descriptions from /uiconfig/ files
sfx2/ legacy core framework used by Writer/Calc/Draw: document model / load/save / signals for actions etc.
svx/ drawing model related helper code, including much of Draw/Impress

Then applications

Module Description
desktop/ this is where the 'main' for the application lives, init / bootstrap. the name dates back to an ancient StarOffice that also drew a desktop
sw/ Writer
sc/ Calc
sd/ Draw / Impress

There are several other libraries that are helpful from a graphical perspective:

Module Description
basegfx/ algorithms and data-types for graphics as used in the canvas
canvas/ new (UNO) canvas rendering model with various backends
cppcanvas/ C++ helper classes for using the UNO canvas
drawinglayer/ View code to render drawable objects and break them down into primitives we can render more easily.

Rules for #include directives (C/C++)

Use the "..." form if and only if the included file is found next to the including file. Otherwise, use the <...> form. (For further details, see the mail Re: C[++]: Normalizing include syntax ("" vs <>).)

The UNO API include files should consistently use double quotes, for the benefit of external users of this API.

loplugin:includeform (compilerplugins/clang/includeform.cxx) enforces these rules.

Finding out more

Beyond this, you can read the README files, send us patches, ask on the mailing list libreoffice@lists.freedesktop.org (no subscription required) or poke people on IRC #libreoffice-dev on irc.freenode.net - we're a friendly and generally helpful mob. We know the code can be hard to get into at first, and so there are no silly questions.