2019-10-22 01:53:08 +02:00
|
|
|
project(
|
|
|
|
'jujube',
|
2020-03-05 18:14:19 +01:00
|
|
|
['cpp', 'c'],
|
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
|
|
|
)
|
|
|
|
|
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-03-05 18:14:19 +01:00
|
|
|
'include/whereami/whereami.c',
|
|
|
|
'include/whereami/whereami++.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',
|
2020-05-02 18:04:52 +02:00
|
|
|
'src/Data/GradedNote.cpp',
|
|
|
|
'src/Data/GradedNote.hpp',
|
2019-10-29 18:42:21 +01:00
|
|
|
'src/Data/Note.hpp',
|
2020-02-11 22:12:17 +01:00
|
|
|
'src/Data/Preferences.hpp',
|
2020-04-26 01:26:17 +02:00
|
|
|
'src/Data/Preferences.cpp',
|
2020-05-03 19:04:11 +02:00
|
|
|
'src/Data/Score.hpp',
|
|
|
|
'src/Data/Score.cpp',
|
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-03-07 22:44:09 +01:00
|
|
|
'src/Drawables/ButtonHighlight.hpp',
|
|
|
|
'src/Drawables/ButtonHighlight.cpp',
|
2020-05-01 00:18:30 +02:00
|
|
|
'src/Drawables/DensityGraph.hpp',
|
|
|
|
'src/Drawables/DensityGraph.cpp',
|
2020-05-15 14:35:52 +02:00
|
|
|
'src/Drawables/GradedDensityGraph.hpp',
|
|
|
|
'src/Drawables/GradedDensityGraph.cpp',
|
2020-04-30 11:46:23 +02:00
|
|
|
'src/Input/Buttons.hpp',
|
|
|
|
'src/Input/Buttons.cpp',
|
|
|
|
'src/Input/KeyMapping.hpp',
|
|
|
|
'src/Input/KeyMapping.cpp',
|
2020-05-01 00:18:30 +02:00
|
|
|
'src/Input/Events.hpp',
|
|
|
|
'src/Input/Events.cpp',
|
2020-02-18 01:44:21 +01:00
|
|
|
'src/Resources/TextureCache.cpp',
|
|
|
|
'src/Resources/TextureCache.hpp',
|
2020-05-08 19:27:31 +02:00
|
|
|
'src/Resources/LNMarker.cpp',
|
|
|
|
'src/Resources/LNMarker.hpp',
|
2020-03-02 02:07:29 +01:00
|
|
|
'src/Resources/Marker.cpp',
|
|
|
|
'src/Resources/Marker.hpp',
|
2020-05-01 00:18:30 +02:00
|
|
|
'src/Resources/SharedResources.hpp',
|
|
|
|
'src/Resources/SharedResources.cpp',
|
2020-05-08 19:27:31 +02:00
|
|
|
'src/Resources/SpriteSheet.cpp',
|
|
|
|
'src/Resources/SpriteSheet.hpp',
|
2020-05-09 12:45:42 +02:00
|
|
|
'src/Resources/SplitSpriteSheet.cpp',
|
|
|
|
'src/Resources/SplitSpriteSheet.hpp',
|
2020-02-18 01:44:21 +01:00
|
|
|
# 'src/Resources/CoverAtlas.hpp',
|
|
|
|
# 'src/Resources/CoverAtlas.cpp',
|
2020-03-08 14:39:37 +01:00
|
|
|
'src/Screens/MusicSelect/Drawables/ControlPanels.hpp',
|
|
|
|
'src/Screens/MusicSelect/Drawables/ControlPanels.cpp',
|
2020-03-08 03:25:07 +01:00
|
|
|
'src/Screens/MusicSelect/Options/OptionPage.hpp',
|
|
|
|
'src/Screens/MusicSelect/Options/OptionPage.cpp',
|
|
|
|
'src/Screens/MusicSelect/Options/InputRemap.hpp',
|
2020-03-08 14:39:37 +01:00
|
|
|
'src/Screens/MusicSelect/Options/InputRemap.cpp',
|
2020-03-02 17:14:53 +01:00
|
|
|
'src/Screens/MusicSelect/Panels/MarkerPanel.hpp',
|
|
|
|
'src/Screens/MusicSelect/Panels/MarkerPanel.cpp',
|
2020-03-02 16:46:45 +01:00
|
|
|
'src/Screens/MusicSelect/Panels/Panel.hpp',
|
2020-03-02 17:14:53 +01:00
|
|
|
'src/Screens/MusicSelect/Panels/Panel.cpp',
|
2020-03-02 16:46:45 +01:00
|
|
|
'src/Screens/MusicSelect/Panels/SubpagePanel.hpp',
|
2020-03-08 14:39:37 +01:00
|
|
|
'src/Screens/MusicSelect/Panels/SubpagePanel.cpp',
|
|
|
|
'src/Screens/MusicSelect/MusicPreview.hpp',
|
|
|
|
'src/Screens/MusicSelect/MusicPreview.cpp',
|
|
|
|
'src/Screens/MusicSelect/MusicSelect.hpp',
|
|
|
|
'src/Screens/MusicSelect/MusicSelect.cpp',
|
2020-03-02 02:07:29 +01:00
|
|
|
'src/Screens/MusicSelect/PanelLayout.hpp',
|
|
|
|
'src/Screens/MusicSelect/PanelLayout.cpp',
|
2020-02-18 01:44:21 +01:00
|
|
|
'src/Screens/MusicSelect/Ribbon.hpp',
|
|
|
|
'src/Screens/MusicSelect/Ribbon.cpp',
|
2020-05-01 00:18:30 +02:00
|
|
|
'src/Screens/MusicSelect/Resources.hpp',
|
|
|
|
'src/Screens/MusicSelect/Resources.cpp',
|
2020-02-15 16:52:45 +01:00
|
|
|
'src/Screens/MusicSelect/SongInfo.hpp',
|
|
|
|
'src/Screens/MusicSelect/SongInfo.cpp',
|
2020-05-01 00:18:30 +02:00
|
|
|
'src/Screens/Gameplay/Gameplay.hpp',
|
|
|
|
'src/Screens/Gameplay/Gameplay.cpp',
|
|
|
|
'src/Screens/Gameplay/PreciseMusic.hpp',
|
|
|
|
'src/Screens/Gameplay/PreciseMusic.cpp',
|
|
|
|
'src/Screens/Gameplay/Silence.hpp',
|
|
|
|
'src/Screens/Gameplay/Silence.cpp',
|
2020-05-07 23:09:51 +02:00
|
|
|
'src/Screens/Gameplay/TimedEventsQueue.hpp',
|
|
|
|
'src/Screens/Gameplay/TimedEventsQueue.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-05-09 12:45:42 +02:00
|
|
|
'src/Toolkit/DurationInFrames.hpp',
|
2020-01-27 01:52:49 +01:00
|
|
|
'src/Toolkit/EasingFunctions.hpp',
|
|
|
|
'src/Toolkit/EasingFunctions.cpp',
|
2020-03-02 02:07:29 +01:00
|
|
|
'src/Toolkit/GHCFilesystemPathHash.hpp',
|
2020-02-15 20:50:47 +01:00
|
|
|
'src/Toolkit/HSL.hpp',
|
|
|
|
'src/Toolkit/HSL.cpp',
|
2020-05-07 15:36:52 +02:00
|
|
|
'src/Toolkit/SFMLHelpers.hpp',
|
|
|
|
'src/Toolkit/SFMLHelpers.cpp',
|
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-05-01 19:11:57 +02:00
|
|
|
cc = meson.get_compiler('cpp')
|
|
|
|
|
|
|
|
dependencies = []
|
|
|
|
|
|
|
|
foreach module : ['system', 'window', 'graphics', 'audio']
|
|
|
|
dependencies += [dependency('sfml-'+module, version : '>=2.5.1')]
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
dependencies += dependency('threads')
|
|
|
|
dependencies += cc.find_library('m', required : false)
|
|
|
|
dependencies += dependency('gl')
|
|
|
|
dependencies += cc.find_library('atomic')
|
2020-05-02 14:17:21 +02:00
|
|
|
dependencies += cc.find_library('X11')
|
2020-05-01 19:11:57 +02:00
|
|
|
|
|
|
|
add_project_link_arguments(['-lstdc++'], language : 'cpp')
|
|
|
|
|
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-05-01 19:11:57 +02:00
|
|
|
dependencies: dependencies,
|
|
|
|
include_directories : inc,
|
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
|
|
|
)
|