1
0
mirror of synced 2024-11-14 18:47:41 +01:00
jujube/meson.build

80 lines
2.3 KiB
Meson
Raw Normal View History

2019-10-22 01:53:08 +02:00
project(
'jujube',
'cpp',
2020-02-10 20:54:28 +01:00
default_options : ['cpp_std=c++17'],
2019-10-22 01:53:08 +02:00
version : '0.1.0-alpha',
)
2020-02-10 20:54:28 +01:00
cc = meson.get_compiler('cpp')
2019-10-22 01:53:08 +02:00
sfml = []
2020-02-10 20:54:28 +01:00
foreach module : ['system', 'window', 'graphics', 'audio']
2019-10-22 01:53:08 +02:00
sfml += [dependency('sfml-'+module, version : '>=2.5.1')]
endforeach
2020-02-08 15:25:49 +01:00
thread_dep = dependency('threads')
2020-02-10 20:54:28 +01:00
m_dep = cc.find_library('m', required : false)
gl_dep = dependency('gl')
2020-02-08 15:25:49 +01:00
2020-02-12 19:56:15 +01:00
add_project_link_arguments(['-lstdc++'], language : 'cpp')
2019-10-23 23:39:10 +02:00
sources = [
2020-01-27 20:06:10 +01:00
'include/imgui/imgui.cpp',
'include/imgui/imgui_draw.cpp',
'include/imgui/imgui_widgets.cpp',
'include/imgui-sfml/imgui-SFML.cpp',
2019-10-23 23:39:10 +02:00
'src/Main.cpp',
2019-11-02 01:24:45 +01:00
'src/Data/Chart.hpp',
2019-11-03 00:55:54 +01:00
'src/Data/KeyMapping.hpp',
'src/Data/KeyMapping.cpp',
2019-10-29 18:42:21 +01:00
'src/Data/Note.hpp',
'src/Data/Note.cpp',
2020-02-11 22:12:17 +01:00
'src/Data/Preferences.hpp',
2019-11-03 00:55:54 +01:00
'src/Data/Score.hpp',
2019-10-29 18:42:21 +01:00
'src/Data/SongList.hpp',
'src/Data/SongList.cpp',
2019-11-03 00:55:54 +01:00
# 'src/Screens/Gameplay.hpp',
2020-01-26 17:55:20 +01:00
'src/Screens/MusicSelect/ButtonHighlight.hpp',
'src/Screens/MusicSelect/ButtonHighlight.cpp',
2019-11-02 01:24:45 +01:00
'src/Screens/MusicSelect/MusicSelect.hpp',
'src/Screens/MusicSelect/MusicSelect.cpp',
2019-11-03 00:55:54 +01:00
'src/Screens/MusicSelect/Panel.hpp',
'src/Screens/MusicSelect/Panel.cpp',
2020-02-15 16:52:45 +01:00
'src/Screens/MusicSelect/SharedResources.hpp',
'src/Screens/MusicSelect/SharedResources.cpp',
'src/Screens/MusicSelect/SongInfo.hpp',
'src/Screens/MusicSelect/SongInfo.cpp',
2019-11-03 00:55:54 +01:00
'src/Screens/MusicSelect/Ribbon.hpp',
'src/Screens/MusicSelect/Ribbon.cpp',
# 'src/Screens/Result.hpp',
2020-02-05 22:05:10 +01:00
'src/Resources/Autoloader.hpp',
'src/Resources/Autoloader.cpp',
# 'src/Resources/CoverAtlas.hpp',
# 'src/Resources/CoverAtlas.cpp',
2020-01-27 01:52:49 +01:00
'src/Toolkit/AffineTransform.hpp',
2020-01-27 20:06:10 +01:00
'src/Toolkit/Debuggable.hpp',
2020-01-27 01:52:49 +01:00
'src/Toolkit/EasingFunctions.hpp',
'src/Toolkit/EasingFunctions.cpp',
2020-02-15 20:50:47 +01:00
'src/Toolkit/HSL.hpp',
'src/Toolkit/HSL.cpp',
2020-01-26 17:55:20 +01:00
'src/Toolkit/QuickRNG.hpp',
'src/Toolkit/QuickRNG.cpp',
2019-10-23 23:39:10 +02:00
]
2019-10-22 01:53:08 +02:00
executable(
'jujube',
2019-11-02 01:24:45 +01:00
sources,
2020-02-10 20:54:28 +01:00
dependencies: [sfml, thread_dep, m_dep, gl_dep],
2020-01-27 20:06:10 +01:00
include_directories : include_directories('include', 'include/imgui', 'include/imgui-sfml'),
2019-11-03 02:14:47 +01:00
cpp_args : [
'-Wall',
'-Wextra',
'-Wshadow',
'-Wnon-virtual-dtor',
'-pedantic'
]
2019-11-03 03:01:29 +01:00
)
install_subdir('assets', install_dir : 'assets', strip_directory : true)
install_subdir('songs', install_dir: 'songs', strip_directory : true)