This repository has been archived by the owner on Mar 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
84 lines (72 loc) · 1.71 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
project('gba-emu', ['c', 'cpp'],
version: '0.0.1',
default_options: [
'buildtype=debug',
],
)
dependencies = [
]
source = files([
'src/main.cpp',
# cpu
'src/arm7tdmi/arm/arm.cpp',
#'src/arm7tdmi/arm/data_processing.cpp',
# tests
'src/arm7tdmi/tests/test_barrel_shifter.cpp',
'src/arm7tdmi/tests/test_arm_data_processing.cpp',
'src/arm7tdmi/tests/test_arm_multiply.cpp',
'src/arm7tdmi/tests/test_common.cpp',
'src/arm7tdmi/tests/test_register_banking.cpp',
'src/arm7tdmi/tests/test_thumb_load_store.cpp',
'src/arm7tdmi/tests/test_thumb_alu.cpp',
'src/arm7tdmi/tests/test_thumb_push_pop.cpp',
'src/arm7tdmi/tests/test_thumb_decode.cpp',
'src/mem/tests/test_constexpr_mem.cpp',
'src/mem/tests/test_io_unused_bits.cpp',
# cart
'src/cart/tests/test_header_checksum.cpp',
])
includes = include_directories([
])
cflags = [
# optimise
# '-Ofast',
# '-flto',
# '-DNDEBUG',
# warns
# '-Wno-unused',
'-Wall',
'-Wextra',
'-Wswitch-enum',
'-Wduplicated-branches',
'-Wduplicated-cond',
'-Wshadow',
'-Wfatal-errors',
'-Wdouble-promotion',
'-Wframe-larger-than=100KB',
# '-Wno-format',
]
cppflags = [
'-std=gnu++20',
# gcc-11
# '-std=gnu++2b',
'-Wuseless-cast',
'-fdevirtualize-at-ltrans',
'-Wsuggest-final-types',
]
linkflags = [
# this is needed for <execution> algorithms
# '-ltbb',
# '-Wl,-subsystem,windows',
# '-s',
]
executable(
'gba-emu',
[ source ],
dependencies : [ dependencies ] ,
install: false,
include_directories: [ includes ],
c_args: [ cflags ],
cpp_args: [ cppflags, cflags ],
link_args: [ linkflags ]
)