summaryrefslogtreecommitdiff
path: root/shared/meson.build
blob: a937e92a0987677639dae1eb088aeaa483863e2a (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
# SPDX-License-Identifier: GPL-2.0
srcs_libshared = [
	'rcon-protocol.c',
	'mc-protocol.c',
	'config-parser.c',
	'systemd.c',
	'utils.c',
]

dep_libsystemd = dependency('libsystemd')

deps_libshared = [
	dep_libsystemd,
	dep_config_h,
]

lib_libshared = static_library(
	'shared',
	srcs_libshared,
	pic: true,
	install: false,
	dependencies: deps_libshared,
)

# Note: include_directories is *not* set here so that it is necessary
#	to include "shared/foo.h" instead of "foo.h", which makes it
#	clearer where the header files reside.

dep_libshared = declare_dependency(
	link_with: lib_libshared,
	dependencies: deps_libshared,
)