-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
62 lines (54 loc) · 1.78 KB
/
meson.build
File metadata and controls
62 lines (54 loc) · 1.78 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
project('sasayaku', ['c', 'cpp'],
version: '0.1.0',
license: 'MIT',
default_options: [
'cpp_std=c++17',
'c_std=c11',
'warning_level=2',
'buildtype=release',
]
)
# Dependencies
gtk_dep = dependency('gtk4', version: '>= 4.0')
libadwaita_dep = dependency('libadwaita-1', version: '>= 1.0')
gio_dep = dependency('gio-2.0', version: '>= 2.66')
pipewire_dep = dependency('libpipewire-0.3', version: '>= 0.3')
spa_dep = dependency('libspa-0.2', version: '>= 0.2')
threads_dep = dependency('threads')
curl_dep = dependency('libcurl', version: '>= 7.68')
# JSON library
json_dep = dependency('nlohmann_json', version: '>= 3.9', required: false)
if not json_dep.found()
# Fall back to subproject or system include
json_dep = declare_dependency(
include_directories: include_directories('third_party/json/include')
)
endif
# whisper.cpp as subproject (build separately)
whisper_cpp_dir = meson.current_source_dir() / 'whisper.cpp'
whisper_include = include_directories('whisper.cpp/include', 'whisper.cpp/ggml/include')
# We'll link against pre-built whisper.cpp libraries
whisper_lib = meson.get_compiler('cpp').find_library('whisper',
dirs: [whisper_cpp_dir / 'build'],
required: false
)
if not whisper_lib.found()
# whisper.cpp not built yet, we'll handle this in a custom target
message('whisper.cpp not found in whisper.cpp/build - will need to build it first')
whisper_lib = declare_dependency()
endif
# Subdirectories
subdir('src')
subdir('data')
# Summary
summary({
'prefix': get_option('prefix'),
'bindir': get_option('bindir'),
'datadir': get_option('datadir'),
}, section: 'Directories')
summary({
'GTK4': gtk_dep.found(),
'libadwaita': libadwaita_dep.found(),
'PipeWire': pipewire_dep.found(),
'libcurl': curl_dep.found(),
}, section: 'Dependencies')