[frogr/meson: 4/4] Added more meson.build files to build the actual code



commit 0bb18a3204d6669607ce4d7b2eab3342d823d13e
Author: Mario Sanchez Prada <msanchez gnome org>
Date:   Tue May 23 14:34:35 2017 +0100

    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/flicksoup/meson.build |   23 +++++++++++++++
 src/meson.build           |   69 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 96 insertions(+), 0 deletions(-)
---
diff --git a/meson.build b/meson.build
index 2c704fb..ab71c70 100644
--- a/meson.build
+++ b/meson.build
@@ -74,3 +74,7 @@ conf.set10('HAVE_GSTREAMER', get_variable('has_video', false))
 
 configure_file(output: 'config.h',
                configuration: conf)
+
+frogr_top_dir = include_directories ('.')
+
+subdir ('src')
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..13b900d
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,69 @@
+frogr_src_dir = include_directories('.')
+
+subdir('flicksoup')
+
+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
+
+frogr_bin = executable(
+    'frogr',
+    sources: frogr_sources,
+    dependencies: frogr_deps,
+    include_directories: frogr_top_dir,
+    link_with: flicksoup,
+    install: true
+)


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