F.E.I.S/meson.build

52 lines
1.4 KiB
Meson
Raw Normal View History

2021-12-30 01:48:17 +01:00
project(
'F.E.I.S.',
'cpp',
2022-04-10 13:08:41 +02:00
meson_version : '>=0.62.0',
2021-12-30 01:48:17 +01:00
version : '1.1.0',
default_options : ['cpp_std=c++20'],
2021-12-30 01:48:17 +01:00
)
2022-04-10 13:08:41 +02:00
deps = []
sfml_system_dep = dependency('sfml-system', version : '>=2.5.1')
deps += [sfml_system_dep]
sfml_window_dep = dependency('sfml-window', version : '>=2.5.1')
deps += [sfml_window_dep]
sfml_graphics_dep = dependency('sfml-graphics', version : '>=2.5.1')
deps += [sfml_graphics_dep]
sfml_audio_dep = dependency('sfml-audio', version : '>=2.5.1')
deps += [sfml_audio_dep]
gl_dep = dependency('gl')
deps += [gl_dep]
openal_dep = dependency('openal')
deps += [openal_dep]
mpdecpp_dep = dependency('mpdec++', fallback: ['mpdecimal', 'mpdecpp_dep'])
deps += [mpdecpp_dep]
gmp_dep = dependency('gmp')
deps += [gmp_dep]
nowide_dep = dependency('nowide')
deps += [nowide_dep]
2022-05-11 00:09:02 +02:00
deps += dependency('threads')
2021-12-30 01:48:17 +01:00
2022-01-05 23:18:13 +01:00
# I chose to put the .cpp files of the libs I vendor directly in include/
# I store the files in a (lib name -> files) dict so that tests can
# select which libs they want to compile with
include_sources = {}
subdir('include') # Defines `inc` and adds stuff in `include_sources`
2021-12-30 01:48:17 +01:00
2022-04-10 13:08:41 +02:00
sources = []
subdir('src') # Adds stuff in the `sources` list
2021-12-30 01:48:17 +01:00
2022-01-05 23:18:13 +01:00
subdir('tests')
foreach lib, lib_sources : include_sources
sources += lib_sources
endforeach
2021-12-30 01:48:17 +01:00
executable(
'FEIS',
sources: sources,
dependencies: deps,
include_directories: inc,
)