summaryrefslogtreecommitdiff
path: root/utf/meson.build
blob: 64db6ff2ab503893d71469a119ea2759b1be851e (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
35
36
37
38
deps = [
  base_dep,
]

inc = include_directories('inc')
lib = static_library(
  'utf',
  'src/utf8.cc',
  'src/utf16.cc',
  'src/utf32.cc',
  dependencies: deps,
  include_directories: inc,
  install: false,
)

utf_dep = declare_dependency(
  dependencies: deps,
  include_directories: inc,
  link_with: lib,
)

test('utf8',
     executable(
       'test_utf8',
       sources: ['tst/test_utf8.cc'],
       dependencies: [utf_dep, gtest_dep]))

test('utf16',
     executable(
       'test_utf16',
       sources: ['tst/test_utf16.cc'],
       dependencies: [utf_dep, gtest_dep]))

test('utf32',
     executable(
       'test_utf32',
       sources: ['tst/test_utf32.cc'],
       dependencies: [utf_dep, gtest_dep]))