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



commit e90f27535c87c4eedfcca62f69a59f3fd87e720b
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 | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/src/meson.build b/src/meson.build
index ac7bcb2..80516e9 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -37,3 +37,11 @@ src_res = gnome.compile_resources(
   install: true,
   install_dir: sound_recoder_pkgdatadir
 )
+
+run_target('run',
+  command: join_paths(meson.build_root(), 'src', application_id),
+  depends: [
+    data_res,
+    src_res,
+  ]
+)


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