[frogr/meson: 4/16] meson: Added more meson.build files to build the actual code
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr/meson: 4/16] meson: Added more meson.build files to build the actual code
- Date: Tue, 23 May 2017 20:39:18 +0000 (UTC)
commit 599abee643dba4ec3fc6fa55dfd1f86d4004620d
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Tue May 23 14:34:35 2017 +0100
meson: Added more meson.build files to build the actual code
This builds flicksoup and frogr, still pending to add the bits
to deal with translations, data files and the manual.
meson.build | 4 ++
src/examples/meson.build | 16 ++++++++++
src/flicksoup/meson.build | 23 ++++++++++++++
src/meson.build | 71 +++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 114 insertions(+), 0 deletions(-)
---
diff --git a/meson.build b/meson.build
index c2fa100..3582a88 100644
--- a/meson.build
+++ b/meson.build
@@ -76,3 +76,7 @@ frogr_conf.set10('HAVE_GSTREAMER', get_variable('has_video', false))
# Generate configuration
configure_file(output: 'config.h',
configuration: frogr_conf)
+
+# Build frogr
+frogr_top_dir = include_directories ('.')
+subdir ('src')
diff --git a/src/examples/meson.build b/src/examples/meson.build
new file mode 100644
index 0000000..cfa4d2f
--- /dev/null
+++ b/src/examples/meson.build
@@ -0,0 +1,16 @@
+example_sources = [
+ 'example.c'
+]
+
+example_deps = [
+ glib,
+ soup,
+ xml2,
+ gcrypt
+]
+
+executable('example',
+ sources: example_sources,
+ include_directories: [frogr_top_dir, frogr_src_dir],
+ dependencies: example_deps,
+ link_with: flicksoup)
diff --git a/src/flicksoup/meson.build b/src/flicksoup/meson.build
new file mode 100644
index 0000000..6e4dffd
--- /dev/null
+++ b/src/flicksoup/meson.build
@@ -0,0 +1,23 @@
+flicksoup_sources = [
+ 'flicksoup.h',
+ 'fsp-data.c',
+ 'fsp-data.h',
+ 'fsp-error.c',
+ 'fsp-error.h',
+ 'fsp-parser.c',
+ 'fsp-parser.h',
+ 'fsp-session.c',
+ 'fsp-session.h'
+]
+
+flicksoup_deps = [
+ glib,
+ soup,
+ xml2,
+ gcrypt
+]
+
+flicksoup = static_library('libflicksoup',
+ sources: flicksoup_sources,
+ include_directories: [frogr_top_dir, frogr_src_dir],
+ dependencies: flicksoup_deps)
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 0000000..8d113ae
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,71 @@
+frogr_src_dir = include_directories('.')
+
+subdir('flicksoup')
+subdir('examples')
+
+frogr_sources = [
+ 'frogr-about-dialog.c',
+ 'frogr-about-dialog.h',
+ 'frogr-account.c',
+ 'frogr-account.h',
+ 'frogr-add-tags-dialog.c',
+ 'frogr-add-tags-dialog.h',
+ 'frogr-add-to-group-dialog.c',
+ 'frogr-add-to-group-dialog.h',
+ 'frogr-add-to-set-dialog.c',
+ 'frogr-add-to-set-dialog.h',
+ 'frogr-auth-dialog.c',
+ 'frogr-auth-dialog.h',
+ 'frogr-config.c',
+ 'frogr-config.h',
+ 'frogr-controller.c',
+ 'frogr-controller.h',
+ 'frogr-create-new-set-dialog.c',
+ 'frogr-create-new-set-dialog.h',
+ 'frogr-details-dialog.c',
+ 'frogr-details-dialog.h',
+ 'frogr-file-loader.c',
+ 'frogr-file-loader.h',
+ 'frogr-global-defs.h',
+ 'frogr-group.c',
+ 'frogr-group.h',
+ 'frogr-live-entry.c',
+ 'frogr-live-entry.h',
+ 'frogr-location.c',
+ 'frogr-location.h',
+ 'frogr-main-view.c',
+ 'frogr-main-view.h',
+ 'frogr-model.c',
+ 'frogr-model.h',
+ 'frogr-photoset.c',
+ 'frogr-photoset.h',
+ 'frogr-picture.c',
+ 'frogr-picture.h',
+ 'frogr-settings-dialog.c',
+ 'frogr-settings-dialog.h',
+ 'frogr-util.c',
+ 'frogr-util.h',
+ 'main.c'
+]
+
+frogr_deps = [
+ gtk,
+ glib,
+ exif,
+ json_glib,
+ xml2
+]
+
+if get_variable('has_video', false)
+ frogr_deps = frogr_deps + [gst]
+endif
+
+executable(
+ 'frogr',
+ sources: frogr_sources,
+ include_directories: frogr_top_dir,
+ dependencies: frogr_deps,
+ link_args: '-rdynamic',
+ link_with: flicksoup,
+ install: true
+)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]