-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
57 lines (52 loc) · 1.51 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
project('FTXUI Tetris', 'cpp',
version : '2.0.0',
meson_version: '>= 1.2.0',
default_options : [
'warning_level=3',
'cpp_std=c++17'
]
)
add_global_arguments('-Wno-unused', language : 'cpp')
install_data('config.yaml')
incdir = include_directories('include')
ftxui_screen_dep = dependency('ftxui-5.0.0-screen')
ftxui_dom_dep = dependency('ftxui-5.0.0-dom')
ftxui_component_dep = dependency('ftxui-5.0.0-component')
yaml_cpp_dep = dependency('yaml-cpp')
executable('tetris',
sources : [
'src/main.cpp',
'src/t_config/t_config.cpp',
'src/t_config/t_controls.cpp',
'src/t_config/t_theme.cpp',
'src/t_config/t_yaml_parser.cpp',
'src/t_engine/t_renderer.cpp',
'src/t_game/t_board.cpp',
'src/t_game/t_game.cpp',
'src/t_game/t_hold.cpp',
'src/t_game/t_next.cpp',
'src/t_game/t_score.cpp',
'src/t_game/t_tetromino_factory.cpp',
'src/t_game/t_tetromino.cpp',
'src/t_menu/t_menus/t_change_key.cpp',
'src/t_menu/t_menus/t_controls.cpp',
'src/t_menu/t_menus/t_game_over.cpp',
'src/t_menu/t_menus/t_main_menu.cpp',
'src/t_menu/t_menus/t_options.cpp',
'src/t_menu/t_menu_helper.cpp',
'src/t_menu/t_menu.cpp',
'src/t_renderer/t_canvas.cpp',
'src/t_renderer/t_current_theme.cpp',
'src/t_renderer/t_data_transformer.cpp',
'src/t_renderer/t_header.cpp',
'src/t_renderer/t_key_value.cpp',
],
include_directories: incdir,
dependencies: [
ftxui_screen_dep,
ftxui_dom_dep,
ftxui_component_dep,
yaml_cpp_dep
],
install: true
)