From 68b58c94094ebbb44e75be82ece77badaa0cd68f Mon Sep 17 00:00:00 2001 From: Aylur Date: Mon, 15 Jul 2024 14:54:06 +0200 Subject: install gjs package to pkgdatadir this is needed for ags v2 so that it can setup a ts environment similar to the current --init flag --- src/meson.build | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/meson.build b/src/meson.build index ff5b02e..0bc73a1 100644 --- a/src/meson.build +++ b/src/meson.build @@ -66,7 +66,10 @@ if get_option('lib') version: meson.project_version(), subdirs: meson.project_name(), requires: deps, - install_dir: get_option('libdir') / 'pkgconfig', + install_dir: libdir / 'pkgconfig', + variables: { + 'gjs': pkgdatadir / 'gjs', + }, ) custom_target( @@ -74,14 +77,14 @@ if get_option('lib') command: [ find_program('g-ir-compiler'), '--output', '@OUTPUT@', - '--shared-library', get_option('prefix') / get_option('libdir') / '@PLAINNAME@', + '--shared-library', libdir / '@PLAINNAME@', meson.current_build_dir() / gir, ], input: lib, output: typelib, depends: lib, install: true, - install_dir: get_option('libdir') / 'girepository-1.0', + install_dir: libdir / 'girepository-1.0', ) endif -- cgit v1.2.3