[file-roller/wip/jtojnar/gtk4: 6/8] build: Install nautilus plug-in relative to prefix




commit d91910844046c50e95d78886ed37aa7a37f9ad24
Author: Jan Tojnar <jtojnar gmail com>
Date:   Tue Dec 21 02:39:08 2021 +0100

    build: Install nautilus plug-in relative to prefix
    
    Otherwise it will try to install it to system-wide location
    when just trying to install into a development prefix.
    
    See https://www.bassi.io/articles/2018/03/15/pkg-config-and-paths/

 meson.build          | 1 +
 nautilus/meson.build | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index d9fba300..dd2ed956 100644
--- a/meson.build
+++ b/meson.build
@@ -15,6 +15,7 @@ gnome = import('gnome')
 i18n = import('i18n')
 gettext_package = meson.project_name()
 prefix = get_option('prefix')
+libdir = join_paths(prefix, get_option('libdir'))
 datadir = join_paths(prefix, get_option('datadir'))
 privexecdir = join_paths(prefix, get_option('libexecdir'), meson.project_name())
 c_comp = meson.get_compiler('c')
diff --git a/nautilus/meson.build b/nautilus/meson.build
index c371e586..152d9fc0 100644
--- a/nautilus/meson.build
+++ b/nautilus/meson.build
@@ -16,5 +16,5 @@ shared_module('nautilus-fileroller',
   include_directories : config_inc,
   c_args : c_args,
   install : true,
-  install_dir : libnautilus_extension_dep.get_pkgconfig_variable('extensiondir')
+  install_dir : libnautilus_extension_dep.get_pkgconfig_variable('extensiondir', define_variable: ['libdir', 
libdir])
 )


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