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'],
|
2020-02-18 10:09:07 +01:00
|
|
|
version : '0.1.0-alpha'
|
2019-10-22 01:53:08 +02:00
|
|
|
)
|
|
|
|
|
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-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',
|
2020-02-17 00:19:51 +01:00
|
|
|
'src/Data/Buttons.hpp',
|
|
|
|
'src/Data/Buttons.cpp',
|
2020-02-18 01:44:21 +01:00
|
|
|
'src/Data/Chart.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',
|
2020-02-11 22:12:17 +01:00
|
|
|
'src/Data/Preferences.hpp',
|
2019-11-03 00:55:54 +01:00
|
|
|
'src/Data/Score.hpp',
|
2020-02-18 01:44:21 +01:00
|
|
|
'src/Data/Song.hpp',
|
|
|
|
'src/Data/Song.cpp',
|
2020-02-18 14:05:52 +01:00
|
|
|
'src/Drawables/BlackFrame.hpp',
|
|
|
|
'src/Drawables/BlackFrame.cpp',
|
2020-02-18 01:44:21 +01:00
|
|
|
'src/Resources/TextureCache.cpp',
|
|
|
|
'src/Resources/TextureCache.hpp',
|
|
|
|
# 'src/Resources/CoverAtlas.hpp',
|
|
|
|
# 'src/Resources/CoverAtlas.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',
|
2020-02-18 01:44:21 +01:00
|
|
|
'src/Screens/MusicSelect/DensityGraph.hpp',
|
|
|
|
'src/Screens/MusicSelect/DensityGraph.cpp',
|
2020-02-25 23:47:29 +01:00
|
|
|
'src/Screens/MusicSelect/MusicPreview.hpp',
|
|
|
|
'src/Screens/MusicSelect/MusicPreview.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-18 01:44:21 +01:00
|
|
|
'src/Screens/MusicSelect/Ribbon.hpp',
|
|
|
|
'src/Screens/MusicSelect/Ribbon.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/Result.hpp',
|
2020-01-27 01:52:49 +01:00
|
|
|
'src/Toolkit/AffineTransform.hpp',
|
2020-02-17 00:19:51 +01:00
|
|
|
'src/Toolkit/Cache.hpp',
|
2020-02-18 01:44:21 +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-02-16 16:20:10 +01:00
|
|
|
'src/Toolkit/NormalizedOrigin.hpp',
|
2020-01-26 17:55:20 +01:00
|
|
|
'src/Toolkit/QuickRNG.hpp',
|
|
|
|
'src/Toolkit/QuickRNG.cpp',
|
2020-02-18 01:44:21 +01:00
|
|
|
'src/Main.cpp',
|
2019-10-23 23:39:10 +02:00
|
|
|
]
|
|
|
|
|
2020-02-19 00:51:26 +01:00
|
|
|
inc = include_directories('include', 'include/imgui', 'include/imgui-sfml')
|
|
|
|
|
|
|
|
subdir('test')
|
|
|
|
|
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'
|
|
|
|
]
|
2020-02-19 00:51:26 +01:00
|
|
|
)
|