]>
Commit | Line | Data |
---|---|---|
d4c880d5 ZJS |
1 | dir_libsmartcols = include_directories('.', 'src') |
2 | ||
3 | defs = configuration_data() | |
4 | defs.set('LIBSMARTCOLS_VERSION', libsmartcols_version) | |
5 | ||
6 | libsmartcols_h = configure_file( | |
7 | input : 'src/libsmartcols.h.in', | |
8 | output : 'libsmartcols.h', | |
9 | configuration : defs) | |
10 | ||
11 | lib_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 | ||
29 | libsmartcols_sym = 'src/libsmartcols.sym' | |
30 | libsmartcols_sym_path = '@0@/@1@'.format(meson.current_source_dir(), libsmartcols_sym) | |
31 | ||
32 | lib_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 |
44 | lib_smartcols_static = lib_smartcols.get_static_lib() |
45 | ||
d4c880d5 ZJS |
46 | pkgconfig.generate(lib_smartcols, |
47 | description : 'table or tree library', | |
48 | subdirs : 'libsmartcols', | |
49 | version : pc_version) |