summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2018-07-24 19:22:38 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2018-07-24 19:22:38 -0300
commit8fd74a785982fedc195187f758c3aebfafd1b7df (patch)
tree027f10ac498926566c253850f5ac3647f6fcec88 /build-aux
parent82cf8d970ad15d0562471108f5e002f6fff21a6f (diff)
downloadgnome-calendar-8fd74a785982fedc195187f758c3aebfafd1b7df.tar.gz
project: Reorganize files
Add a build-aux/ folder and move the Flatpak and Meson auxiliary files there.
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/flatpak/org.gnome.Calendar.json172
-rw-r--r--build-aux/flatpak/org.gnome.Calendar.json~172
-rw-r--r--build-aux/meson.build1
-rw-r--r--build-aux/meson/meson.build1
-rw-r--r--build-aux/meson/meson_post_install.py15
5 files changed, 361 insertions, 0 deletions
diff --git a/build-aux/flatpak/org.gnome.Calendar.json b/build-aux/flatpak/org.gnome.Calendar.json
new file mode 100644
index 00000000..c78da1a8
--- /dev/null
+++ b/build-aux/flatpak/org.gnome.Calendar.json
@@ -0,0 +1,172 @@
+{
+ "app-id" : "org.gnome.Calendar",
+ "runtime" : "org.gnome.Platform",
+ "runtime-version" : "master",
+ "sdk" : "org.gnome.Sdk",
+ "command" : "gnome-calendar",
+ "tags" : [
+ "devel"
+ ],
+ "desktop-file-name-prefix" : "(Development) ",
+ "finish-args" : [
+ "--share=ipc",
+ "--share=network",
+ "--socket=x11",
+ "--socket=wayland",
+ "--system-talk-name=org.freedesktop.login1",
+ "--system-talk-name=org.freedesktop.GeoClue2",
+ "--talk-name=ca.desrt.dconf",
+ "--talk-name=org.gnome.ControlCenter",
+ "--talk-name=org.gnome.OnlineAccounts",
+ "--talk-name=org.gnome.evolution.dataserver.AddressBook9",
+ "--talk-name=org.gnome.evolution.dataserver.Calendar7",
+ "--talk-name=org.gnome.evolution.dataserver.Sources5",
+ "--talk-name=org.gnome.evolution.dataserver.Subprocess.Backend.*",
+ "--filesystem=home",
+ "--filesystem=xdg-run/dconf",
+ "--filesystem=~/.config/dconf:ro",
+ "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
+ ],
+ "build-options" : {
+ "cflags" : "-O2 -g",
+ "cxxflags" : "-O2 -g",
+ "env" : {
+ "V" : "1"
+ }
+ },
+ "x-run-args" : [
+ "--debug"
+ ],
+ "cleanup" : [
+ "/include",
+ "/lib/pkgconfig",
+ "/share/pkgconfig",
+ "/share/aclocal",
+ "/man",
+ "/share/man",
+ "/share/gtk-doc",
+ "*.la",
+ "*.a"
+ ],
+ "modules" : [
+ {
+ "name" : "gnome-online-accounts",
+ "config-opts" : [
+ "--disable-Werror",
+ "--disable-telepathy",
+ "--disable-documentation",
+ "--disable-backend"
+ ],
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://gitlab.gnome.org/GNOME/gnome-online-accounts.git"
+ }
+ ]
+ },
+ {
+ "name" : "libical",
+ "cleanup" : [
+ "/lib/cmake"
+ ],
+ "buildsystem" : "cmake",
+ "config-opts" : [
+ "-DCMAKE_INSTALL_LIBDIR:PATH=/app/lib",
+ "-DBUILD_SHARED_LIBS:BOOL=ON"
+ ],
+ "sources" : [
+ {
+ "type" : "archive",
+ "url" : "https://github.com/libical/libical/releases/download/v3.0.1/libical-3.0.1.tar.gz",
+ "sha256" : "7f32a889df542592a357a73ff5f3bd7b5058450c1a3fb272b1c9a69e32d9ed10"
+ }
+ ]
+ },
+ {
+ "name" : "geocode-glib",
+ "buildsystem" : "meson",
+ "builddir" : true,
+ "config-opts" : [
+ "--libdir=/app/lib"
+ ],
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://gitlab.gnome.org/GNOME/geocode-glib.git"
+ }
+ ]
+ },
+ {
+ "name" : "libgweather",
+ "buildsystem" : "meson",
+ "config-opts" : [
+ "--libdir=/app/lib"
+ ],
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://gitlab.gnome.org/GNOME/libgweather.git"
+ }
+ ]
+ },
+ {
+ "name" : "evolution-data-server",
+ "cleanup" : [
+ "/lib/cmake",
+ "/lib/evolution-data-server/*-backends",
+ "/libexec",
+ "/share/dbus-1/services"
+ ],
+ "buildsystem" : "cmake",
+ "config-opts" : [
+ "-DENABLE_GTK=ON",
+ "-DENABLE_GOOGLE_AUTH=OFF",
+ "-DENABLE_UOA=OFF",
+ "-DENABLE_GOOGLE=OFF",
+ "-DENABLE_VALA_BINDINGS=OFF",
+ "-DENABLE_WEATHER=OFF",
+ "-DWITH_OPENLDAP=OFF",
+ "-DWITH_LIBDB=OFF",
+ "-DENABLE_INTROSPECTION=OFF",
+ "-DENABLE_INSTALLED_TESTS=OFF",
+ "-DENABLE_GTK_DOC=OFF",
+ "-DENABLE_EXAMPLES=OFF"
+ ],
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://gitlab.gnome.org/GNOME/evolution-data-server.git"
+ }
+ ]
+ },
+ {
+ "name" : "libdazzle",
+ "config-opts" : [
+ "--libdir=/app/lib",
+ "--buildtype=debugoptimized"
+ ],
+ "buildsystem" : "meson",
+ "builddir" : true,
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://gitlab.gnome.org/GNOME/libdazzle.git"
+ }
+ ]
+ },
+ {
+ "name" : "gnome-calendar",
+ "buildsystem" : "meson",
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://gitlab.gnome.org/GNOME/gnome-calendar.git"
+ }
+ ],
+ "config-opts" : [
+ "-Dtracing=true",
+ "-Ddocumentation=true"
+ ]
+ }
+ ]
+}
diff --git a/build-aux/flatpak/org.gnome.Calendar.json~ b/build-aux/flatpak/org.gnome.Calendar.json~
new file mode 100644
index 00000000..c78da1a8
--- /dev/null
+++ b/build-aux/flatpak/org.gnome.Calendar.json~
@@ -0,0 +1,172 @@
+{
+ "app-id" : "org.gnome.Calendar",
+ "runtime" : "org.gnome.Platform",
+ "runtime-version" : "master",
+ "sdk" : "org.gnome.Sdk",
+ "command" : "gnome-calendar",
+ "tags" : [
+ "devel"
+ ],
+ "desktop-file-name-prefix" : "(Development) ",
+ "finish-args" : [
+ "--share=ipc",
+ "--share=network",
+ "--socket=x11",
+ "--socket=wayland",
+ "--system-talk-name=org.freedesktop.login1",
+ "--system-talk-name=org.freedesktop.GeoClue2",
+ "--talk-name=ca.desrt.dconf",
+ "--talk-name=org.gnome.ControlCenter",
+ "--talk-name=org.gnome.OnlineAccounts",
+ "--talk-name=org.gnome.evolution.dataserver.AddressBook9",
+ "--talk-name=org.gnome.evolution.dataserver.Calendar7",
+ "--talk-name=org.gnome.evolution.dataserver.Sources5",
+ "--talk-name=org.gnome.evolution.dataserver.Subprocess.Backend.*",
+ "--filesystem=home",
+ "--filesystem=xdg-run/dconf",
+ "--filesystem=~/.config/dconf:ro",
+ "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
+ ],
+ "build-options" : {
+ "cflags" : "-O2 -g",
+ "cxxflags" : "-O2 -g",
+ "env" : {
+ "V" : "1"
+ }
+ },
+ "x-run-args" : [
+ "--debug"
+ ],
+ "cleanup" : [
+ "/include",
+ "/lib/pkgconfig",
+ "/share/pkgconfig",
+ "/share/aclocal",
+ "/man",
+ "/share/man",
+ "/share/gtk-doc",
+ "*.la",
+ "*.a"
+ ],
+ "modules" : [
+ {
+ "name" : "gnome-online-accounts",
+ "config-opts" : [
+ "--disable-Werror",
+ "--disable-telepathy",
+ "--disable-documentation",
+ "--disable-backend"
+ ],
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://gitlab.gnome.org/GNOME/gnome-online-accounts.git"
+ }
+ ]
+ },
+ {
+ "name" : "libical",
+ "cleanup" : [
+ "/lib/cmake"
+ ],
+ "buildsystem" : "cmake",
+ "config-opts" : [
+ "-DCMAKE_INSTALL_LIBDIR:PATH=/app/lib",
+ "-DBUILD_SHARED_LIBS:BOOL=ON"
+ ],
+ "sources" : [
+ {
+ "type" : "archive",
+ "url" : "https://github.com/libical/libical/releases/download/v3.0.1/libical-3.0.1.tar.gz",
+ "sha256" : "7f32a889df542592a357a73ff5f3bd7b5058450c1a3fb272b1c9a69e32d9ed10"
+ }
+ ]
+ },
+ {
+ "name" : "geocode-glib",
+ "buildsystem" : "meson",
+ "builddir" : true,
+ "config-opts" : [
+ "--libdir=/app/lib"
+ ],
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://gitlab.gnome.org/GNOME/geocode-glib.git"
+ }
+ ]
+ },
+ {
+ "name" : "libgweather",
+ "buildsystem" : "meson",
+ "config-opts" : [
+ "--libdir=/app/lib"
+ ],
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://gitlab.gnome.org/GNOME/libgweather.git"
+ }
+ ]
+ },
+ {
+ "name" : "evolution-data-server",
+ "cleanup" : [
+ "/lib/cmake",
+ "/lib/evolution-data-server/*-backends",
+ "/libexec",
+ "/share/dbus-1/services"
+ ],
+ "buildsystem" : "cmake",
+ "config-opts" : [
+ "-DENABLE_GTK=ON",
+ "-DENABLE_GOOGLE_AUTH=OFF",
+ "-DENABLE_UOA=OFF",
+ "-DENABLE_GOOGLE=OFF",
+ "-DENABLE_VALA_BINDINGS=OFF",
+ "-DENABLE_WEATHER=OFF",
+ "-DWITH_OPENLDAP=OFF",
+ "-DWITH_LIBDB=OFF",
+ "-DENABLE_INTROSPECTION=OFF",
+ "-DENABLE_INSTALLED_TESTS=OFF",
+ "-DENABLE_GTK_DOC=OFF",
+ "-DENABLE_EXAMPLES=OFF"
+ ],
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://gitlab.gnome.org/GNOME/evolution-data-server.git"
+ }
+ ]
+ },
+ {
+ "name" : "libdazzle",
+ "config-opts" : [
+ "--libdir=/app/lib",
+ "--buildtype=debugoptimized"
+ ],
+ "buildsystem" : "meson",
+ "builddir" : true,
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://gitlab.gnome.org/GNOME/libdazzle.git"
+ }
+ ]
+ },
+ {
+ "name" : "gnome-calendar",
+ "buildsystem" : "meson",
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://gitlab.gnome.org/GNOME/gnome-calendar.git"
+ }
+ ],
+ "config-opts" : [
+ "-Dtracing=true",
+ "-Ddocumentation=true"
+ ]
+ }
+ ]
+}
diff --git a/build-aux/meson.build b/build-aux/meson.build
new file mode 100644
index 00000000..8800f009
--- /dev/null
+++ b/build-aux/meson.build
@@ -0,0 +1 @@
+subdir('meson')
diff --git a/build-aux/meson/meson.build b/build-aux/meson/meson.build
new file mode 100644
index 00000000..1ab810bb
--- /dev/null
+++ b/build-aux/meson/meson.build
@@ -0,0 +1 @@
+meson.add_install_script('meson_post_install.py')
diff --git a/build-aux/meson/meson_post_install.py b/build-aux/meson/meson_post_install.py
new file mode 100644
index 00000000..bf320a9d
--- /dev/null
+++ b/build-aux/meson/meson_post_install.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python3
+
+import os
+import subprocess
+
+install_prefix = os.environ['MESON_INSTALL_PREFIX']
+icondir = os.path.join(install_prefix, 'share', 'icons', 'hicolor')
+schemadir = os.path.join(install_prefix, 'share', 'glib-2.0', 'schemas')
+
+if not os.environ.get('DESTDIR'):
+ print('Update icon cache...')
+ subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir])
+
+ print('Compiling gsettings schemas...')
+ subprocess.call(['glib-compile-schemas', schemadir])