Skip to content

Commit

Permalink
meson: Improve the generated .pc metadata
Browse files Browse the repository at this point in the history
- Clarify names and descriptions.
- Use Frida version instead of the project version.
  • Loading branch information
oleavr committed Apr 18, 2024
1 parent ecc52da commit a685672
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion lib/base/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
)
5 changes: 4 additions & 1 deletion lib/payload/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
)
6 changes: 3 additions & 3 deletions src/api/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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@',
Expand Down

0 comments on commit a685672

Please sign in to comment.