File: meson.build

package info (click to toggle)
foundry 1.1~beta-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,552 kB
  • sloc: ansic: 167,487; xml: 417; makefile: 21; sh: 19; javascript: 10
file content (56 lines) | stat: -rw-r--r-- 1,366 bytes parent folder | download | duplicates (2)
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
schema_dir = join_paths(get_option('datadir'), 'glib-2.0', 'schemas')
schema_files = []

schemas += files([
  'org.gnome.foundry.gschema.xml.in',
  'org.gnome.foundry.build.gschema.xml.in',
  'org.gnome.foundry.network.gschema.xml.in',
  'org.gnome.foundry.project.gschema.xml.in',
  'org.gnome.foundry.run.gschema.xml.in',
])

if get_option('feature-forge')
  schemas += files([
    'org.gnome.foundry.forge.gschema.xml.in',
  ])
endif

if get_option('feature-lsp')
  schemas += files([
    'org.gnome.foundry.lsp.gschema.xml.in',
  ])
endif

if get_option('feature-text')
  schemas += files([
    'org.gnome.foundry.text.gschema.xml.in',
  ])
endif

if get_option('gtk')
  schemas += files([
    'org.gnome.foundry.terminal.gschema.xml.in',
  ])
endif

foreach schema : schemas
  schema_files += [configure_file(
             copy: true,
            input: schema,
           output: '@BASENAME@',
          install: true,
      install_dir: schema_dir,
  )]
endforeach

gschemas_compiled = custom_target('gschemas.compiled',
            output: 'gschemas.compiled',
           command: ['glib-compile-schemas', meson.current_build_dir()],
      depend_files: schema_files,
  build_by_default: true,
           install: false,
)

gschema_devenv = environment()
gschema_devenv.set('GSETTINGS_SCHEMA_DIR', meson.current_build_dir())
meson.add_devenv(gschema_devenv)