[gnome-contacts] Flatpak: set development profile when building the dev flatpak



commit 503a33d5930dc97ba2cc57c5a27ae2d08b88d7cf
Author: Julian Sparber <julian sparber net>
Date:   Thu Jan 9 16:45:01 2020 +0100

    Flatpak: set development profile when building the dev flatpak
    
    We are using a different appid when building for development. By setting
    the profle=development meson changes the appid to the devel appid.
    
    This also changes the behavior of profile: always use
    `org.gnome.Contacts` and only when profile=development use the devel
    appid.

 data/flatpak/org.gnome.Contacts.json | 4 ++++
 meson.build                          | 6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/data/flatpak/org.gnome.Contacts.json b/data/flatpak/org.gnome.Contacts.json
index 654a9d3..a0f9df7 100644
--- a/data/flatpak/org.gnome.Contacts.json
+++ b/data/flatpak/org.gnome.Contacts.json
@@ -208,6 +208,10 @@
         {
             "name": "gnome-contacts",
             "buildsystem": "meson",
+            "config-opts" : [
+                "-Dtracing=true",
+                "-Dprofile=development"
+            ],
             "sources": [
                 {
                     "type": "git",
diff --git a/meson.build b/meson.build
index a55cd74..bf73ff2 100644
--- a/meson.build
+++ b/meson.build
@@ -14,10 +14,10 @@ add_project_arguments(
 )
 
 # Application ID
-if get_option('profile') == 'default'
-  contacts_app_id = 'org.gnome.Contacts'
-else
+if get_option('profile') == 'development'
   contacts_app_id = 'org.gnome.Contacts.Devel'
+else
+  contacts_app_id = 'org.gnome.Contacts'
 endif
 
 # Common variables


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