-
Notifications
You must be signed in to change notification settings - Fork 16
/
options
88 lines (81 loc) · 3.03 KB
/
options
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/sh
############################################################
# PROJECT : MALT (MALoc Tracker)
# VERSION : 1.2.4
# DATE : 10/2024
# LICENSE : CeCILL-C
# FILE : options
#-----------------------------------------------------------
# AUTHOR : Sébastien Valat - 2018 - 2024
# AUTHOR : Sébastien Valat (INRIA) - 2024
############################################################
#############################################################
# PROJECT : MALT (MALoc Tracker)
# VERSION : 1.2.4
# DATE : 10/2024
# LICENSE : CeCILL-C
# FILE : options
#-----------------------------------------------------------
# AUTHOR : Sébastien Valat - 2018 - 2019
# AUTHOR : Sébastien Valat (INRIA) - 2024
#############################################################
############################################################
#set project name
cfg_set_projet "MALT"
############################################################
#profiler
cfg_add_enable_option --name='profiler' \
--on='-DENABLE_PROFILER=${ON}' \
--doc='Disable the profiler and only install the GUI.' \
--invert-help
#test
cfg_add_enable_option --name='tests' \
--on='-DENABLE_TESTS=${ON}' \
--doc='Disable unit tests' \
--invert-help
#gcc test coverage
cfg_add_enable_option --name='gcc-coverage' \
--on='-DENABLE_GCC_COVERAGE=${ON}' \
--doc='Enable GCC option to generate test coverage of the lib' \
#junit xml out
cfg_add_enable_option --name='junit-output' \
--on='-DENABLE_JUNIT_OUTPUT=${ON}' \
--doc='Save test output in JUnit format (only in self-test mode)'
#valgrind
cfg_add_enable_option --name='valgrind' \
--on='-DENABLE_VALGRIND=${ON}' \
--doc='Enable running unit tests into valgrind to generate reports'
#jenkins full features
cfg_add_enable_option --name='jenkins' \
--on-enable-inherit='--enable-valgrind --enable-junit-output --enable-debug "CXXFLAGS=-Wall -fprofile-arcs -ftest-coverage"' \
--doc='Enable all checking modes (unit, valgrind, coverage...)' \
--only='enable'
############################################################
#libunwind
cfg_add_with_option --name='libunwind' \
--doc='Define prefix to find libunwind [/usr]' \
--var='LIBUNWIND_PREFIX'
#libelf
cfg_add_with_option --name='libelf' \
--doc='Define prefix to find libelf [/usr]' \
--var='LIBELF_PREFIX'
############################################################
#If we want to document extra options
#CFG_CUSTOM_HELP="My custom options:"
############################################################
# here we can parse our own options if we want
# Vars available are :
# - $arg : full argument (eg. --with-gcc=gcc)
# - $val : value after first '=', egg 'gcc'
# - $ON $OFF, $ENABLE, $DISABLE, $WIDTH, $WITHOUT
#cfg_parse_custom_opts()
#{
# return 1
#}
############################################################
#pre check to ease error messages
#All cmake vars are loaded in memory as OPT_* (OPT_CMAKE_C_FLAGS)
#cfg_custom_pre_check()
#{
# return 1
#}