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