[gnome-sound-recorder/wip/jtojnar/run: 48/48] build: add run target
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder/wip/jtojnar/run: 48/48] build: add run target
- Date: Sat, 8 Jun 2019 14:31:05 +0000 (UTC)
commit 345caeb51331acddfb0f7eb3c5abfcbedc097fd6
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.
data/meson.build | 2 +-
meson.build | 2 +-
src/meson.build | 12 ++++++++++--
3 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index abee44d..b805bbf 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -41,7 +41,7 @@ configure_file(
install_dir: sound_recorder_schemadir
)
-gnome.compile_resources(
+data_res = gnome.compile_resources(
application_id + '.data',
application_id + '.data.gresource.xml',
gresource_bundle: true,
diff --git a/meson.build b/meson.build
index dc79943..b7a8805 100644
--- a/meson.build
+++ b/meson.build
@@ -29,8 +29,8 @@ i18n = import('i18n')
po_dir = join_paths(meson.source_root(), 'po')
-subdir('src')
subdir('data')
+subdir('src')
subdir('po')
meson.add_install_script(
diff --git a/src/meson.build b/src/meson.build
index 8936a05..d24fc99 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -5,7 +5,7 @@ app_conf.set('PACKAGE_VERSION', meson.project_version())
app_conf.set('GJS', gjs_console)
app_conf.set('APPLICATION_ID', application_id)
-configure_file(
+app = configure_file(
input: 'org.gnome.SoundRecorder.in',
output: application_id,
install: true,
@@ -13,7 +13,7 @@ configure_file(
configuration: app_conf
)
-gnome.compile_resources(
+src_res = gnome.compile_resources(
application_id + '.src',
'org.gnome.SoundRecorder.src.gresource.xml',
source_dir: '.',
@@ -21,3 +21,11 @@ gnome.compile_resources(
install: true,
install_dir: sound_recorder_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]