[gnome-build-meta/abderrahim/sysprof: 3/5] sdk-deps/sysprof-minimal.bst: add an element to build only libsysprof-capture




commit 9f9ba937e69976e991aa79ae0819c5c8a6cafdda
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Sat Aug 1 09:18:44 2020 +0100

    sdk-deps/sysprof-minimal.bst: add an element to build only libsysprof-capture
    
    This is all that is needed for libraries/apps that want to log to sysprof

 elements/core/gnome-software.bst      |  2 +-
 elements/core/mutter.bst              |  1 -
 elements/core/sysprof.bst             |  5 +----
 elements/core/sysprof.inc             |  4 ++++
 elements/sdk-deps/sysprof-minimal.bst | 19 +++++++++++++++++++
 elements/sdk/gjs.bst                  |  1 +
 6 files changed, 26 insertions(+), 6 deletions(-)
---
diff --git a/elements/core/gnome-software.bst b/elements/core/gnome-software.bst
index c757c72f..92e1e0c2 100644
--- a/elements/core/gnome-software.bst
+++ b/elements/core/gnome-software.bst
@@ -4,8 +4,8 @@ sources:
   url: gitlab_gnome_org:GNOME/gnome-software.git
   track: main
 build-depends:
-- core/sysprof.bst
 - sdk/gtk-doc.bst
+- sdk-deps/sysprof-minimal.bst
 - freedesktop-sdk.bst:public-stacks/buildsystem-meson.bst
 depends:
 - core-deps/appstream.bst
diff --git a/elements/core/mutter.bst b/elements/core/mutter.bst
index c954fd69..12f24eeb 100644
--- a/elements/core/mutter.bst
+++ b/elements/core/mutter.bst
@@ -7,7 +7,6 @@ sources:
 
 build-depends:
 - core-deps/cvt.bst
-- core/sysprof.bst
 - sdk/gtk-doc.bst
 - freedesktop-sdk.bst:public-stacks/buildsystem-meson.bst
 
diff --git a/elements/core/sysprof.bst b/elements/core/sysprof.bst
index 47198457..de1f7436 100644
--- a/elements/core/sysprof.bst
+++ b/elements/core/sysprof.bst
@@ -1,9 +1,6 @@
 kind: meson
 
-sources:
-- kind: git_tag
-  url: gitlab_gnome_org:GNOME/sysprof.git
-  track: master
+(@): elements/core/sysprof.inc
 
 build-depends:
 - freedesktop-sdk.bst:components/itstool.bst
diff --git a/elements/core/sysprof.inc b/elements/core/sysprof.inc
new file mode 100644
index 00000000..4d313773
--- /dev/null
+++ b/elements/core/sysprof.inc
@@ -0,0 +1,4 @@
+sources:
+- kind: git_tag
+  url: gitlab_gnome_org:GNOME/sysprof.git
+  track: master
diff --git a/elements/sdk-deps/sysprof-minimal.bst b/elements/sdk-deps/sysprof-minimal.bst
new file mode 100644
index 00000000..47aebc93
--- /dev/null
+++ b/elements/sdk-deps/sysprof-minimal.bst
@@ -0,0 +1,19 @@
+kind: meson
+
+(@): elements/core/sysprof.inc
+
+build-depends:
+- freedesktop-sdk.bst:public-stacks/buildsystem-meson.bst
+
+depends:
+- freedesktop-sdk.bst:bootstrap-import.bst
+
+variables:
+  meson-local: >-
+    -Denable_examples=false
+    -Denable_gtk=false
+    -Denable_tests=false
+    -Denable_tools=false
+    -Dlibsysprof=false
+    -Dwith_sysprofd=none
+    -Dhelp=false
diff --git a/elements/sdk/gjs.bst b/elements/sdk/gjs.bst
index b355a351..28c1a977 100644
--- a/elements/sdk/gjs.bst
+++ b/elements/sdk/gjs.bst
@@ -4,6 +4,7 @@ sources:
   url: gitlab_gnome_org:GNOME/gjs.git
   track: master
 build-depends:
+- sdk-deps/sysprof-minimal.bst
 - freedesktop-sdk.bst:public-stacks/buildsystem-meson.bst
 depends:
 - sdk/gobject-introspection.bst


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