summaryrefslogtreecommitdiff
path: root/peas-demo/plugins/secondtime/meson.build
blob: c1631a79fcfeec0357ab25330e90870f05088f7d (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
libsecondtime_name = 'secondtime'

libsecondtime_c = [
  'second-time.c',
]

libsecondtime_plugin_data = [
  'secondtime.plugin',
]

libsecondtime_c_args = [
  '-DHAVE_CONFIG_H',
]

libsecondtime_lib = shared_library(
  libsecondtime_name,
  libsecondtime_c,
  include_directories: rootdir,
  dependencies: [gtk_dep, libpeas_dep],
  c_args: project_c_args + libsecondtime_c_args,
  install_dir: join_paths(peas_demo_plugins_dir, 'secondtime'),
  install: true,
)

custom_target(
  'lib@0@-data'.format(libsecondtime_name),
  input: libsecondtime_plugin_data,
  output: libsecondtime_plugin_data,
  command: [copyfile_script, '@INPUT@', '@OUTDIR@'],
  build_by_default: true,
  install_dir: join_paths(peas_demo_plugins_dir, 'secondtime'),
  install: true,
)