@ -14,8 +14,7 @@ project(
version = meson . project_version ( ) . split ( '-' ) [ 0 ]
version_major = version . split ( '.' ) [ 0 ]
version_minor = version . split ( '.' ) [ 1 ]
assert ( version_major == '0' )
soversion = version_minor . to_int ( ) - 5
versioned_name = '@0@-@1@.@2@' . format ( meson . project_name ( ) , version_major , version_minor )
little_endian = target_machine . endian ( ) == 'little'
big_endian = target_machine . endian ( ) == 'big'
@ -175,8 +174,7 @@ wlr_inc = include_directories('include')
symbols_file = 'wlroots.syms'
symbols_flag = '-Wl,--version-script,@0@/@1@' . format ( meson . current_source_dir ( ) , symbols_file )
lib_wlr = library (
meson . project_name ( ) , wlr_files ,
soversion : soversion . to_string ( ) ,
versioned_name , wlr_files ,
dependencies : wlr_deps ,
include_directories : [ wlr_inc ] ,
install : true ,
@ -208,7 +206,9 @@ endif
pkgconfig = import ( 'pkgconfig' )
pkgconfig . generate (
lib_wlr ,
name : versioned_name ,
description : 'Wayland compositor library' ,
subdirs : versioned_name ,
url : 'https://gitlab.freedesktop.org/wlroots/wlroots' ,
variables : wlr_vars ,
)