From a68567242233ae9e4f2c43f6e0b43601af75a42e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Thu, 18 Apr 2024 11:43:33 +0200 Subject: [PATCH] meson: Improve the generated .pc metadata - Clarify names and descriptions. - Use Frida version instead of the project version. --- lib/base/meson.build | 5 ++++- lib/payload/meson.build | 5 ++++- src/api/meson.build | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/base/meson.build b/lib/base/meson.build index 63ab3aa89..0359914ed 100644 --- a/lib/base/meson.build +++ b/lib/base/meson.build @@ -40,5 +40,8 @@ base_build_dir = meson.current_build_dir() pkg = import('pkgconfig') pkg.generate(base, - description: 'Frida base library', + filebase: f'frida-base-@api_version@', + name: 'Frida Base Library', + version: frida_version, + description: 'Basic building blocks', ) diff --git a/lib/payload/meson.build b/lib/payload/meson.build index 80ba106d7..263f8b0d3 100644 --- a/lib/payload/meson.build +++ b/lib/payload/meson.build @@ -50,5 +50,8 @@ payload_dep = declare_dependency( pkg = import('pkgconfig') pkg.generate(payload, - description: 'Frida payload library intended for static linking into payloads', + filebase: f'frida-payload-@api_version@', + name: 'Frida Payload Library', + version: frida_version, + description: 'Building blocks commonly needed to implement payloads', ) diff --git a/src/api/meson.build b/src/api/meson.build index 8f8c004c2..e3394c76e 100644 --- a/src/api/meson.build +++ b/src/api/meson.build @@ -106,9 +106,9 @@ core_public_dep = declare_dependency( pkg = import('pkgconfig') pkg.generate( filebase: f'frida-core-@api_version@', - name: 'Frida Core', - version: meson.project_version(), - description: 'Frida core library intended for static linking into bindings', + name: 'Frida Core Library', + version: frida_version, + description: 'Instrumentation toolkit for developers, reverse-engineers, and security researchers', requires: ['glib-2.0', 'gobject-2.0', 'gio-2.0', 'json-glib-1.0'], requires_private: ['gmodule-2.0', 'gee-0.8', 'libsoup-3.0', 'frida-gum-1.0', 'frida-gumjs-inspector-1.0', 'libbrotlidec'] + backend_reqs_private, subdirs: f'frida-@api_version@',