From c1ea43a45f4588f21752b0ad679c43350a9c8905 Mon Sep 17 00:00:00 2001 Message-ID: From: Vivien Kraus Date: Sun, 29 Oct 2023 19:00:44 +0100 Subject: [PATCH] Install gmobile as a shared library. Tracked at https://gitlab.gnome.org/guidog/gmobile/-/issues/1 * src/meson.build: Install the header files. Import pkgconfig. Generate a pkg-config definition. (gm_lib): use "library", not "static_library". Install it. (gmobile_gir): Install it. * meson.build: Install gm-config.h. --- meson.build | 1 + src/meson.build | 22 +++++++++++++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index e9f6c62..51ebeac 100644 --- a/meson.build +++ b/meson.build @@ -83,6 +83,7 @@ root_inc = include_directories('.') configure_file( output: 'gm-config.h', configuration: config_h, + install_dir: get_option('includedir') ) subdir('data') diff --git a/src/meson.build b/src/meson.build index ee98a39..3dedbe4 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1,3 +1,5 @@ +pkg = import('pkgconfig') + gm_deps = [ gio_dep, glib_dep, @@ -37,18 +39,33 @@ gm_c_args = [ '-DG_LOG_DOMAIN="gmobile"', ] -gm_lib = static_library( +gm_lib = library( 'gmobile', gm_sources, include_directories: root_inc, c_args: gm_c_args, - dependencies: gm_deps) + dependencies: gm_deps, + install: true) + +pkg.generate(gm_lib) gmobile_dep = declare_dependency( include_directories: [root_inc, include_directories('.')], dependencies: gm_deps, link_with: gm_lib) +install_headers( + 'gmobile.h', + 'gm-cutout.h', + 'gm-device-info.h', + 'gm-device-tree.h', + 'gm-display-panel.h', + 'gm-error.h', + 'gm-main.h', + 'gm-rect.h', + 'gm-svg-path.h', + 'gm-timeout.h') + if get_option('gtk_doc') gmobile_gir_extra_args = [ '--c-include=gmobile.h', @@ -66,7 +83,6 @@ if get_option('gtk_doc') identifier_prefix: 'Gm', link_with: gm_lib, includes: ['Gio-2.0'], - install: false, extra_args: gmobile_gir_extra_args, ) endif base-commit: 382fc89472176d2f1d435517cad53d969d8b8eff -- 2.41.0 a71cb'>packages/esolangs.scm
AgeCommit message (Expand)Author
2022-09-14gnu: Add folders....* gnu/packages/esolangs.scm (folders): New variable. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> jgart
2022-05-31gnu: lolcode-lci: Update to 0.11.2-0.6762b72....* gnu/packages/esolangs.scm (lolcode-lci): Update to 0.11.2-0.6762b72. [native-inputs]: Replace python-2 with python-wrapper. Maxim Cournoyer
2021-12-13gnu: Further simplify package inputs....This is the result of running: ./pre-inst-env guix style --input-simplification=safe and manually undoing changes on a dozen of packages to reduce rebuilds (derivations for emacs, icecat, and libreoffice are unchanged.) Ludovic Courtès
2021-12-13gnu: Simplify package inputs....This commit was obtained by running: ./pre-inst-env guix style without any additional argument. Ludovic Courtès
2021-09-25Update copyright assignments for Liliana Marie Prikler....* doc/guix.texi: Update copyright name for Liliana Marie Prikler. * gnu/packages/build-tools.scm: Update copyright name and email for Liliana Marie Prikler. * gnu/packages/convmv.scm: Likewise. * gnu/packages/emacs-xyz.scm: Likewise. * gnu/packages/emacs.scm: Likewise. * gnu/packages/esolangs.scm: Likewise. * gnu/packages/game-development.scm: Likewise. * gnu/packages/games.scm: Likewise. * gnu/packages/gnome-xyz.scm: Likewise. * gnu/packages/gnome.scm: Likewise. * gnu/packages/gstreamer.scm: Likewise. * gnu/packages/guile-xyz.scm: Likewise. * gnu/packages/minetest.scm: Likewise. * gnu/packages/music.scm: Likewise. * gnu/packages/patches/minetest-add-MINETEST_MOD_PATH.patch: Likewise. * gnu/packages/patches/ppsspp-disable-upgrade-and-gold.patch: Likewise. * gnu/packages/patches/webkitgtk-bind-all-fonts.patch: Likewise. * gnu/packages/python-xyz.scm: Likewise. * gnu/packages/unicode.scm: Likewise. * gnu/packages/xorg.scm: Likewise. * gnu/services/sound.scm: Likewise. * guix/build-system/renpy.scm: Likewise. * guix/build/emacs-utils.scm: Likewise. * guix/build/renpy-build-system.scm: Likewise. Liliana Marie Prikler