File: meson.build

package info (click to toggle)
gnome-shell 50.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 23,516 kB
  • sloc: javascript: 75,567; ansic: 65,750; xml: 1,829; sh: 918; python: 666; makefile: 54
file content (135 lines) | stat: -rw-r--r-- 3,322 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
data_builddir = meson.current_build_dir()

desktop_files = [
  'org.gnome.Shell.Extensions.desktop',
]
service_files = []

if have_portal_helper
  desktop_files += 'org.gnome.Shell.PortalHelper.desktop'
  service_files += 'org.gnome.Shell.PortalHelper.service'
endif

foreach desktop_file : desktop_files
  i18n.merge_file(
    input: desktop_file + '.in',
    output: desktop_file,
    po_dir: po_dir,
    install: true,
    install_dir: desktopdir,
    type: 'desktop'
  )
endforeach

desktop_directories = [
  'X-GNOME-Shell-Utilities.directory',
  'X-GNOME-Shell-System.directory',
]
foreach desktop_directory : desktop_directories
  i18n.merge_file(
    input: f'@desktop_directory@.desktop.in',
    output: desktop_directory,
    po_dir: po_dir,
    install: true,
    install_dir: join_paths(datadir, 'desktop-directories'),
    type: 'desktop',
  )
endforeach

serviceconf = configuration_data()
serviceconf.set('libexecdir', libexecdir)
foreach service_file : service_files
  configure_file(
    input: service_file + '.in',
    output: service_file,
    configuration: serviceconf,
    install_dir: servicedir
  )
endforeach

theme_deps = []

subdir('dbus-interfaces')
subdir('icons')
subdir('theme')

data_resources = [
  {'name': 'dbus-interfaces'},
  {'name': 'icons'},
  {'name': 'osk-layouts'},
  {'name': 'theme', 'deps': theme_deps}
]
data_resources_targets = []
foreach resource : data_resources
  name = resource.get('name')
  deps = resource.get('deps', [])

  data_resources_targets += gnome.compile_resources(
    'gnome-shell-' + name,
    'gnome-shell-@0@.gresource.xml'.format(name),
    source_dir: name,
    dependencies: deps,
    gresource_bundle: true,
    install: true,
    install_dir: pkgdatadir
  )
endforeach

perfconf = configuration_data()
perfconf.set('datadir', datadir)
configure_file(
  input: 'perf-background.xml.in',
  output: 'perf-background.xml',
  configuration: perfconf,
  install_dir: pkgdatadir
)

keybinding_files = [
  '50-gnome-shell-launchers.xml',
  '50-gnome-shell-screenshots.xml',
  '50-gnome-shell-system.xml',
]

install_data(keybinding_files, install_dir: keysdir)


schemaconf = configuration_data()
schemaconf.set('GETTEXT_PACKAGE', meson.project_name())
schemaconf.set('DASH_APPS', run_command(
  generate_app_list, 'default-apps/dash.txt',
  check: true,
).stdout())
schemaconf.set('APP_GRID_APPS', run_command(
  generate_app_list, '--pages', 'default-apps/app-grid.txt',
  check: true,
).stdout())
schema = configure_file(
  input: 'org.gnome.shell.gschema.xml.in',
  output: 'org.gnome.shell.gschema.xml',
  configuration: schemaconf,
  install_dir: schemadir
)
install_data('00_org.gnome.shell.gschema.override', install_dir: schemadir)

if have_systemd
  unitconf = configuration_data()
  unitconf.set('bindir', bindir)
  configure_file(
    input: 'org.gnome.Shell@.service.in',
    output: 'org.gnome.Shell@.service',
    configuration: unitconf,
    install_dir: systemduserunitdir
  )

  install_data (
    'org.gnome.Shell-disable-extensions.service',
    install_dir: systemduserunitdir,
  )
endif

# for unit tests - gnome.compile_schemas() only looks in srcdir
compiled_schemas = custom_target('compile-schemas',
  input: schema,
  output: 'gschemas.compiled',
  command: [find_program('glib-compile-schemas'), '--strict', data_builddir],
)