[gnome-sound-recorder/wip/jtojnar/run: 1/2] build: add run target



commit e4766d25b021d5ea39cc7ba07290cf978c5ad379
Author: Jan Tojnar <jtojnar gmail com>
Date:   Fri Jan 18 03:17:14 2019 +0100

    build: add run target
    
    This will allow developers to run the application with `ninja -C build run`
    without installation.

 src/meson.build | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/src/meson.build b/src/meson.build
index ac7bcb2..b330904 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -20,7 +20,7 @@ app_conf.set('libdir', sound_recorder_libdir)
 app_conf.set('PACKAGE_VERSION', meson.project_version())
 app_conf.set('GJS', gjs_console)
 
-configure_file(
+app = configure_file(
   input: 'org.gnome.SoundRecorder.in',
   output: application_id,
   install: true,
@@ -37,3 +37,11 @@ src_res = gnome.compile_resources(
   install: true,
   install_dir: sound_recoder_pkgdatadir
 )
+
+run_target('run',
+  command: app,
+  depends: [
+    data_res,
+    src_res,
+  ]
+)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]