HACKING.md 986 Bytes
Newer Older
1
# New to deja-dup?
2 3 4 5

When making a non-trivial change, remember to add yourself to AUTHORS and help/C/credits.page

deja-dup uses meson, but for most development purposes, you can simply use the convenience top-level Makefile:
6 7 8
 * To build: `make`
 * To test: `make check`
 * To install: `make install DESTDIR=/tmp/deja-dup`
9

10
When testing a change, it is helpful to run `./tests/shell` (or `shell-local` if you want a silo'd dbus environment too)
11 12
That will give you a full shell pointing at all your built executables.

13
## Folder Layout
14 15 16 17 18
 * libdeja: non-GUI library that wraps policy and hides complexity of duplicity
 * deja-dup: GNOME UI for libdeja, including integration points with nautilus and control-center
 * data: shared schemas, icons, etc
 * vapi: some helper APIs for vala

19
## Flatpak
20

21
To build a local flatpak, run `make flatpak`. You'll want an up-to-date flatpak-builder though.
22 23

If you're on Ubuntu:
24 25

```
26 27
sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
28
```