summaryrefslogtreecommitdiff
path: root/meson.build
blob: 21f603dc60e07b922ee7ab6fa53b80175fd86d5b (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
39
40
41
42
43
44
45
# SPDX-FileCopyrightText: 2024 Lizzy Fleckenstein <lizzy@vlhl.dev>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

project('silly_game', 'c', default_options: ['warning_level=2'])

deps = [
	meson.get_compiler('c').find_library('m'),
	dependency('endian'),
	dependency('perlin'),
]

src = [
	'src/str.c',
	'src/net.c',
	'src/ser.c',
	'src/ticker.c',
	'src/sig.c',
	'src/chunk.c',
]

include = 'include/'

executable('sillyserver',
	sources: [
		src,
		'src/server.c',
	],
	include_directories: include,
	dependencies: [
		deps,
		dependency('libpng'),
	],
	install: true,
)

executable('sillyclient',
	sources: [
		src,
		'src/client.c',
	],
	include_directories: include,
	dependencies: deps,
	install: true,
)