]> git.ipfire.org Git - thirdparty/util-linux.git/blame - libsmartcols/meson.build
meson: update sources and dependencies
[thirdparty/util-linux.git] / libsmartcols / meson.build
CommitLineData
d4c880d5
ZJS
1dir_libsmartcols = include_directories('.', 'src')
2
3defs = configuration_data()
4defs.set('LIBSMARTCOLS_VERSION', libsmartcols_version)
5
6libsmartcols_h = configure_file(
7 input : 'src/libsmartcols.h.in',
8 output : 'libsmartcols.h',
9 configuration : defs)
10
11lib_smartcols_sources = '''
12 src/smartcolsP.h
13 src/iter.c
14 src/symbols.c
15 src/cell.c
16 src/column.c
17 src/line.c
18 src/table.c
19 src/print.c
d4c880d5
ZJS
20 src/print-api.c
21 src/version.c
22 src/buffer.c
23 src/calculate.c
24 src/grouping.c
25 src/walk.c
26 src/init.c
27'''.split()
28
29libsmartcols_sym = 'src/libsmartcols.sym'
30libsmartcols_sym_path = '@0@/@1@'.format(meson.current_source_dir(), libsmartcols_sym)
31
32lib_smartcols = both_libraries(
33 'smartcols',
34 list_h,
35 lib_smartcols_sources,
36 include_directories : [dir_include, dir_libsmartcols],
37 link_depends : libsmartcols_sym,
38 version : libsmartcols_version,
39 link_args : ['-Wl,--version-script=@0@'.format(libsmartcols_sym_path)],
40 link_with : lib_common,
41 dependencies : build_libsmartcols ? [] : disabler(),
42 install : build_libsmartcols)
43
69939195
ZJS
44lib_smartcols_static = lib_smartcols.get_static_lib()
45
d4c880d5
ZJS
46pkgconfig.generate(lib_smartcols,
47 description : 'table or tree library',
48 subdirs : 'libsmartcols',
49 version : pc_version)