1# Allow inclusion of "backend/item.h" etc.
2tree_include = include_directories('.')
3
4# Build the resources separately so we can control our compiler warnings to
5# remove a whole bunch of noise.
6libresources = static_library(
7    'brisk-resources',
8    sources: brisk_resources,
9    dependencies: [
10        dep_gio_unix,
11    ],
12)
13
14link_libresources = declare_dependency(
15    link_with: libresources,
16    sources: brisk_resources,
17    include_directories: [
18        data_include,
19    ],
20)
21
22# Build the Cs into a simple static library and control compiler noise
23libsession_stub = static_library(
24    'brisk-glue',
25    sources: [
26        libsaver_glue,
27        libsession_glue,
28    ],
29    c_args: [
30        '-Wno-unused-parameter',
31    ],
32    dependencies: dep_gio_unix,
33    install: false,
34    include_directories: [
35        include_directories('..'),
36    ],
37)
38
39# Allow linking to the stub
40link_libsession_stub = declare_dependency(
41    link_with: libsession_stub,
42    sources: [libsaver_glue, libsession_glue],
43    dependencies: [
44        dep_gio_unix,
45    ],
46    include_directories: [
47        include_directories('.'),
48    ],
49)
50
51# Build common library (currently just keybinder really.)
52subdir('lib')
53
54# Build the backend component
55subdir('backend')
56
57# Now build our main UI
58subdir('frontend')
59
60# Finally, we can build the MATE Applet itself
61subdir('mate-applet')
62