Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| building:advanced [2026/05/29 10:06] – [Use introspection / GtkInspector] alexxcons | building:advanced [2026/12/05 03:04] (current) – add footer links and back link to docs.x.o. build page kevinbowen | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Advanced Building and Debugging Information for Xfce components ====== | ====== Advanced Building and Debugging Information for Xfce components ====== | ||
| - | While the basic build steps are explained here, this page provides some information about build specifics you probably will need on special occasions. | + | While the basic build steps are explained |
| ===== Debugging with gdb ===== | ===== Debugging with gdb ===== | ||
| Line 25: | Line 25: | ||
| thread apply all bt | thread apply all bt | ||
| - | ===== Build with scan-build ===== | + | ===== Build with documentation ===== |
| + | |||
| + | meson setup --reconfigure -Dgtk-doc=true | ||
| + | meson compile -C build | ||
| + | |||
| + | Documentation can be found below '' | ||
| + | |||
| + | ===== Use introspection / GtkInspector ===== | ||
| + | |||
| + | '' | ||
| + | |||
| + | Pre requirements: | ||
| + | |||
| + | * install package libgirepository1.0-dev | ||
| + | * gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true | ||
| + | |||
| + | Building: | ||
| + | |||
| + | meson setup --reconfigure -Dintrospection=true build | ||
| + | meson compile -C build | ||
| + | |||
| + | Then you can start '' | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | ===== Static analysis ===== | ||
| + | |||
| + | ==== Build with scan-build | ||
| '' | '' | ||
| Line 38: | Line 65: | ||
| The reports are in HTML and can be viewed with a browser | The reports are in HTML and can be viewed with a browser | ||
| - | ===== Build with documentation ===== | + | ==== Build with gcc static analyzer |
| - | meson setup --reconfigure -Dgtk-doc=true | + | |
| + | CPPFLAGS=-fanalyzer | ||
| meson compile -C build | meson compile -C build | ||
| - | Documentation can be found below '' | + | ==== Run cppcheck ==== |
| - | ===== Use introspection | + | You need to have xfce4-dev-tools >= 4.21.2 installed for this to work, so cppcheck founds the file '' |
| - | '' | + | See also the comment in the cppcheck job in [[https:// |
| - | Pre requirements: | + | cppcheck -i build -j $(nproc) $([ -f .cppcheck.cfg ] && echo --library=.cppcheck.cfg) --library=gtk --library=xfce -I . \ |
| + | --suppressions-list=< | ||
| + | --enable=style --suppress=variableScope --suppress=constParameterPointer --suppress=constVariablePointer --suppress=constParameterCallback \ | ||
| + | --enable=information --check-level=exhaustive --force --suppress=unmatchedSuppression \ | ||
| + | --enable=warning, | ||
| - | - install package libgirepository1.0-dev | + | ==== Test building strings for translation ==== |
| - | - gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true | + | |
| - | Building: | + | In the main project directory: |
| - | | + | |
| - | meson compile | + | |
| - | + | Note that some projects do use .its/.loc file to apply different rules to specific file types. TOOO: Add info on how these are considered | |
| - | Then you can start '' | + | |
| + | ---- | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | |||
| + | [[: | ||