Skip to content

Commit f0bc791

Browse files
committed
build: initial meson support
1 parent 84abba9 commit f0bc791

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

meson.build

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# SPDX-FileCopyrightText: (C) 2025 Zephyr Lykos <self@mochaa.ws>
2+
# SPDX-License-Identifier: 0BSD
3+
4+
project(
5+
'portable-snippets',
6+
'c',
7+
version: '0',
8+
license: 'CC0-1.0',
9+
default_options: [
10+
'c_std=gnu11,c18,c11,gnu99,c99,gnu89,c89',
11+
'warning_level=3',
12+
],
13+
)
14+
15+
inc = include_directories('.')
16+
17+
psnip_lib = library(
18+
'psnip',
19+
'cpu/cpu.c',
20+
'random/random.c',
21+
implicit_include_directories: false,
22+
include_directories: inc,
23+
)
24+
25+
psnip_dep = declare_dependency(
26+
include_directories: inc,
27+
link_with: psnip_lib,
28+
)
29+
meson.override_dependency('psnip', psnip_dep)

0 commit comments

Comments
 (0)