summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-07-15 14:54:06 +0200
committerAylur <[email protected]>2024-07-15 14:54:06 +0200
commit68b58c94094ebbb44e75be82ece77badaa0cd68f (patch)
treeaa6179cd25fcaeceb7d94c16b9a9641e359ec16e /src
parent1a3b14def2b72e03e3b336937113c6410cce0acd (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/meson.build9
1 files changed, 6 insertions, 3 deletions
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