[gnome-epub-thumbnailer/wip/hadess/cleanups: 1/3] build: Move sources to src/
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-epub-thumbnailer/wip/hadess/cleanups: 1/3] build: Move sources to src/
- Date: Thu, 29 Sep 2022 11:13:29 +0000 (UTC)
commit 2669a69464a580ace38daca3b9aef51ec6aa80ea
Author: Bastien Nocera <hadess hadess net>
Date: Thu Sep 29 12:38:15 2022 +0200
build: Move sources to src/
meson.build | 18 +-----------------
.../gnome-epub-thumbnailer.c | 0
.../gnome-epub-thumbnailer.thumbnailer.in | 0
.../gnome-mobi-thumbnailer.c | 0
.../gnome-mobi-thumbnailer.thumbnailer.in | 0
.../gnome-thumbnailer-skeleton.c | 0
.../gnome-thumbnailer-skeleton.h | 0
src/meson.build | 17 +++++++++++++++++
8 files changed, 18 insertions(+), 17 deletions(-)
---
diff --git a/meson.build b/meson.build
index 412c563..84592f5 100644
--- a/meson.build
+++ b/meson.build
@@ -5,20 +5,4 @@ deps = [dependency('gdk-pixbuf-2.0'),
dependency('libarchive'),
dependency('libxml-2.0')]
-add_global_arguments('-DTHUMBNAILER_RETURNS_DATA', language : 'c')
-prefix = get_option('prefix')
-bindir = prefix / get_option('bindir')
-thumbnailers_dir = prefix / get_option('datadir') / 'thumbnailers'
-
-foreach file_format : ['EPub', 'MOBI']
- exec_name = 'gnome-@0@-thumbnailer'.format(file_format.to_lower())
- executable(exec_name,
- exec_name + '.c', 'gnome-thumbnailer-skeleton.c',
- c_args : '-DTHUMBNAILER_USAGE=' + '"Thumbnail @0@ books"'.format(file_format),
- dependencies : deps,
- install : true)
- configure_file(input : exec_name + '.thumbnailer.in',
- output : exec_name + '.thumbnailer',
- configuration : {'bindir' : bindir},
- install_dir : thumbnailers_dir)
-endforeach
+subdir('src')
diff --git a/gnome-epub-thumbnailer.c b/src/gnome-epub-thumbnailer.c
similarity index 100%
rename from gnome-epub-thumbnailer.c
rename to src/gnome-epub-thumbnailer.c
diff --git a/gnome-epub-thumbnailer.thumbnailer.in b/src/gnome-epub-thumbnailer.thumbnailer.in
similarity index 100%
rename from gnome-epub-thumbnailer.thumbnailer.in
rename to src/gnome-epub-thumbnailer.thumbnailer.in
diff --git a/gnome-mobi-thumbnailer.c b/src/gnome-mobi-thumbnailer.c
similarity index 100%
rename from gnome-mobi-thumbnailer.c
rename to src/gnome-mobi-thumbnailer.c
diff --git a/gnome-mobi-thumbnailer.thumbnailer.in b/src/gnome-mobi-thumbnailer.thumbnailer.in
similarity index 100%
rename from gnome-mobi-thumbnailer.thumbnailer.in
rename to src/gnome-mobi-thumbnailer.thumbnailer.in
diff --git a/gnome-thumbnailer-skeleton.c b/src/gnome-thumbnailer-skeleton.c
similarity index 100%
rename from gnome-thumbnailer-skeleton.c
rename to src/gnome-thumbnailer-skeleton.c
diff --git a/gnome-thumbnailer-skeleton.h b/src/gnome-thumbnailer-skeleton.h
similarity index 100%
rename from gnome-thumbnailer-skeleton.h
rename to src/gnome-thumbnailer-skeleton.h
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 0000000..55b6797
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,17 @@
+add_global_arguments('-DTHUMBNAILER_RETURNS_DATA', language : 'c')
+prefix = get_option('prefix')
+bindir = prefix / get_option('bindir')
+thumbnailers_dir = prefix / get_option('datadir') / 'thumbnailers'
+
+foreach file_format : ['EPub', 'MOBI']
+ exec_name = 'gnome-@0@-thumbnailer'.format(file_format.to_lower())
+ executable(exec_name,
+ exec_name + '.c', 'gnome-thumbnailer-skeleton.c',
+ c_args : '-DTHUMBNAILER_USAGE=' + '"Thumbnail @0@ books"'.format(file_format),
+ dependencies : deps,
+ install : true)
+ configure_file(input : exec_name + '.thumbnailer.in',
+ output : exec_name + '.thumbnailer',
+ configuration : {'bindir' : bindir},
+ install_dir : thumbnailers_dir)
+endforeach
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]