-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
46 lines (39 loc) · 1.2 KB
/
meson.build
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
46
project(
'Kay',
'c','cpp',
version : '0.1.0',
meson_version: '>= 0.62.0',
default_options: [
'warning_level=3',
'buildtype=release',
'cpp_std=c++20'])
cpp = meson.get_compiler('cpp')
pkg = import('pkgconfig')
egl_dep = dependency('egl')
gl_dep = dependency('gl')
glesv2_dep = dependency('glesv2')
skia_dep = dependency('Skia')
yoga_dep = dependency('yoga', modules: ['yoga::yogacore'])
headers = run_command('find', './src/AK', '-type', 'f', '-name', '*[.hpp,.h]', check : false).stdout().strip().split('\n')
sources = run_command('find', './src/AK', '-type', 'f', '-name', '*[.cpp,.c]', check : false).stdout().strip().split('\n')
includes = ['./src']
kay = library(
'Kay',
sources : sources,
include_directories : includes,
dependencies : [
skia_dep,
egl_dep,
gl_dep,
glesv2_dep,
yoga_dep
],
install : false)
kay_dep = declare_dependency(
dependencies: [skia_dep, yoga_dep],
include_directories : includes,
link_with : kay)
# -------------- EXAMPLES --------------
subdir('src/examples/kay-louvre')
subdir('src/examples/kay-srm')
subdir('src/examples/kay-wayland-client')