Browse Source

meson: provide run-gdb target

bboozzoo/tls-support
Maciek Borzecki 7 years ago
parent
commit
38f5310532
1 changed files with 19 additions and 8 deletions
  1. +19
    -8
      meson.build

+ 19
- 8
meson.build View File

@ -48,14 +48,14 @@ mconnect_src = [
'src/crypt/certificate.vala', 'src/crypt/certificate.vala',
] ]
executable('mconnect', mconnect_src,
dependencies : [glib_dep, gobject_dep,
gio_dep, gio_unix_dep,
json_glib_dep, gee_dep,
libnotify_dep, gdk_dep,
atspi_dep, gnutls_dep,
posix_dep],
install: true)
mconnect_prog = executable('mconnect', mconnect_src,
dependencies : [glib_dep, gobject_dep,
gio_dep, gio_unix_dep,
json_glib_dep, gee_dep,
libnotify_dep, gdk_dep,
atspi_dep, gnutls_dep,
posix_dep],
install: true)
mconnectctl_src = 'src/mconnectctl/main.vala' mconnectctl_src = 'src/mconnectctl/main.vala'
executable('mconnectctl', mconnectctl_src, executable('mconnectctl', mconnectctl_src,
@ -98,3 +98,14 @@ mconnectdatadir = join_paths(get_option('datadir'),
install_data('mconnect.conf', install_data('mconnect.conf',
install_dir: mconnectdatadir, install_dir: mconnectdatadir,
install_mode: 'rw-r--r--') install_mode: 'rw-r--r--')
# other targets
gdb_conf = configuration_data()
gdb_conf.set('bindir', meson.build_root())
gdb_script = configure_file(output: 'gdb-script',
input: 'gdb-script.in',
configuration: gdb_conf)
run_target('run-gdb',
command: ['gdb', '-x', join_paths(meson.build_root(), 'gdb-script')],
depends: [mconnect_prog])

Loading…
Cancel
Save