~noasakurajin/xapp/master

« back to all changes in this revision

Viewing changes to libxapp/meson.build

  • Committer: Michael Webster
  • Date: 2020-08-14 02:10:41 UTC
  • Revision ID: git-v1:5a7b45257550058bcd88e39eb9ee364e53909a65
build: Allow making a library-only build for flatpak packaging.

It's not worth bundling libgnomekbd into a flatpak either so drop
the layout controller also, which isn't really useful outside of
Cinnamon desktop components anyhow.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
libdeps += dependency('gtk+-3.0', version: '>=3.3.16', required: true)
7
7
libdeps += dependency('gdk-pixbuf-2.0', version: '>=2.22.0', required: true)
8
8
libdeps += dependency('cairo', required: true)
9
 
libdeps += dependency('libgnomekbdui', required: true)
10
9
libdeps += dependency('x11', required: true)
11
10
 
12
11
xapp_headers = [
13
12
    'xapp-gtk-window.h',
14
13
    'xapp-icon-chooser-button.h',
15
14
    'xapp-icon-chooser-dialog.h',
16
 
    'xapp-kbd-layout-controller.h',
17
15
    'xapp-monitor-blanker.h',
18
16
    'xapp-preferences-window.h',
19
17
    'xapp-stack-sidebar.h',
27
25
    'xapp-gtk-window.c',
28
26
    'xapp-icon-chooser-button.c',
29
27
    'xapp-icon-chooser-dialog.c',
30
 
    'xapp-kbd-layout-controller.c',
31
28
    'xapp-monitor-blanker.c',
32
29
    'xapp-preferences-window.c',
33
30
    'xapp-stack-sidebar.c',
36
33
    'xapp-util.c'
37
34
]
38
35
 
 
36
if not app_lib_only
 
37
    libdeps += dependency('libgnomekbdui', required: true)
 
38
    xapp_headers += 'xapp-kbd-layout-controller.h'
 
39
    xapp_sources += 'xapp-kbd-layout-controller.c'
 
40
endif
 
41
 
39
42
dbus_headers = []
40
43
 
41
44
# FIXME: Ugly workaround that simulates the generation of