-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmeson.build
More file actions
37 lines (27 loc) · 756 Bytes
/
Copy pathmeson.build
File metadata and controls
37 lines (27 loc) · 756 Bytes
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
project('cdcc', 'c')
compiler = meson.get_compiler('c')
glib = dependency('glib-2.0')
gio = dependency('gio-2.0')
sqlite = dependency('sqlite3')
json = dependency('json-glib-1.0')
alldep = [glib, gio, sqlite, json]
c_flags = ['-Wall', '-Wunreachable-code']
ld_flags = []
executable('cdcc-cc',
sources: [ 'cc.c', 'db.c' ],
cpp_args: c_flags,
link_args: ld_flags,
dependencies: [glib, gio, sqlite],
install: true)
executable('cdcc-gen',
sources: [ 'gen.c', 'db.c' ],
cpp_args: c_flags,
link_args: ld_flags,
dependencies: alldep,
install: true)
executable('cdcc-query',
sources: [ 'query.c', 'db.c' ],
cpp_args: c_flags,
link_args: ld_flags,
dependencies: alldep,
install: true)