v1.1.1: Headers and pkg-config file are now installed

This commit is contained in:
Scoopta 2020-03-05 11:35:55 -08:00
parent 5217c5a398
commit c64526023e

View File

@ -1,6 +1,8 @@
project('wofi', 'c', version : 'v1.1', default_options : ['buildtype=release', 'warning_level=2']) project('wofi', 'c', version : 'v1.1.1', default_options : ['buildtype=release', 'warning_level=2'])
cc = meson.get_compiler('c') cc = meson.get_compiler('c')
pkgcfg = import('pkgconfig')
inc = include_directories('inc') inc = include_directories('inc')
gtk = dependency('gtk+-3.0') gtk = dependency('gtk+-3.0')
threads = dependency('threads') threads = dependency('threads')
@ -53,4 +55,17 @@ install_man('man/wofi.1',
'man/wofi-map.3', 'man/wofi-map.3',
'man/wofi-utils.3') 'man/wofi-utils.3')
subdir = 'wofi-1'
install_headers('inc/config.h',
'inc/map.h',
'inc/utils.h',
'inc/wofi_api.h',
subdir : subdir)
pkgcfg.generate(name : meson.project_name(),
description : 'Wofi API for developing modes',
requires : wayland,
subdirs : subdir)
executable(meson.project_name(), sources, include_directories : inc, dependencies : deps, install : true) executable(meson.project_name(), sources, include_directories : inc, dependencies : deps, install : true)