-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmeson.build
35 lines (30 loc) · 1.39 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
project('uuidxx', ['cpp'], default_options: ['cpp_std=c++11', 'warning_level=3'])
safe_args = ['-Weffc++', '-pedantic',
'-Waggregate-return', '-Wcast-align',
'-Wcast-qual', '-Wchar-subscripts', '-Wcomment', '-Wconversion',
'-Wdisabled-optimization',
'-Wfloat-equal', '-Wformat', '-Wformat=2',
'-Wformat-nonliteral', '-Wformat-security',
'-Wformat-y2k',
'-Wimport', '-Winit-self', '-Winline',
'-Winvalid-pch',
'-Wlong-long', '-Wmissing-braces',
'-Wmissing-format-attribute',
'-Wmissing-include-dirs', '-Wmissing-noreturn',
'-Wpacked', '-Wparentheses', '-Wpointer-arith',
'-Wredundant-decls', '-Wreturn-type',
'-Wsequence-point', '-Wshadow', '-Wsign-compare', '-Wstack-protector',
'-Wstrict-aliasing', '-Wstrict-aliasing=2', '-Wswitch', '-Wswitch-default',
'-Wswitch-enum', '-Wtrigraphs', '-Wuninitialized',
'-Wunknown-pragmas', '-Wunreachable-code',
'-Wunused-function', '-Wunused-label',
'-Wunused-value', '-Wunused-variable', '-Wvariadic-macros',
'-Wvolatile-register-var', '-Wwrite-strings', '-Wfatal-errors',
'-Wno-aggregate-return']
add_global_arguments(safe_args, language: ['cpp'])
uuidxx = shared_library('uuidxx', 'src/uuidxx.cpp', install: true)
static_library('uuidxx', 'src/uuidxx.cpp', install: true)
uudxxtest = executable('uuidxxtest', 'tests/main.cpp',
include_directories: [ 'src/' ],
link_with: uuidxx, install: false)
test('Functionality test', uudxxtest)