summaryrefslogtreecommitdiff
path: root/shared/c-stdaux/src/meson.build
blob: f6db824d247045804970f72518a9e942095677c6 (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
#
# target: libcstdaux.so
# (No .so is built so far, since we are header-only. This might change in the
#  future, if we add more complex helpers.)
#

libcstdaux_dep = declare_dependency(
        include_directories: include_directories('.'),
        version: meson.project_version(),
)

if not meson.is_subproject()
        install_headers('c-stdaux.h')

        mod_pkgconfig.generate(
                version: meson.project_version(),
                name: 'libcstdaux',
                filebase: 'libcstdaux',
                description: project_description,
        )
endif

#
# target: test-*
#

test_api = executable('test-api', ['test-api.c'], dependencies: libcstdaux_dep)
test('API Symbol Visibility', test_api)

test_basic = executable('test-basic', ['test-basic.c'], dependencies: libcstdaux_dep)
test('Basic API Behavior', test_basic)