Skip to content

Commit 1265822

Browse files
author
Raghuveer Devulapalli
committed
Enable installing x86 simd sort as a library
1 parent ad614db commit 1265822

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

lib/meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ if cancompilefp16
3939
cpp_args : ['-march=sapphirerapids', flags_hide_symbols],
4040
)
4141
endif
42+
43+
install_headers('x86simdsort.h')

meson.build

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project('x86-simd-sort', 'cpp',
2-
version : '2.0.0',
2+
version : '4.0.0',
33
license : 'BSD 3-clause',
44
default_options : ['cpp_std=c++17'])
55
cpp = meson.get_compiler('cpp')
@@ -25,8 +25,16 @@ libsimdsort = shared_library('x86simdsort',
2525
include_directories : [utils, lib],
2626
link_with : [libtargets],
2727
cpp_args : [flags_hide_symbols],
28+
install : true,
2829
)
2930

31+
pkg_mod = import('pkgconfig')
32+
pkg_mod.generate(libraries : libsimdsort,
33+
version : '4.0',
34+
name : 'libx86simdsort',
35+
filebase : 'x86simdsort',
36+
description : 'High performance SIMD based sorting routines.')
37+
3038
# Build test suite if option build_tests set to true
3139
if get_option('build_tests')
3240
gtest_dep = dependency('gtest_main', required : true, static: false)
@@ -37,6 +45,7 @@ if get_option('build_tests')
3745
link_whole : [libtests],
3846
link_with : libsimdsort,
3947
)
48+
test('x86 simd sort tests', testexe)
4049
endif
4150

4251
# Build benchmarking suite if option build_benchmarks is set to true

0 commit comments

Comments
 (0)