forked from lamcw/crackme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
55 lines (51 loc) · 1.22 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
#
# Copyright (c) 2019 Jasper Lowell
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
project(
'crackme',
['c'],
default_options : [
# Base options.
'debug=false',
'optimization=0',
'warning_level=3',
'werror=true',
# Compiler options.
'c_args=-fno-stack-protector'
],
license : 'GPL3',
meson_version : '>=0.50.1',
version : '0.0.2'
)
libcurl = dependency('libcurl')
src_files = []
subdir('src')
subdir('scripts')
clang_tidy = find_program(
'clang-tidy',
required : false,
native : true,
disabler : true
)
if clang_tidy.found()
run_target(
'clang-tidy',
command : [
clang_tidy,
'-checks=*',
'-p', meson.build_root()
] + src_files,
)
endif