summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2021-06-24 12:40:52 +0200
committerMarius Vlad <marius.vlad@collabora.com>2021-09-02 00:50:16 +0300
commitbd0fb5f877d9a949390cf5ca6191ebf9b1d66cdb (patch)
treea82cbbd9e8858a4e4c08e1dacf9bf63182f438e7 /meson.build
parente144375c2479decf7c7569d4bb1629dce296506b (diff)
meson.build: Install run-time shared library to a specific path
Use prefix_path + libdir to install the run-time shared library and avoid pulling lib with it. This is necessary to avoid installing under PREFIX/ and use PREFIX/agl-compositor instead. This was unfortunately missed when doing the split in a previous commit. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I02b2162f62cbdbf3d00f54edae52aa03c7b4b046
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 27fb2d0..0b57628 100644
--- a/meson.build
+++ b/meson.build
@@ -237,11 +237,13 @@ if dep_libsmack.found()
deps_libweston += dep_libsmack
endif
+dir_module_agl_compositor = join_paths(join_paths(prefix_path, get_option('libdir')), 'agl-compositor')
libexec_compositor = shared_library(
'exec_compositor',
sources: srcs_agl_compositor,
dependencies: deps_libweston,
+ install_dir: dir_module_agl_compositor,
install: true,
version: '0.0.0',
soversion: 0
@@ -259,6 +261,7 @@ exe_agl_compositor = executable(
'agl-compositor',
'src/main.c',
dependencies: dep_libexec_compositor,
+ install_rpath: dir_module_agl_compositor,
install: true
)