2021-12-30 01:48:17 +01:00
|
|
|
project(
|
2022-11-15 22:04:29 +01:00
|
|
|
'F.E.I.S',
|
2022-12-26 23:05:21 +01:00
|
|
|
'cpp', 'c',
|
2022-04-10 13:08:41 +02:00
|
|
|
meson_version : '>=0.62.0',
|
2022-11-15 22:04:29 +01:00
|
|
|
version : '2.0.0-alpha',
|
2022-03-16 02:10:18 +01:00
|
|
|
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')
|
2022-11-18 01:48:53 +01:00
|
|
|
tomlplusplus_dep = dependency('tomlplusplus')
|
|
|
|
deps += [tomlplusplus_dep]
|
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 = []
|
2022-11-15 22:04:29 +01:00
|
|
|
subdir('src') # Adds stuff in the `sources` list and defines configuration_inc
|
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,
|
2022-11-15 22:04:29 +01:00
|
|
|
include_directories: [
|
|
|
|
inc,
|
|
|
|
configuration_inc
|
|
|
|
]
|
2021-12-30 01:48:17 +01:00
|
|
|
)
|