summaryrefslogtreecommitdiffstats
path: root/plugins/common/meson.build
blob: 2f18c2c668f6eaed731947b41786cff4a0b81454 (plain)
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
common_inc = include_directories('.')

sources = files(
  'gsd-input-helper.c',
  'gsd-settings-migrate.c',
  'gsd-shell-helper.c'
)

resource_data = files('gtk.css')

sources += gnome.compile_resources(
  'gsd-resources',
  'gsd.gresources.xml',
  c_name: 'gsd',
  dependencies: resource_data
)

deps = plugins_deps + [
  gnome_desktop_dep,
  gtk_x11_dep,
  x11_dep,
  dependency('kbproto'),
  dependency('xi')
]

ldflags = []
if host_is_darwin
  ldflags += ['-Wl,-bundle_loader,@0@'.format(join_paths(), meson.build_root(), meson.project_name(), meson.project_name())]
endif

libcommon = static_library(
  plugin_name,
  sources: sources,
  include_directories: [top_inc, data_inc],
  dependencies: deps,
  c_args: cflags,
  link_args: ldflags
)

libcommon_dep = declare_dependency(
  include_directories: common_inc,
  link_with: libcommon
)