forked from plibither8/2048.cpp
-
Notifications
You must be signed in to change notification settings - Fork 6
/
meson.build
22 lines (16 loc) · 923 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
project('2048', 'cpp',
default_options : ['cpp_std=c++14'])
cxx = meson.get_compiler('cpp')
if cxx.get_id() in ['gcc', 'clang']
add_global_arguments('-Wall', language : 'cpp')
elif cxx.get_id() == 'intel'
add_global_arguments('-w2', language : 'cpp')
endif
main_target_name = '2048'
sources = ['src/2048.cpp', 'src/gameboard.cpp', 'src/gameboard-graphics.cpp', 'src/game.cpp', 'src/game-input.cpp', 'src/game-graphics.cpp', 'src/game-pregamemenu.cpp', 'src/global.cpp', 'src/loadresource.cpp', 'src/menu.cpp', 'src/menu-graphics.cpp', 'src/saveresource.cpp', 'src/scores.cpp', 'src/scores-graphics.cpp', 'src/statistics.cpp', 'src/statistics-graphics.cpp', 'src/tile.cpp', 'src/tile-graphics.cpp']
hdrs = include_directories('src/headers')
executable(main_target_name, sources,
include_directories : hdrs,
install : true)
install_data(['data/scores.txt', 'data/statistics.txt'],
install_dir : 'data')