~noasakurajin/xapp/master

« back to all changes in this revision

Viewing changes to 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:
11
11
                                                                define_variable: ['prefix', get_option('prefix')])
12
12
libexec_path = join_paths(get_option('prefix'), get_option('libexecdir'), 'xapps', 'sn-watcher')
13
13
 
14
 
 
15
 
 
16
14
cdata = configuration_data()
17
15
cdata.set_quoted('GETTEXT_PACKAGE', 'xapp')
18
16
cdata.set_quoted('XAPP_SN_WATCHER_PATH', join_paths([libexec_path, 'xapp-sn-watcher']))
34
32
  )
35
33
endif
36
34
 
 
35
app_lib_only = get_option('app-lib-only')
 
36
 
37
37
c = configure_file(output : 'config.h',
38
38
    configuration : cdata
39
39
)
41
41
top_inc = include_directories('.')
42
42
codegen = find_program(join_paths(meson.source_root(), 'meson-scripts', 'g-codegen.py'))
43
43
 
44
 
subdir('icons')
45
44
subdir('libxapp')
46
45
subdir('po')
 
46
subdir('schemas')
47
47
subdir('pygobject')
48
 
subdir('schemas')
49
 
subdir('status-applets')
50
 
subdir('scripts')
51
 
 
52
 
if get_option('status-notifier')
 
48
 
 
49
if not app_lib_only
 
50
    subdir('icons')
 
51
    subdir('status-applets')
 
52
    subdir('scripts')
 
53
endif
 
54
 
 
55
if get_option('status-notifier') and not app_lib_only
53
56
    subdir('xapp-sn-watcher')
54
57
endif
55
58