Fedora 30 packaging fix issu
[src/app-framework-binder.git] / docs / afb-desktop-package.md
1 # Desktop packages for binder development
2
3 Packages of the ***binder*** (afb-daemon)exist
4 for common desktop linux distributions.
5
6 - Fedora
7 - Ubuntu
8 - Debian
9 - Suse
10
11 Installing the development package of the ***binder***
12 allows to write ***bindings*** that runs on the desktop
13 computer of the developer.
14
15 It is very convenient to quickly write and debug a binding.
16
17 ## Retrieving compiling option with pkg-config
18
19 The ***binder*** afb-daemon provides a configuration
20 file for **pkg-config**.  
21 Typing the command
22
23 ```bash
24 pkg-config --cflags afb-daemon
25 ```
26
27 Print flags use for compilation:
28
29 ```bash
30 $ pkg-config --cflags afb-daemon
31 -I/opt/local/include -I/usr/include/json-c
32 ```
33
34 For linking, you should use
35
36 ```bash
37 $ pkg-config --libs afb-daemon
38 -ljson-c
39 ```
40
41 It automatically includes the dependency to json-c.  
42 This is activated through **Requires** keyword in pkg-config.