-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
65 lines (39 loc) · 1.11 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#
# See LICENSE for more information about licensing
# Copyright 2025
#
# Author: Diego Arturo Avila Torres <[email protected]>
# Luis G. Leon Vega <[email protected]>
#
#
project('testbenches',['c'],version: '0.1.0',
default_options: [])
add_global_arguments('-Wno-ignored-qualifiers',
language:'c')
c = meson.get_compiler('c')
src = []
# cflags
c_args = []
project_inc = [include_directories('.', 'include')]
# shared_libs
shared_libs = []
# dependencies
project_deps = []
subdir('include')
subdir('src')
subdir('examples')
# executables
exec = []
# src += [files('main.c')]
# main = executable('main',['main.c'], include_directories: [project_inc], link_with: [shared_libs],link_language: 'c')
developer_mode = get_option('developer-mode')
profiling_mode = get_option('profiling-mode')
if developer_mode
c_args += ['--optimize=g']
pre_commit = find_program('pre-commit', required: true, native: true)
run_command(pre_commit, 'install', check: false)
run_command(pre_commit, 'install', '--hook-type', 'commit-msg', check: false)
endif
if profiling_mode
c_args += ['-DPROFILE_MODE']
endif