Commit e8537e17 authored by guinux's avatar guinux

create pkgconfig file

parent 24eb37aa
project('pamac', 'c', 'vala',
default_options : [
'prefix=/usr',
'sysconfdir=/etc',])
'sysconfdir=/etc',],
version : '8.0')
subdir('resources')
subdir('src')
......
......@@ -39,10 +39,23 @@ libpamac = library('pamac',
dependencies: [alpm_deps, math, json, appstream, libsoup, libcurl],
vala_args: [common_vala_args, alpm_vala_args],
c_args: [common_c_args, alpm_c_args],
vala_gir: 'Pamac-1.0.gir',
vala_gir: 'Pamac-8.0.gir',
install: true,
install_dir: [true, true, true, true])
# create pkg-config file
pkg = import('pkgconfig')
pkg.generate(libpamac,
description: 'Pamac Library')
# create typelib files
g_ir_compiler = find_program('g-ir-compiler')
custom_target('pamac typelib', command: [g_ir_compiler, '--shared-library', 'libpamac', '--output', '@OUTPUT@', join_paths(meson.current_build_dir(), 'Pamac-8.0.gir')],
output: 'Pamac-8.0.typelib',
depends: libpamac,
install: true,
install_dir: join_paths(get_option('libdir'), 'girepository-1.0'))
libpamac_dep = declare_dependency(link_with: libpamac)
executable('pamac-system-daemon',
......@@ -83,14 +96,6 @@ libpamac_gtk = library('pamac-gtk',
install: true,
install_dir: [true, true, true])
# create typelib files
g_ir_compiler = find_program('g-ir-compiler')
custom_target('pamac typelib', command: [g_ir_compiler, '--shared-library', 'libpamac', '--output', '@OUTPUT@', join_paths(meson.current_build_dir(), 'Pamac-1.0.gir')],
output: 'Pamac-1.0.typelib',
depends: libpamac,
install: true,
install_dir: join_paths(get_option('libdir'), 'girepository-1.0'))
libpamac_gtk_dep = declare_dependency(link_with: libpamac_gtk)
executable('pamac-manager',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment