summaryrefslogtreecommitdiff
path: root/src/meson.build
blob: 768427548c2533ee3501c5a08872aa47e7a53561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
subdir('osc')

# The SONAME carries the major version. An ABI break bumps it, so an old
# binary keeps the old library.
term_soversion = meson.project_version().split('.')[0]

# The x86-64 SIMD kernels pick their level at run time (see simd.h), so the
# library needs no ISA flags. -march in c_args sets the lowest level.
term_lib = both_libraries('term',
  'core.c',
  'escape.c',
  'fastcsi.c',
  'gstore.c',
  'hist.c',
  'hist_view.c',
  'input.c',
  'isa.c',
  'palette.c',
  'scan.c',
  'screen.c',
  'selection.c',
  'snapshot.c',
  'term.c',
  'text.c',
  'text_run.c',
  term_osc_src,
  include_directories: term_private_inc,
  dependencies: [m_dep, thread_dep],
  gnu_symbol_visibility: 'hidden',
  version: meson.project_version(),
  soversion: term_soversion,
  install: true
)