Merge pull request #518 from wolfman2000/wolf-cmake-squashed
Introduce cmake (min 2.8.12) to StepMania.
This commit is contained in:
@@ -0,0 +1,225 @@
|
||||
list(APPEND SMDATA_ACTOR_BASE_SRC
|
||||
"Actor.cpp"
|
||||
"ActorFrame.cpp"
|
||||
"ActorFrameTexture.cpp"
|
||||
"ActorMultiTexture.cpp"
|
||||
"ActorMultiVertex.cpp"
|
||||
"ActorProxy.cpp"
|
||||
"ActorScroller.cpp"
|
||||
"ActorSound.cpp"
|
||||
"ActorUtil.cpp"
|
||||
"AutoActor.cpp"
|
||||
"BitmapText.cpp"
|
||||
"DynamicActorScroller.cpp"
|
||||
"Model.cpp"
|
||||
"ModelManager.cpp"
|
||||
"ModelTypes.cpp"
|
||||
"Quad.cpp"
|
||||
"RollingNumbers.cpp"
|
||||
"Sprite.cpp"
|
||||
"Tween.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ACTOR_BASE_HPP
|
||||
"Actor.h"
|
||||
"ActorFrame.h"
|
||||
"ActorFrameTexture.h"
|
||||
"ActorMultiTexture.h"
|
||||
"ActorMultiVertex.h"
|
||||
"ActorProxy.h"
|
||||
"ActorScroller.h"
|
||||
"ActorSound.h"
|
||||
"ActorUtil.h"
|
||||
"AutoActor.h"
|
||||
"BitmapText.h"
|
||||
"DynamicActorScroller.h"
|
||||
"Model.h"
|
||||
"ModelManager.h"
|
||||
"ModelTypes.h"
|
||||
"Quad.h"
|
||||
"RollingNumbers.h"
|
||||
"Sprite.h"
|
||||
"Tween.h"
|
||||
)
|
||||
|
||||
source_group("Actors\\\\Base" FILES ${SMDATA_ACTOR_BASE_SRC} ${SMDATA_ACTOR_BASE_HPP})
|
||||
|
||||
list(APPEND SMDATA_ACTOR_GAMEPLAY_SRC
|
||||
"ActiveAttackList.cpp"
|
||||
"ArrowEffects.cpp"
|
||||
"AttackDisplay.cpp"
|
||||
"Background.cpp"
|
||||
"BeginnerHelper.cpp"
|
||||
"CombinedLifeMeterTug.cpp"
|
||||
"DancingCharacters.cpp"
|
||||
"Foreground.cpp"
|
||||
"GhostArrowRow.cpp"
|
||||
"HoldJudgment.cpp"
|
||||
"Inventory.cpp"
|
||||
"LifeMeter.cpp"
|
||||
"LifeMeterBar.cpp"
|
||||
"LifeMeterBattery.cpp"
|
||||
"LifeMeterTime.cpp"
|
||||
"LyricDisplay.cpp"
|
||||
"NoteDisplay.cpp"
|
||||
"NoteField.cpp"
|
||||
"PercentageDisplay.cpp"
|
||||
"Player.cpp"
|
||||
"ReceptorArrow.cpp"
|
||||
"ReceptorArrowRow.cpp"
|
||||
"ScoreDisplay.cpp"
|
||||
"ScoreDisplayAliveTime.cpp"
|
||||
"ScoreDisplayBattle.cpp"
|
||||
"ScoreDisplayCalories.cpp"
|
||||
"ScoreDisplayLifeTime.cpp"
|
||||
"ScoreDisplayNormal.cpp"
|
||||
"ScoreDisplayOni.cpp"
|
||||
"ScoreDisplayPercentage.cpp"
|
||||
"ScoreDisplayRave.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SMDATA_ACTOR_GAMEPLAY_HPP
|
||||
"ActiveAttackList.h"
|
||||
"ArrowEffects.h"
|
||||
"AttackDisplay.h"
|
||||
"Background.h"
|
||||
"BeginnerHelper.h"
|
||||
"CombinedLifeMeter.h"
|
||||
"CombinedLifeMeterTug.h"
|
||||
"DancingCharacters.h"
|
||||
"Foreground.h"
|
||||
"GhostArrowRow.h"
|
||||
"HoldJudgment.h"
|
||||
"Inventory.h"
|
||||
"LifeMeter.h"
|
||||
"LifeMeterBar.h"
|
||||
"LifeMeterBattery.h"
|
||||
"LifeMeterTime.h"
|
||||
"LyricDisplay.h"
|
||||
"NoteDisplay.h"
|
||||
"NoteField.h"
|
||||
"PercentageDisplay.h"
|
||||
"Player.h"
|
||||
"ReceptorArrow.h"
|
||||
"ReceptorArrowRow.h"
|
||||
"ScoreDisplay.h"
|
||||
"ScoreDisplayAliveTime.h"
|
||||
"ScoreDisplayBattle.h"
|
||||
"ScoreDisplayCalories.h"
|
||||
"ScoreDisplayLifeTime.h"
|
||||
"ScoreDisplayNormal.h"
|
||||
"ScoreDisplayOni.h"
|
||||
"ScoreDisplayPercentage.h"
|
||||
"ScoreDisplayRave.h"
|
||||
)
|
||||
source_group("Actors\\\\Gameplay" FILES ${SMDATA_ACTOR_GAMEPLAY_SRC} ${SMDATA_ACTOR_GAMEPLAY_HPP})
|
||||
|
||||
list(APPEND SMDATA_ACTOR_MENU_SRC
|
||||
"BPMDisplay.cpp"
|
||||
"ComboGraph.cpp"
|
||||
"ControllerStateDisplay.cpp"
|
||||
"CourseContentsList.cpp"
|
||||
"DifficultyList.cpp"
|
||||
"DualScrollBar.cpp"
|
||||
"EditMenu.cpp"
|
||||
"FadingBanner.cpp"
|
||||
"GradeDisplay.cpp"
|
||||
"GraphDisplay.cpp"
|
||||
"GrooveRadar.cpp"
|
||||
"HelpDisplay.cpp"
|
||||
"MemoryCardDisplay.cpp"
|
||||
"MenuTimer.cpp"
|
||||
"ModIcon.cpp"
|
||||
"ModIconRow.cpp"
|
||||
"MusicWheel.cpp"
|
||||
"MusicWheelItem.cpp"
|
||||
"OptionRow.cpp"
|
||||
"OptionsCursor.cpp"
|
||||
"OptionsList.cpp"
|
||||
"PaneDisplay.cpp"
|
||||
"ScrollBar.cpp"
|
||||
"SnapDisplay.cpp"
|
||||
"TextBanner.cpp"
|
||||
"WheelBase.cpp"
|
||||
"WheelItemBase.cpp"
|
||||
"WheelNotifyIcon.cpp"
|
||||
"WorkoutGraph.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ACTOR_MENU_HPP
|
||||
"BPMDisplay.h"
|
||||
"ComboGraph.h"
|
||||
"ControllerStateDisplay.h"
|
||||
"CourseContentsList.h"
|
||||
"DifficultyList.h"
|
||||
"DualScrollBar.h"
|
||||
"EditMenu.h"
|
||||
"FadingBanner.h"
|
||||
"GradeDisplay.h"
|
||||
"GraphDisplay.h"
|
||||
"GrooveRadar.h"
|
||||
"HelpDisplay.h"
|
||||
"MemoryCardDisplay.h"
|
||||
"MenuTimer.h"
|
||||
"ModIcon.h"
|
||||
"ModIconRow.h"
|
||||
"MusicWheel.h"
|
||||
"MusicWheelItem.h"
|
||||
"OptionRow.h"
|
||||
"OptionsCursor.h"
|
||||
"OptionsList.h"
|
||||
"PaneDisplay.h"
|
||||
"ScrollBar.h"
|
||||
"SnapDisplay.h"
|
||||
"TextBanner.h"
|
||||
"WheelBase.h"
|
||||
"WheelItemBase.h"
|
||||
"WheelNotifyIcon.h"
|
||||
"WorkoutGraph.h"
|
||||
)
|
||||
|
||||
if(WITH_NETWORKING)
|
||||
list(APPEND SMDATA_ACTOR_MENU_SRC
|
||||
"RoomInfoDisplay.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ACTOR_MENU_HPP
|
||||
"RoomInfoDisplay.h"
|
||||
)
|
||||
endif()
|
||||
|
||||
source_group("Actors\\\\Menus" FILES ${SMDATA_ACTOR_MENU_SRC} ${SMDATA_ACTOR_MENU_HPP})
|
||||
|
||||
list(APPEND SMDATA_ACTOR_GAMEPLAY_MENU_SRC
|
||||
"Banner.cpp"
|
||||
"BGAnimation.cpp"
|
||||
"BGAnimationLayer.cpp"
|
||||
"DifficultyIcon.cpp"
|
||||
"MeterDisplay.cpp"
|
||||
"StepsDisplay.cpp"
|
||||
"StreamDisplay.cpp"
|
||||
"Transition.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SMDATA_ACTOR_GAMEPLAY_MENU_HPP
|
||||
"Banner.h"
|
||||
"BGAnimation.h"
|
||||
"BGAnimationLayer.h"
|
||||
"DifficultyIcon.h"
|
||||
"MeterDisplay.h"
|
||||
"StepsDisplay.h"
|
||||
"StreamDisplay.h"
|
||||
"Transition.h"
|
||||
)
|
||||
|
||||
source_group("Actors\\\\Gameplay and Menus" FILES ${SMDATA_ACTOR_GAMEPLAY_MENU_SRC} ${SMDATA_ACTOR_GAMEPLAY_MENU_HPP})
|
||||
|
||||
list(APPEND SMDATA_ALL_ACTORS_SRC
|
||||
${SMDATA_ACTOR_BASE_SRC}
|
||||
${SMDATA_ACTOR_GAMEPLAY_SRC}
|
||||
${SMDATA_ACTOR_MENU_SRC}
|
||||
${SMDATA_ACTOR_GAMEPLAY_MENU_SRC}
|
||||
)
|
||||
list(APPEND SMDATA_ALL_ACTORS_HPP
|
||||
${SMDATA_ACTOR_BASE_HPP}
|
||||
${SMDATA_ACTOR_GAMEPLAY_HPP}
|
||||
${SMDATA_ACTOR_MENU_HPP}
|
||||
${SMDATA_ACTOR_GAMEPLAY_MENU_HPP}
|
||||
)
|
||||
@@ -0,0 +1,478 @@
|
||||
list(APPEND SMDATA_ARCH_SRC
|
||||
"arch/RageDriver.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SMDATA_ARCH_HPP
|
||||
"arch/arch_default.h"
|
||||
"arch/RageDriver.h"
|
||||
)
|
||||
|
||||
source_group("Arch Specific" FILES ${SMDATA_ARCH_SRC} ${SMDATA_ARCH_HPP})
|
||||
|
||||
list(APPEND SMDATA_ARCH_THREADS_HPP
|
||||
"arch/Threads/Threads.h"
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND SMDATA_ARCH_THREADS_HPP
|
||||
"arch/Threads/Threads_Win32.h"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_THREADS_SRC
|
||||
"arch/Threads/Threads_Win32.cpp"
|
||||
)
|
||||
elseif(APPLE)
|
||||
list(APPEND SMDATA_ARCH_THREADS_HPP
|
||||
"arch/Threads/Threads_Pthreads.h"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_THREADS_SRC
|
||||
"arch/Threads/Threads_Pthreads.cpp"
|
||||
)
|
||||
else()
|
||||
if(HAS_PTHREAD)
|
||||
list(APPEND SMDATA_ARCH_THREADS_HPP
|
||||
"arch/Threads/Threads_Pthreads.h"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_THREADS_SRC
|
||||
"arch/Threads/Threads_Pthreads.cpp"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
source_group("Arch Specific\\\\Threads" FILES ${SMDATA_ARCH_THREADS_SRC} ${SMDATA_ARCH_THREADS_HPP})
|
||||
|
||||
list(APPEND SMDATA_ARCH_SOUND_SRC
|
||||
"arch/Sound/RageSoundDriver.cpp"
|
||||
"arch/Sound/RageSoundDriver_Generic_Software.cpp"
|
||||
"arch/Sound/RageSoundDriver_Null.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SMDATA_ARCH_SOUND_HPP
|
||||
"arch/Sound/RageSoundDriver.h"
|
||||
"arch/Sound/RageSoundDriver_Null.h"
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND SMDATA_ARCH_SOUND_SRC
|
||||
"arch/Sound/DSoundHelpers.cpp"
|
||||
"arch/Sound/RageSoundDriver_DSound_Software.cpp"
|
||||
"arch/Sound/RageSoundDriver_WaveOut.cpp"
|
||||
"arch/Sound/RageSoundDriver_WDMKS.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_SOUND_HPP
|
||||
"arch/Sound/DSoundHelpers.h"
|
||||
"arch/Sound/RageSoundDriver_DSound_Software.h"
|
||||
"arch/Sound/RageSoundDriver_WaveOut.h"
|
||||
"arch/Sound/RageSoundDriver_WDMKS.h"
|
||||
)
|
||||
elseif(APPLE)
|
||||
list(APPEND SMDATA_ARCH_SOUND_SRC
|
||||
"arch/Sound/RageSoundDriver_AU.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_SOUND_HPP
|
||||
"arch/Sound/RageSoundDriver_AU.h"
|
||||
)
|
||||
else() # Unix
|
||||
if (HAS_PULSE)
|
||||
list(APPEND SMDATA_ARCH_SOUND_SRC
|
||||
"arch/Sound/RageSoundDriver_PulseAudio.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_SOUND_HPP
|
||||
"arch/Sound/RageSoundDriver_PulseAudio.h"
|
||||
)
|
||||
endif()
|
||||
if (HAS_ALSA)
|
||||
list(APPEND SMDATA_ARCH_SOUND_SRC
|
||||
"arch/Sound/ALSA9Dynamic.cpp"
|
||||
"arch/Sound/ALSA9Helpers.cpp"
|
||||
"arch/Sound/RageSoundDriver_ALSA9_Software.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_SOUND_HPP
|
||||
"arch/Sound/ALSA9Dynamic.h"
|
||||
"arch/Sound/ALSA9Functions.h"
|
||||
"arch/Sound/ALSA9Helpers.h"
|
||||
"arch/Sound/RageSoundDriver_ALSA9_Software.h"
|
||||
)
|
||||
endif()
|
||||
if (HAS_JACK)
|
||||
list(APPEND SMDATA_ARCH_SOUND_SRC
|
||||
"arch/Sound/RageSoundDriver_JACK.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_SOUND_HPP
|
||||
"arch/Sound/RageSoundDriver_JACK.h"
|
||||
)
|
||||
endif()
|
||||
if (HAS_OSS)
|
||||
list(APPEND SMDATA_ARCH_SOUND_SRC
|
||||
"arch/Sound/RageSoundDriver_OSS.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_SOUND_HPP
|
||||
"arch/Sound/RageSoundDriver_OSS.h"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
source_group("Arch Specific\\\\Sound" FILES ${SMDATA_ARCH_SOUND_SRC} ${SMDATA_ARCH_SOUND_HPP})
|
||||
|
||||
list(APPEND SMDATA_ARCH_MOVIE_TEXTURE_SRC
|
||||
"arch/MovieTexture/MovieTexture.cpp"
|
||||
"arch/MovieTexture/MovieTexture_Generic.cpp"
|
||||
"arch/MovieTexture/MovieTexture_Null.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_MOVIE_TEXTURE_HPP
|
||||
"arch/MovieTexture/MovieTexture.h"
|
||||
"arch/MovieTexture/MovieTexture_Generic.h"
|
||||
"arch/MovieTexture/MovieTexture_Null.h"
|
||||
)
|
||||
|
||||
if(APPLE)
|
||||
list(APPEND SMDATA_ARCH_MOVIE_TEXTURE_SRC
|
||||
"arch/MovieTexture/MovieTexture_FFMpeg.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_MOVIE_TEXTURE_HPP
|
||||
"arch/MovieTexture/MovieTexture_FFMpeg.h"
|
||||
)
|
||||
elseif(MSVC)
|
||||
list(APPEND SMDATA_ARCH_MOVIE_TEXTURE_SRC
|
||||
"arch/MovieTexture/MovieTexture_FFMpeg.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_MOVIE_TEXTURE_HPP
|
||||
"arch/MovieTexture/MovieTexture_FFMpeg.h"
|
||||
)
|
||||
else() # Unix
|
||||
if (${HAS_FFMPEG})
|
||||
list(APPEND SMDATA_ARCH_MOVIE_TEXTURE_SRC
|
||||
"arch/MovieTexture/MovieTexture_FFMpeg.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_MOVIE_TEXTURE_HPP
|
||||
"arch/MovieTexture/MovieTexture_FFMpeg.h"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
source_group("Arch Specific\\\\Movie Texture" FILES ${SMDATA_ARCH_MOVIE_TEXTURE_SRC} ${SMDATA_ARCH_MOVIE_TEXTURE_HPP})
|
||||
|
||||
list(APPEND SMDATA_ARCH_MEMORY_SRC
|
||||
"arch/MemoryCard/MemoryCardDriver.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_MEMORY_HPP
|
||||
"arch/MemoryCard/MemoryCardDriver.h"
|
||||
"arch/MemoryCard/MemoryCardDriver_Null.h"
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND SMDATA_ARCH_MEMORY_SRC
|
||||
"arch/MemoryCard/MemoryCardDriverThreaded_Windows.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_MEMORY_HPP
|
||||
"arch/MemoryCard/MemoryCardDriverThreaded_Windows.h"
|
||||
)
|
||||
elseif(APPLE)
|
||||
list(APPEND SMDATA_ARCH_MEMORY_SRC
|
||||
"arch/MemoryCard/MemoryCardDriverThreaded_MacOSX.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_MEMORY_HPP
|
||||
"arch/MemoryCard/MemoryCardDriverThreaded_MacOSX.h"
|
||||
)
|
||||
elseif(LINUX)
|
||||
list(APPEND SMDATA_ARCH_MEMORY_SRC
|
||||
"arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_MEMORY_HPP
|
||||
"arch/MemoryCard/MemoryCardDriverThreaded_Linux.h"
|
||||
)
|
||||
endif()
|
||||
|
||||
source_group("Arch Specific\\\\Memory Card" FILES ${SMDATA_ARCH_MEMORY_SRC} ${SMDATA_ARCH_MEMORY_HPP})
|
||||
|
||||
list(APPEND SMDATA_ARCH_LOWLEVEL_SRC
|
||||
"arch/LowLevelWindow/LowLevelWindow.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_LOWLEVEL_HPP
|
||||
"arch/LowLevelWindow/LowLevelWindow.h"
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND SMDATA_ARCH_LOWLEVEL_SRC
|
||||
"arch/LowLevelWindow/LowLevelWindow_Win32.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_LOWLEVEL_HPP
|
||||
"arch/LowLevelWindow/LowLevelWindow_Win32.h"
|
||||
)
|
||||
elseif(APPLE)
|
||||
list(APPEND SMDATA_ARCH_LOWLEVEL_SRC
|
||||
"arch/LowLevelWindow/LowLevelWindow_MacOSX.mm"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_LOWLEVEL_HPP
|
||||
"arch/LowLevelWindow/LowLevelWindow_MacOSX.h"
|
||||
)
|
||||
else(UNIX)
|
||||
if (X11_FOUND)
|
||||
list(APPEND SMDATA_ARCH_LOWLEVEL_SRC
|
||||
"arch/LowLevelWindow/LowLevelWindow_X11.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_LOWLEVEL_HPP
|
||||
"arch/LowLevelWindow/LowLevelWindow_X11.h"
|
||||
)
|
||||
endif()
|
||||
endif(WIN32)
|
||||
|
||||
source_group("Arch Specific\\\\Low Level Window" FILES ${SMDATA_ARCH_LOWLEVEL_SRC} ${SMDATA_ARCH_LOWLEVEL_HPP})
|
||||
|
||||
list(APPEND SMDATA_ARCH_LOADING_SRC
|
||||
"arch/LoadingWindow/LoadingWindow.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_LOADING_HPP
|
||||
"arch/LoadingWindow/LoadingWindow.h"
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND SMDATA_ARCH_LOADING_SRC
|
||||
"arch/LoadingWindow/LoadingWindow_Win32.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_LOADING_HPP
|
||||
"arch/LoadingWindow/LoadingWindow_Win32.h"
|
||||
)
|
||||
else()
|
||||
list(APPEND SMDATA_ARCH_LOADING_HPP
|
||||
"arch/LoadingWindow/LoadingWindow_Null.h"
|
||||
)
|
||||
if(APPLE)
|
||||
list(APPEND SMDATA_ARCH_LOADING_SRC
|
||||
"arch/LoadingWindow/LoadingWindow_MacOSX.mm"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_LOADING_HPP
|
||||
"arch/LoadingWindow/LoadingWindow_MacOSX.h"
|
||||
)
|
||||
elseif(LINUX)
|
||||
if (GTK2_FOUND)
|
||||
list(APPEND SMDATA_ARCH_LOADING_SRC
|
||||
"arch/LoadingWindow/LoadingWindow_Gtk.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_LOADING_HPP
|
||||
"arch/LoadingWindow/LoadingWindow_Gtk.h"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
source_group("Arch Specific\\\\Loading Window" FILES ${SMDATA_ARCH_LOADING_SRC} ${SMDATA_ARCH_LOADING_HPP})
|
||||
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_SRC
|
||||
"arch/Lights/LightsDriver.cpp"
|
||||
"arch/Lights/LightsDriver_SystemMessage.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_HPP
|
||||
"arch/Lights/LightsDriver.h"
|
||||
"arch/Lights/LightsDriver_SystemMessage.h"
|
||||
)
|
||||
|
||||
# TODO: Confirm if Apple can use the export.
|
||||
if(NOT APPLE)
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_SRC
|
||||
"arch/Lights/LightsDriver_Export.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_HPP
|
||||
"arch/Lights/LightsDriver_Export.h"
|
||||
)
|
||||
if(WIN32)
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_SRC
|
||||
"arch/Lights/LightsDriver_Win32Parallel.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_HPP
|
||||
"arch/Lights/LightsDriver_Win32Parallel.h"
|
||||
)
|
||||
if (WITH_MINIMAID)
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_SRC
|
||||
"arch/Lights/LightsDriver_Win32Minimaid.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_HPP
|
||||
"arch/Lights/LightsDriver_Win32Minimaid.h"
|
||||
)
|
||||
endif()
|
||||
else() # Unix/Linux TODO: Linux HAVE_PARALLEL_PORT
|
||||
if(LINUX)
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_SRC
|
||||
"arch/Lights/LightsDriver_Linux_PIUIO.cpp"
|
||||
"arch/Lights/LightsDriver_Linux_PIUIO_Leds.cpp"
|
||||
"arch/Lights/LightsDriver_LinuxWeedTech.cpp"
|
||||
"arch/Lights/LightsDriver_LinuxParallel.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_HPP
|
||||
"arch/Lights/LightsDriver_Linux_PIUIO.h"
|
||||
"arch/Lights/LightsDriver_Linux_PIUIO_Leds.h"
|
||||
"arch/Lights/LightsDriver_LinuxWeedTech.h"
|
||||
"arch/Lights/LightsDriver_LinuxParallel.h"
|
||||
)
|
||||
if (WITH_PARALLEL_PORT)
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_SRC
|
||||
"arch/Lights/LightsDriver_LinuxParallel.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_HPP
|
||||
"arch/Lights/LightsDriver_LinuxParallel.h"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
endif(WIN32)
|
||||
endif(NOT APPLE)
|
||||
|
||||
source_group("Arch Specific\\\\Lights" FILES ${SMDATA_ARCH_LIGHTS_SRC} ${SMDATA_ARCH_LIGHTS_HPP})
|
||||
|
||||
list(APPEND SMDATA_ARCH_INPUT_SRC
|
||||
"arch/InputHandler/InputHandler.cpp"
|
||||
"arch/InputHandler/InputHandler_MonkeyKeyboard.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_INPUT_HPP
|
||||
"arch/InputHandler/InputHandler.h"
|
||||
"arch/InputHandler/InputHandler_MonkeyKeyboard.h"
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND SMDATA_ARCH_INPUT_SRC
|
||||
"arch/InputHandler/InputHandler_DirectInput.cpp"
|
||||
"arch/InputHandler/InputHandler_DirectInputHelper.cpp"
|
||||
"arch/InputHandler/InputHandler_Win32_MIDI.cpp"
|
||||
"arch/InputHandler/InputHandler_Win32_Para.cpp"
|
||||
"arch/InputHandler/InputHandler_Win32_Pump.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_INPUT_HPP
|
||||
"arch/InputHandler/InputHandler_DirectInput.h"
|
||||
"arch/InputHandler/InputHandler_DirectInputHelper.h"
|
||||
"arch/InputHandler/InputHandler_Win32_MIDI.h"
|
||||
"arch/InputHandler/InputHandler_Win32_Para.h"
|
||||
"arch/InputHandler/InputHandler_Win32_Pump.h"
|
||||
)
|
||||
elseif(APPLE)
|
||||
list(APPEND SMDATA_ARCH_INPUT_SRC
|
||||
"arch/InputHandler/InputHandler_MacOSX_HID.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_INPUT_HPP
|
||||
"arch/InputHandler/InputHandler_MacOSX_HID.h"
|
||||
)
|
||||
else() # Unix/Linux
|
||||
if (LINUX)
|
||||
list(APPEND SMDATA_ARCH_INPUT_SRC
|
||||
"arch/InputHandler/LinuxInputManager.cpp"
|
||||
"arch/InputHandler/InputHandler_Linux_Joystick.cpp"
|
||||
"arch/InputHandler/InputHandler_Linux_Event.cpp"
|
||||
"arch/InputHandler/InputHandler_Linux_PIUIO.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_INPUT_SRC
|
||||
"arch/InputHandler/LinuxInputManager.h"
|
||||
"arch/InputHandler/InputHandler_Linux_Joystick.h"
|
||||
"arch/InputHandler/InputHandler_Linux_Event.h"
|
||||
"arch/InputHandler/InputHandler_Linux_PIUIO.h"
|
||||
)
|
||||
if(WITH_TTY)
|
||||
list(APPEND SMDATA_ARCH_INPUT_SRC
|
||||
"arch/InputHandler/InputHandler_Linux_tty.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_INPUT_HPP
|
||||
"arch/InputHandler/InputHandler_Linux_tty.h"
|
||||
"arch/InputHandler/InputHandler_Linux_tty_keys.h"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
if(X11_FOUND)
|
||||
list(APPEND SMDATA_ARCH_INPUT_SRC
|
||||
"arch/InputHandler/InputHandler_X11.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_INPUT_HPP
|
||||
"arch/InputHandler/InputHandler_X11.h"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
source_group("Arch Specific\\\\Input Handler" FILES ${SMDATA_ARCH_INPUT_SRC} ${SMDATA_ARCH_INPUT_HPP})
|
||||
|
||||
list(APPEND SMDATA_ARCH_DIALOG_SRC
|
||||
"arch/Dialog/Dialog.cpp"
|
||||
"arch/Dialog/DialogDriver.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_DIALOG_HPP
|
||||
"arch/Dialog/Dialog.h"
|
||||
"arch/Dialog/DialogDriver.h"
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND SMDATA_ARCH_DIALOG_SRC
|
||||
"arch/Dialog/DialogDriver_Win32.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_DIALOG_HPP
|
||||
"arch/Dialog/DialogDriver_Win32.h"
|
||||
)
|
||||
elseif(APPLE)
|
||||
list(APPEND SMDATA_ARCH_DIALOG_SRC
|
||||
"arch/Dialog/DialogDriver_MacOSX.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_DIALOG_HPP
|
||||
"arch/Dialog/DialogDriver_MacOSX.h"
|
||||
)
|
||||
endif(WIN32)
|
||||
|
||||
source_group("Arch Specific\\\\Dialog" FILES ${SMDATA_ARCH_DIALOG_SRC} ${SMDATA_ARCH_DIALOG_HPP})
|
||||
|
||||
list(APPEND SMDATA_ARCH_HOOKS_SRC
|
||||
"arch/ArchHooks/ArchHooks.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_HOOKS_HPP
|
||||
"arch/ArchHooks/ArchHooks.h"
|
||||
)
|
||||
|
||||
if(NOT APPLE)
|
||||
list(APPEND SMDATA_ARCH_HOOKS_SRC
|
||||
"arch/ArchHooks/ArchHooksUtil.cpp"
|
||||
)
|
||||
if(WIN32)
|
||||
list(APPEND SMDATA_ARCH_HOOKS_SRC
|
||||
"arch/ArchHooks/ArchHooks_Win32.cpp"
|
||||
"arch/ArchHooks/ArchHooks_Win32Static.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_HOOKS_HPP
|
||||
"arch/ArchHooks/ArchHooks_Win32.h"
|
||||
)
|
||||
else(WIN32)
|
||||
list(APPEND SMDATA_ARCH_HOOKS_SRC
|
||||
"arch/ArchHooks/ArchHooks_Unix.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_HOOKS_HPP
|
||||
"arch/ArchHooks/ArchHooks_Unix.h"
|
||||
)
|
||||
endif(WIN32)
|
||||
else(NOT APPLE)
|
||||
list(APPEND SMDATA_ARCH_HOOKS_SRC
|
||||
"arch/ArchHooks/ArchHooks_MacOSX.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_ARCH_HOOKS_HPP
|
||||
"arch/ArchHooks/ArchHooks_MacOSX.h"
|
||||
)
|
||||
endif(NOT APPLE)
|
||||
|
||||
source_group("Arch Specific\\\\Arch Hooks" FILES ${SMDATA_ARCH_HOOKS_SRC} ${SMDATA_ARCH_HOOKS_HPP})
|
||||
|
||||
list(APPEND SMDATA_ALL_ARCH_SRC
|
||||
${SMDATA_ARCH_SRC}
|
||||
${SMDATA_ARCH_DIALOG_SRC}
|
||||
${SMDATA_ARCH_HOOKS_SRC}
|
||||
${SMDATA_ARCH_INPUT_SRC}
|
||||
${SMDATA_ARCH_LIGHTS_SRC}
|
||||
${SMDATA_ARCH_LOADING_SRC}
|
||||
${SMDATA_ARCH_LOWLEVEL_SRC}
|
||||
${SMDATA_ARCH_MEMORY_SRC}
|
||||
${SMDATA_ARCH_MOVIE_TEXTURE_SRC}
|
||||
${SMDATA_ARCH_SOUND_SRC}
|
||||
${SMDATA_ARCH_THREADS_SRC}
|
||||
)
|
||||
list(APPEND SMDATA_ALL_ARCH_HPP
|
||||
${SMDATA_ARCH_HPP}
|
||||
${SMDATA_ARCH_DIALOG_HPP}
|
||||
${SMDATA_ARCH_HOOKS_HPP}
|
||||
${SMDATA_ARCH_INPUT_HPP}
|
||||
${SMDATA_ARCH_LIGHTS_HPP}
|
||||
${SMDATA_ARCH_LOADING_HPP}
|
||||
${SMDATA_ARCH_LOWLEVEL_HPP}
|
||||
${SMDATA_ARCH_MEMORY_HPP}
|
||||
${SMDATA_ARCH_MOVIE_TEXTURE_HPP}
|
||||
${SMDATA_ARCH_SOUND_HPP}
|
||||
${SMDATA_ARCH_THREADS_HPP}
|
||||
)
|
||||
|
||||
@@ -0,0 +1,297 @@
|
||||
list(APPEND SM_DATA_LUA_SRC
|
||||
"LuaBinding.cpp"
|
||||
"LuaExpressionTransform.cpp"
|
||||
"LuaReference.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SM_DATA_LUA_HPP
|
||||
"LuaBinding.h"
|
||||
"LuaExpressionTransform.h"
|
||||
"LuaReference.h"
|
||||
)
|
||||
|
||||
source_group("Data Structures\\\\Lua" FILES ${SM_DATA_LUA_SRC} ${SM_DATA_LUA_HPP})
|
||||
|
||||
list(APPEND SM_DATA_FONT_SRC
|
||||
"Font.cpp"
|
||||
"FontCharAliases.cpp"
|
||||
"FontCharmaps.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SM_DATA_FONT_HPP
|
||||
"Font.h"
|
||||
"FontCharAliases.h"
|
||||
"FontCharmaps.h"
|
||||
)
|
||||
|
||||
source_group("Data Structures\\\\Fonts" FILES ${SM_DATA_FONT_SRC} ${SM_DATA_FONT_HPP})
|
||||
|
||||
list(APPEND SM_DATA_COURSE_SRC
|
||||
"Course.cpp"
|
||||
"CourseLoaderCRS.cpp"
|
||||
"CourseUtil.cpp"
|
||||
"CourseWriterCRS.cpp"
|
||||
"Trail.cpp"
|
||||
"TrailUtil.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SM_DATA_COURSE_HPP
|
||||
"Course.h"
|
||||
"CourseLoaderCRS.h"
|
||||
"CourseUtil.h"
|
||||
"CourseWriterCRS.h"
|
||||
"Trail.h"
|
||||
"TrailUtil.h"
|
||||
)
|
||||
|
||||
source_group("Data Structures\\\\Courses and Trails" FILES ${SM_DATA_COURSE_SRC} ${SM_DATA_COURSE_HPP})
|
||||
|
||||
list(APPEND SM_DATA_NOTEDATA_SRC
|
||||
"NoteData.cpp"
|
||||
"NoteDataUtil.cpp"
|
||||
"NoteDataWithScoring.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SM_DATA_NOTEDATA_HPP
|
||||
"NoteData.h"
|
||||
"NoteDataUtil.h"
|
||||
"NoteDataWithScoring.h"
|
||||
)
|
||||
|
||||
source_group("Data Structures\\\\Note Data" FILES ${SM_DATA_NOTEDATA_SRC} ${SM_DATA_NOTEDATA_HPP})
|
||||
|
||||
list(APPEND SM_DATA_NOTELOAD_SRC
|
||||
"NotesLoader.cpp"
|
||||
"NotesLoaderBMS.cpp"
|
||||
"NotesLoaderDWI.cpp"
|
||||
"NotesLoaderJson.cpp"
|
||||
"NotesLoaderKSF.cpp"
|
||||
"NotesLoaderSM.cpp"
|
||||
"NotesLoaderSMA.cpp"
|
||||
"NotesLoaderSSC.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SM_DATA_NOTELOAD_HPP
|
||||
"NotesLoader.h"
|
||||
"NotesLoaderBMS.h"
|
||||
"NotesLoaderDWI.h"
|
||||
"NotesLoaderJson.h"
|
||||
"NotesLoaderKSF.h"
|
||||
"NotesLoaderSM.h"
|
||||
"NotesLoaderSMA.h"
|
||||
"NotesLoaderSSC.h"
|
||||
)
|
||||
|
||||
source_group("Data Structures\\\\Notes Loaders" FILES ${SM_DATA_NOTELOAD_SRC} ${SM_DATA_NOTELOAD_HPP})
|
||||
|
||||
list(APPEND SM_DATA_NOTEWRITE_SRC
|
||||
"NotesWriterDWI.cpp"
|
||||
"NotesWriterJson.cpp"
|
||||
"NotesWriterSM.cpp"
|
||||
"NotesWriterSSC.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SM_DATA_NOTEWRITE_HPP
|
||||
"NotesWriterDWI.h"
|
||||
"NotesWriterJson.h"
|
||||
"NotesWriterSM.h"
|
||||
"NotesWriterSSC.h"
|
||||
)
|
||||
|
||||
source_group("Data Structures\\\\Notes Writers" FILES ${SM_DATA_NOTEWRITE_SRC} ${SM_DATA_NOTEWRITE_HPP})
|
||||
|
||||
list(APPEND SM_DATA_SCORE_SRC
|
||||
"ScoreKeeper.cpp"
|
||||
"ScoreKeeperNormal.cpp"
|
||||
"ScoreKeeperRave.cpp"
|
||||
"ScoreKeeperShared.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SM_DATA_SCORE_HPP
|
||||
"ScoreKeeper.h"
|
||||
"ScoreKeeperNormal.h"
|
||||
"ScoreKeeperRave.h"
|
||||
"ScoreKeeperShared.h"
|
||||
)
|
||||
|
||||
source_group("Data Structures\\\\Score Keepers" FILES ${SM_DATA_SCORE_SRC} ${SM_DATA_SCORE_HPP})
|
||||
|
||||
list(APPEND SM_DATA_SONG_SRC
|
||||
"Song.cpp"
|
||||
"SongCacheIndex.cpp"
|
||||
"SongOptions.cpp"
|
||||
"SongPosition.cpp"
|
||||
"SongUtil.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SM_DATA_SONG_HPP
|
||||
"Song.h"
|
||||
"SongCacheIndex.h"
|
||||
"SongOptions.h"
|
||||
"SongPosition.h"
|
||||
"SongUtil.h"
|
||||
)
|
||||
|
||||
source_group("Data Structures\\\\Songs" FILES ${SM_DATA_SONG_SRC} ${SM_DATA_SONG_HPP})
|
||||
|
||||
list(APPEND SM_DATA_STEPS_SRC
|
||||
"Steps.cpp"
|
||||
"StepsUtil.cpp"
|
||||
"Style.cpp"
|
||||
"StyleUtil.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SM_DATA_STEPS_HPP
|
||||
"Steps.h"
|
||||
"StepsUtil.h"
|
||||
"Style.h"
|
||||
"StyleUtil.h"
|
||||
)
|
||||
|
||||
source_group("Data Structures\\\\Steps and Styles" FILES ${SM_DATA_STEPS_SRC} ${SM_DATA_STEPS_HPP})
|
||||
|
||||
list(APPEND SM_DATA_REST_SRC
|
||||
"AdjustSync.cpp"
|
||||
"Attack.cpp"
|
||||
"AutoKeysounds.cpp"
|
||||
"BackgroundUtil.cpp"
|
||||
"BannerCache.cpp"
|
||||
"Character.cpp"
|
||||
"CodeDetector.cpp"
|
||||
"CodeSet.cpp"
|
||||
"CubicSpline.cpp"
|
||||
"Command.cpp"
|
||||
"CommonMetrics.cpp"
|
||||
"ControllerStateDisplay.cpp"
|
||||
"CreateZip.cpp"
|
||||
"CryptHelpers.cpp"
|
||||
"DateTime.cpp"
|
||||
"Difficulty.cpp"
|
||||
"EnumHelper.cpp"
|
||||
"FileDownload.cpp"
|
||||
"Game.cpp"
|
||||
"GameCommand.cpp"
|
||||
"GameConstantsAndTypes.cpp"
|
||||
"GameInput.cpp"
|
||||
"GameplayAssist.cpp"
|
||||
"GamePreferences.cpp"
|
||||
"Grade.cpp"
|
||||
"HighScore.cpp"
|
||||
"Inventory.cpp"
|
||||
"JsonUtil.cpp"
|
||||
"LocalizedString.cpp"
|
||||
"LyricsLoader.cpp"
|
||||
"ModsGroup.cpp"
|
||||
"NoteTypes.cpp"
|
||||
"OptionRowHandler.cpp"
|
||||
"PlayerAI.cpp"
|
||||
"PlayerNumber.cpp"
|
||||
"PlayerOptions.cpp"
|
||||
"PlayerStageStats.cpp"
|
||||
"PlayerState.cpp"
|
||||
"Preference.cpp"
|
||||
"Profile.cpp"
|
||||
"RadarValues.cpp"
|
||||
"RandomSample.cpp"
|
||||
"SampleHistory.cpp"
|
||||
"ScreenDimensions.cpp"
|
||||
"SoundEffectControl.cpp"
|
||||
"StageStats.cpp"
|
||||
"TimingData.cpp"
|
||||
"TimingSegments.cpp"
|
||||
"TitleSubstitution.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SM_DATA_REST_HPP
|
||||
"AdjustSync.h"
|
||||
"Attack.h"
|
||||
"AutoKeysounds.h"
|
||||
"BackgroundUtil.h"
|
||||
"BannerCache.h"
|
||||
"Character.h"
|
||||
"CodeDetector.h"
|
||||
"CodeSet.h"
|
||||
"Command.h"
|
||||
"CommonMetrics.h"
|
||||
"ControllerStateDisplay.h"
|
||||
"CreateZip.h"
|
||||
"CryptHelpers.h"
|
||||
"CubicSpline.h"
|
||||
"DateTime.h"
|
||||
"DisplayResolutions.h"
|
||||
"Difficulty.h"
|
||||
"EnumHelper.h"
|
||||
"FileDownload.h"
|
||||
"Foreach.h"
|
||||
"Game.h"
|
||||
"GameCommand.h"
|
||||
"GameConstantsAndTypes.h"
|
||||
"GameInput.h"
|
||||
"GameplayAssist.h"
|
||||
"GamePreferences.h"
|
||||
"Grade.h"
|
||||
"HighScore.h"
|
||||
"InputEventPlus.h"
|
||||
"Inventory.h"
|
||||
"JsonUtil.h"
|
||||
"LocalizedString.h"
|
||||
"LyricsLoader.h"
|
||||
"ModsGroup.h"
|
||||
"NoteTypes.h"
|
||||
"OptionRowHandler.h"
|
||||
"PlayerAI.h"
|
||||
"PlayerNumber.h"
|
||||
"PlayerOptions.h"
|
||||
"PlayerStageStats.h"
|
||||
"PlayerState.h"
|
||||
"Preference.h"
|
||||
"Profile.h"
|
||||
"RadarValues.h"
|
||||
"RandomSample.h"
|
||||
"SampleHistory.h"
|
||||
"ScreenDimensions.h"
|
||||
"SoundEffectControl.h"
|
||||
"SubscriptionManager.h"
|
||||
"StageStats.h"
|
||||
"ThemeMetric.h"
|
||||
"TimingData.h"
|
||||
"TimingSegments.h"
|
||||
"TitleSubstitution.h"
|
||||
)
|
||||
|
||||
if(WITH_NETWORKING)
|
||||
list(APPEND SM_DATA_REST_SRC
|
||||
"RoomWheel.cpp"
|
||||
)
|
||||
list(APPEND SM_DATA_REST_HPP
|
||||
"RoomWheel.h"
|
||||
)
|
||||
endif()
|
||||
|
||||
source_group("Data Structures\\\\Misc Objects" FILES ${SM_DATA_REST_SRC} ${SM_DATA_REST_HPP})
|
||||
|
||||
list(APPEND SMDATA_ALL_DATA_SRC
|
||||
${SM_DATA_COURSE_SRC}
|
||||
${SM_DATA_FONT_SRC}
|
||||
${SM_DATA_LUA_SRC}
|
||||
${SM_DATA_NOTEDATA_SRC}
|
||||
${SM_DATA_NOTELOAD_SRC}
|
||||
${SM_DATA_NOTEWRITE_SRC}
|
||||
${SM_DATA_SCORE_SRC}
|
||||
${SM_DATA_SONG_SRC}
|
||||
${SM_DATA_STEPS_SRC}
|
||||
${SM_DATA_REST_SRC}
|
||||
)
|
||||
|
||||
list(APPEND SMDATA_ALL_DATA_HPP
|
||||
${SM_DATA_COURSE_HPP}
|
||||
${SM_DATA_FONT_HPP}
|
||||
${SM_DATA_LUA_HPP}
|
||||
${SM_DATA_NOTEDATA_HPP}
|
||||
${SM_DATA_NOTELOAD_HPP}
|
||||
${SM_DATA_NOTEWRITE_HPP}
|
||||
${SM_DATA_SCORE_HPP}
|
||||
${SM_DATA_SONG_HPP}
|
||||
${SM_DATA_STEPS_HPP}
|
||||
${SM_DATA_REST_HPP}
|
||||
)
|
||||
@@ -0,0 +1,29 @@
|
||||
if(NOT GTK2_FOUND)
|
||||
return()
|
||||
endif()
|
||||
|
||||
add_library("GtkModule"
|
||||
SHARED
|
||||
"arch/LoadingWindow/LoadingWindow_GtkModule.cpp"
|
||||
"arch/LoadingWindow/LoadingWindow_GtkModule.h"
|
||||
)
|
||||
sm_add_compile_definition("GtkModule" "${ENDIANNESS}")
|
||||
|
||||
# It is normally not appropriate to set the prefix to the empty string.
|
||||
# This is to maintain compatibility with the current source.
|
||||
# At some point, it may be worth being more flexible.
|
||||
set_target_properties("GtkModule" PROPERTIES PREFIX "")
|
||||
set_target_properties("GtkModule" PROPERTIES OUTPUT_NAME "GtkModule")
|
||||
set_target_properties("GtkModule" PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${SM_ROOT_DIR}")
|
||||
set_target_properties("GtkModule" PROPERTIES LIBRARY_OUTPUT_DIRECTORY_RELEASE "${SM_ROOT_DIR}")
|
||||
set_target_properties("GtkModule" PROPERTIES LIBRARY_OUTPUT_DIRECTORY_DEBUG "${SM_ROOT_DIR}")
|
||||
set_target_properties("GtkModule" PROPERTIES LIBRARY_OUTPUT_DIRECTORY_MINSIZEREL "${SM_ROOT_DIR}")
|
||||
set_target_properties("GtkModule" PROPERTIES LIBRARY_OUTPUT_DIRECTORY_RELWITHDEBINFO "${SM_ROOT_DIR}")
|
||||
target_link_libraries("GtkModule" ${GTK2_LIBRARIES})
|
||||
set_property(TARGET "GtkModule" PROPERTY FOLDER "Internal Libraries")
|
||||
list(APPEND SM_GTK_INCLUDE_DIRS
|
||||
"${SM_SRC_DIR}"
|
||||
"${SM_SRC_DIR}/arch/LoadingWindow"
|
||||
"${GTK2_INCLUDE_DIRS}"
|
||||
)
|
||||
target_include_directories("GtkModule" PUBLIC ${SM_GTK_INCLUDE_DIRS})
|
||||
@@ -0,0 +1,149 @@
|
||||
if(APPLE)
|
||||
list(APPEND SMDATA_OS_DARWIN_SRC
|
||||
"archutils/Darwin/Crash.cpp"
|
||||
"archutils/Darwin/DarwinThreadHelpers.cpp"
|
||||
"archutils/Darwin/HIDDevice.cpp"
|
||||
"archutils/Darwin/JoystickDevice.cpp"
|
||||
"archutils/Darwin/KeyboardDevice.cpp"
|
||||
"archutils/Darwin/MouseDevice.cpp"
|
||||
"archutils/Darwin/PumpDevice.cpp"
|
||||
"archutils/Darwin/SMMain.mm"
|
||||
"archutils/Darwin/SpecialDirs.cpp"
|
||||
"archutils/Darwin/VectorHelper.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_OS_DARWIN_HPP
|
||||
"archutils/Darwin/arch_setup.h"
|
||||
"archutils/Darwin/Crash.h"
|
||||
"archutils/Darwin/DarwinThreadHelpers.h"
|
||||
"archutils/Darwin/HIDDevice.h"
|
||||
"archutils/Darwin/JoystickDevice.h"
|
||||
"archutils/Darwin/KeyboardDevice.h"
|
||||
"archutils/Darwin/MouseDevice.h"
|
||||
"archutils/Darwin/PumpDevice.h"
|
||||
"archutils/Darwin/SpecialDirs.h"
|
||||
"archutils/Darwin/StepMania.pch" # precompiled header.
|
||||
"archutils/Darwin/VectorHelper.h"
|
||||
)
|
||||
|
||||
source_group("OS Specific\\\\Darwin" FILES ${SMDATA_OS_DARWIN_SRC} ${SMDATA_OS_DARWIN_HPP})
|
||||
|
||||
if (WITH_CRASH_HANDLER)
|
||||
list(APPEND SMDATA_OS_UNIX_SRC
|
||||
"archutils/Unix/Backtrace.cpp"
|
||||
"archutils/Unix/BacktraceNames.cpp"
|
||||
"archutils/Unix/CrashHandler.cpp"
|
||||
"archutils/Unix/CrashHandlerChild.cpp"
|
||||
"archutils/Unix/CrashHandlerInternal.cpp"
|
||||
"archutils/Unix/SignalHandler.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_OS_UNIX_HPP
|
||||
"archutils/Unix/Backtrace.h"
|
||||
"archutils/Unix/BacktraceNames.h"
|
||||
"archutils/Unix/CrashHandler.h"
|
||||
"archutils/Unix/CrashHandlerInternal.h"
|
||||
"archutils/Unix/SignalHandler.h"
|
||||
)
|
||||
endif()
|
||||
|
||||
source_group("OS Specific\\\\Unix" FILES ${SMDATA_OS_UNIX_SRC} ${SMDATA_OS_UNIX_HPP})
|
||||
|
||||
list(APPEND SMDATA_OS_SRC
|
||||
${SMDATA_OS_DARWIN_SRC}
|
||||
${SMDATA_OS_UNIX_SRC}
|
||||
)
|
||||
list(APPEND SMDATA_OS_HPP
|
||||
${SMDATA_OS_DARWIN_HPP}
|
||||
${SMDATA_OS_UNIX_HPP}
|
||||
)
|
||||
else()
|
||||
if(WIN32)
|
||||
list(APPEND SMDATA_OS_SRC
|
||||
"archutils/Win32/AppInstance.cpp"
|
||||
"archutils/Win32/arch_setup.cpp"
|
||||
"archutils/Win32/arch_time.cpp"
|
||||
"archutils/Win32/CommandLine.cpp"
|
||||
"archutils/Win32/Crash.cpp"
|
||||
"archutils/Win32/CrashHandlerChild.cpp"
|
||||
"archutils/Win32/CrashHandlerNetworking.cpp"
|
||||
"archutils/Win32/DebugInfoHunt.cpp"
|
||||
"archutils/Win32/DialogUtil.cpp"
|
||||
"archutils/Win32/DirectXHelpers.cpp"
|
||||
"archutils/Win32/ErrorStrings.cpp"
|
||||
"archutils/Win32/GetFileInformation.cpp"
|
||||
"archutils/Win32/GotoURL.cpp"
|
||||
"archutils/Win32/GraphicsWindow.cpp"
|
||||
"archutils/Win32/MessageWindow.cpp"
|
||||
"archutils/Win32/RegistryAccess.cpp"
|
||||
"archutils/Win32/RestartProgram.cpp"
|
||||
"archutils/Win32/SpecialDirs.cpp"
|
||||
"archutils/Win32/USB.cpp"
|
||||
"archutils/Win32/VideoDriverInfo.cpp"
|
||||
"archutils/Win32/WindowIcon.cpp"
|
||||
"archutils/Win32/WindowsDialogBox.cpp"
|
||||
"archutils/Win32/WindowsResources.rc"
|
||||
)
|
||||
|
||||
list(APPEND SMDATA_OS_HPP
|
||||
"archutils/Win32/AppInstance.h"
|
||||
"archutils/Win32/arch_setup.h"
|
||||
"archutils/Win32/CommandLine.h"
|
||||
"archutils/Win32/Crash.h"
|
||||
"archutils/Win32/CrashHandlerInternal.h"
|
||||
"archutils/Win32/CrashHandlerNetworking.h"
|
||||
"archutils/Win32/DebugInfoHunt.h"
|
||||
"archutils/Win32/DialogUtil.h"
|
||||
"archutils/Win32/DirectXHelpers.h"
|
||||
"archutils/Win32/ErrorStrings.h"
|
||||
"archutils/Win32/GetFileInformation.h"
|
||||
"archutils/Win32/GotoURL.h"
|
||||
"archutils/Win32/GraphicsWindow.h"
|
||||
"archutils/Win32/MessageWindow.h"
|
||||
"archutils/Win32/RegistryAccess.h"
|
||||
"archutils/Win32/RestartProgram.h"
|
||||
"archutils/Win32/SpecialDirs.h"
|
||||
"archutils/Win32/USB.h"
|
||||
"archutils/Win32/VideoDriverInfo.h"
|
||||
"archutils/Win32/WindowIcon.h"
|
||||
"archutils/Win32/WindowsDialogBox.h"
|
||||
"archutils/Win32/WindowsResources.h"
|
||||
)
|
||||
else() # Unix
|
||||
list(APPEND SMDATA_OS_SRC # TODO: X11 check, crash handler check
|
||||
"archutils/Unix/AssertionHandler.cpp"
|
||||
"archutils/Unix/EmergencyShutdown.cpp"
|
||||
"archutils/Unix/GetSysInfo.cpp"
|
||||
"archutils/Unix/RunningUnderValgrind.cpp"
|
||||
"archutils/Unix/SignalHandler.cpp"
|
||||
"archutils/Unix/SpecialDirs.cpp"
|
||||
"archutils/Unix/StackCheck.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_OS_HPP
|
||||
"archutils/Unix/arch_setup.h"
|
||||
"archutils/Unix/AssertionHandler.h"
|
||||
"archutils/Unix/EmergencyShutdown.h"
|
||||
"archutils/Unix/GetSysInfo.h"
|
||||
"archutils/Unix/RunningUnderValgrind.h"
|
||||
"archutils/Unix/SignalHandler.h"
|
||||
"archutils/Unix/SpecialDirs.h"
|
||||
"archutils/Common/gcc_byte_swaps.h"
|
||||
)
|
||||
if(X11_FOUND)
|
||||
list(APPEND SMDATA_OS_SRC
|
||||
"archutils/Unix/X11Helper.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_OS_HPP
|
||||
"archutils/Unix/X11Helper.h"
|
||||
)
|
||||
endif()
|
||||
if(HAS_PTHREAD)
|
||||
list(APPEND SMDATA_OS_SRC
|
||||
"archutils/Common/PthreadHelpers.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_OS_HPP
|
||||
"archutils/Common/PthreadHelpers.h"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
source_group("OS Specific" FILES ${SMDATA_OS_SRC} ${SMDATA_OS_HPP})
|
||||
endif()
|
||||
|
||||
@@ -0,0 +1,220 @@
|
||||
# TODO: Turn Rage into a libary.
|
||||
|
||||
list(APPEND SMDATA_RAGE_UTILS_SRC
|
||||
"RageUtil.cpp"
|
||||
"RageUtil_BackgroundLoader.cpp"
|
||||
"RageUtil_CachedObject.cpp"
|
||||
"RageUtil_CharConversions.cpp"
|
||||
"RageUtil_FileDB.cpp"
|
||||
"RageUtil_WorkerThread.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SMDATA_RAGE_UTILS_HPP
|
||||
"RageUtil.h"
|
||||
"RageUtil_AutoPtr.h" # TODO: Remove the need for this and replace with c++11 smart pointers
|
||||
"RageUtil_BackgroundLoader.h"
|
||||
"RageUtil_CachedObject.h"
|
||||
"RageUtil_CharConversions.h"
|
||||
"RageUtil_CircularBuffer.h"
|
||||
"RageUtil_FileDB.h"
|
||||
"RageUtil_WorkerThread.h"
|
||||
)
|
||||
|
||||
source_group("Rage\\\\Utils" FILES ${SMDATA_RAGE_UTILS_SRC} ${SMDATA_RAGE_UTILS_HPP})
|
||||
|
||||
list(APPEND SMDATA_RAGE_MISC_SRC
|
||||
"RageException.cpp"
|
||||
"RageInput.cpp"
|
||||
"RageInputDevice.cpp"
|
||||
"RageLog.cpp"
|
||||
"RageMath.cpp"
|
||||
"RageTypes.cpp"
|
||||
"RageThreads.cpp"
|
||||
"RageTimer.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SMDATA_RAGE_MISC_HPP
|
||||
"RageException.h"
|
||||
"RageInput.h"
|
||||
"RageInputDevice.h"
|
||||
"RageLog.h"
|
||||
"RageMath.h"
|
||||
"RageTypes.h"
|
||||
"RageThreads.h"
|
||||
"RageTimer.h"
|
||||
)
|
||||
|
||||
source_group("Rage\\\\Misc" FILES ${SMDATA_RAGE_MISC_SRC} ${SMDATA_RAGE_MISC_HPP})
|
||||
|
||||
list(APPEND SMDATA_RAGE_GRAPHICS_SRC
|
||||
"RageBitmapTexture.cpp"
|
||||
"RageDisplay.cpp"
|
||||
"RageDisplay_Null.cpp"
|
||||
"RageDisplay_OGL.cpp"
|
||||
"RageDisplay_OGL_Helpers.cpp"
|
||||
"RageModelGeometry.cpp"
|
||||
"RageSurface.cpp"
|
||||
"RageSurface_Load.cpp"
|
||||
"RageSurface_Load_BMP.cpp"
|
||||
"RageSurface_Load_GIF.cpp"
|
||||
"RageSurface_Load_JPEG.cpp"
|
||||
"RageSurface_Load_PNG.cpp"
|
||||
"RageSurface_Load_XPM.cpp"
|
||||
"RageSurface_Save_BMP.cpp"
|
||||
"RageSurface_Save_JPEG.cpp"
|
||||
"RageSurface_Save_PNG.cpp"
|
||||
"RageSurfaceUtils.cpp"
|
||||
"RageSurfaceUtils_Dither.cpp"
|
||||
"RageSurfaceUtils_Palettize.cpp"
|
||||
"RageSurfaceUtils_Zoom.cpp"
|
||||
"RageTexture.cpp"
|
||||
"RageTextureID.cpp"
|
||||
"RageTextureManager.cpp"
|
||||
"RageTexturePreloader.cpp"
|
||||
"RageTextureRenderTarget.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_RAGE_GRAPHICS_HPP
|
||||
"RageBitmapTexture.h"
|
||||
"RageDisplay.h"
|
||||
"RageDisplay_Null.h"
|
||||
"RageDisplay_OGL.h"
|
||||
"RageDisplay_OGL_Helpers.h"
|
||||
"RageModelGeometry.h"
|
||||
"RageSurface.h"
|
||||
"RageSurface_Load.h"
|
||||
"RageSurface_Load_BMP.h"
|
||||
"RageSurface_Load_GIF.h"
|
||||
"RageSurface_Load_JPEG.h"
|
||||
"RageSurface_Load_PNG.h"
|
||||
"RageSurface_Load_XPM.h"
|
||||
"RageSurface_Save_BMP.h"
|
||||
"RageSurface_Save_JPEG.h"
|
||||
"RageSurface_Save_PNG.h"
|
||||
"RageSurfaceUtils.h"
|
||||
"RageSurfaceUtils_Dither.h"
|
||||
"RageSurfaceUtils_Palettize.h"
|
||||
"RageSurfaceUtils_Zoom.h"
|
||||
"RageTexture.h"
|
||||
"RageTextureID.h"
|
||||
"RageTextureManager.h"
|
||||
"RageTexturePreloader.h"
|
||||
"RageTextureRenderTarget.h"
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND SMDATA_RAGE_GRAPHICS_SRC "RageDisplay_D3D.cpp")
|
||||
list(APPEND SMDATA_RAGE_GRAPHICS_HPP "RageDisplay_D3D.h")
|
||||
elseif(LINUX)
|
||||
if (WITH_GLES2)
|
||||
list(APPEND SMDATA_RAGE_GRAPHICS_SRC "RageDisplay_GLES2.cpp")
|
||||
list(APPEND SMDATA_RAGE_GRAPHICS_HPP "RageDisplay_GLES2.h")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
source_group("Rage\\\\Graphics" FILES ${SMDATA_RAGE_GRAPHICS_SRC} ${SMDATA_RAGE_GRAPHICS_HPP})
|
||||
|
||||
list(APPEND SMDATA_RAGE_FILE_SRC
|
||||
"RageFile.cpp"
|
||||
"RageFileBasic.cpp"
|
||||
"RageFileDriver.cpp"
|
||||
"RageFileDriverDeflate.cpp"
|
||||
"RageFileDriverDirect.cpp"
|
||||
"RageFileDriverDirectHelpers.cpp"
|
||||
"RageFileDriverMemory.cpp"
|
||||
"RageFileDriverReadAhead.cpp"
|
||||
"RageFileDriverSlice.cpp"
|
||||
"RageFileDriverTimeout.cpp"
|
||||
"RageFileDriverZip.cpp"
|
||||
"RageFileManager.cpp"
|
||||
"RageFileManager_ReadAhead.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SMDATA_RAGE_FILE_HPP
|
||||
"RageFile.h"
|
||||
"RageFileBasic.h"
|
||||
"RageFileDriver.h"
|
||||
"RageFileDriverDeflate.h"
|
||||
"RageFileDriverDirect.h"
|
||||
"RageFileDriverDirectHelpers.h"
|
||||
"RageFileDriverMemory.h"
|
||||
"RageFileDriverReadAhead.h"
|
||||
"RageFileDriverSlice.h"
|
||||
"RageFileDriverTimeout.h"
|
||||
"RageFileDriverZip.h"
|
||||
"RageFileManager.h"
|
||||
"RageFileManager_ReadAhead.h"
|
||||
)
|
||||
|
||||
source_group("Rage\\\\File" FILES ${SMDATA_RAGE_FILE_SRC} ${SMDATA_RAGE_FILE_HPP})
|
||||
|
||||
list(APPEND SMDATA_RAGE_SOUND_SRC
|
||||
"RageSound.cpp"
|
||||
"RageSoundManager.cpp"
|
||||
"RageSoundMixBuffer.cpp"
|
||||
"RageSoundPosMap.cpp"
|
||||
"RageSoundReader.cpp"
|
||||
"RageSoundReader_Chain.cpp"
|
||||
"RageSoundReader_ChannelSplit.cpp"
|
||||
"RageSoundReader_Extend.cpp"
|
||||
"RageSoundReader_FileReader.cpp"
|
||||
"RageSoundReader_Merge.cpp"
|
||||
"RageSoundReader_Pan.cpp"
|
||||
"RageSoundReader_PitchChange.cpp"
|
||||
"RageSoundReader_PostBuffering.cpp"
|
||||
"RageSoundReader_Preload.cpp"
|
||||
"RageSoundReader_Resample_Good.cpp"
|
||||
"RageSoundReader_SpeedChange.cpp"
|
||||
"RageSoundReader_ThreadedBuffer.cpp"
|
||||
"RageSoundReader_WAV.cpp"
|
||||
"RageSoundUtil.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_RAGE_SOUND_HPP
|
||||
"RageSound.h"
|
||||
"RageSoundManager.h"
|
||||
"RageSoundMixBuffer.h"
|
||||
"RageSoundPosMap.h"
|
||||
"RageSoundReader.h"
|
||||
"RageSoundReader_Chain.h"
|
||||
"RageSoundReader_ChannelSplit.h"
|
||||
"RageSoundReader_Extend.h"
|
||||
"RageSoundReader_FileReader.h"
|
||||
"RageSoundReader_Filter.h"
|
||||
"RageSoundReader_Merge.h"
|
||||
"RageSoundReader_Pan.h"
|
||||
"RageSoundReader_PitchChange.h"
|
||||
"RageSoundReader_PostBuffering.h"
|
||||
"RageSoundReader_Preload.h"
|
||||
"RageSoundReader_Resample_Good.h"
|
||||
"RageSoundReader_SpeedChange.h"
|
||||
"RageSoundReader_ThreadedBuffer.h"
|
||||
"RageSoundReader_WAV.h"
|
||||
"RageSoundUtil.h"
|
||||
)
|
||||
|
||||
if (HAS_OGG)
|
||||
list(APPEND SMDATA_RAGE_SOUND_SRC "RageSoundReader_Vorbisfile.cpp")
|
||||
list(APPEND SMDATA_RAGE_SOUND_HPP "RageSoundReader_Vorbisfile.h")
|
||||
endif()
|
||||
|
||||
if (HAS_MP3)
|
||||
list(APPEND SMDATA_RAGE_SOUND_SRC "RageSoundReader_MP3.cpp")
|
||||
list(APPEND SMDATA_RAGE_SOUND_HPP "RageSoundReader_MP3.h")
|
||||
endif()
|
||||
|
||||
source_group("Rage\\\\Sound" FILES ${SMDATA_RAGE_SOUND_SRC} ${SMDATA_RAGE_SOUND_HPP})
|
||||
|
||||
list(APPEND SMDATA_ALL_RAGE_SRC
|
||||
${SMDATA_RAGE_FILE_SRC}
|
||||
${SMDATA_RAGE_GRAPHICS_SRC}
|
||||
${SMDATA_RAGE_MISC_SRC}
|
||||
${SMDATA_RAGE_SOUND_SRC}
|
||||
${SMDATA_RAGE_UTILS_SRC}
|
||||
)
|
||||
|
||||
list(APPEND SMDATA_ALL_RAGE_HPP
|
||||
${SMDATA_RAGE_FILE_HPP}
|
||||
${SMDATA_RAGE_GRAPHICS_HPP}
|
||||
${SMDATA_RAGE_MISC_HPP}
|
||||
${SMDATA_RAGE_SOUND_HPP}
|
||||
${SMDATA_RAGE_UTILS_HPP}
|
||||
)
|
||||
@@ -0,0 +1,199 @@
|
||||
list(APPEND SMDATA_SCREEN_GAMEPLAY_SRC
|
||||
"ScreenGameplay.cpp"
|
||||
"ScreenGameplayLesson.cpp"
|
||||
"ScreenGameplayNormal.cpp"
|
||||
"ScreenGameplayShared.cpp"
|
||||
"ScreenGameplaySyncMachine.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SMDATA_SCREEN_GAMEPLAY_HPP
|
||||
"ScreenGameplay.h"
|
||||
"ScreenGameplayNormal.h"
|
||||
"ScreenGameplayShared.h"
|
||||
"ScreenGameplaySyncMachine.h"
|
||||
)
|
||||
|
||||
source_group("Screens\\\\Gameplay" FILES ${SMDATA_SCREEN_GAMEPLAY_SRC} ${SMDATA_SCREEN_GAMEPLAY_HPP})
|
||||
|
||||
list(APPEND SMDATA_SCREEN_OPTION_SRC
|
||||
"ScreenOptions.cpp"
|
||||
"ScreenOptionsCourseOverview.cpp"
|
||||
"ScreenOptionsEditCourse.cpp"
|
||||
"ScreenOptionsEditProfile.cpp"
|
||||
"ScreenOptionsExportPackage.cpp"
|
||||
"ScreenOptionsManageCourses.cpp"
|
||||
"ScreenOptionsManageEditSteps.cpp"
|
||||
"ScreenOptionsManageProfiles.cpp"
|
||||
"ScreenOptionsMaster.cpp"
|
||||
"ScreenOptionsMasterPrefs.cpp"
|
||||
"ScreenOptionsMemoryCard.cpp"
|
||||
"ScreenOptionsToggleSongs.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_SCREEN_OPTION_HPP
|
||||
"ScreenOptions.h"
|
||||
"ScreenOptionsCourseOverview.h"
|
||||
"ScreenOptionsEditCourse.h"
|
||||
"ScreenOptionsEditProfile.h"
|
||||
"ScreenOptionsExportPackage.h"
|
||||
"ScreenOptionsManageCourses.h"
|
||||
"ScreenOptionsManageEditSteps.h"
|
||||
"ScreenOptionsManageProfiles.h"
|
||||
"ScreenOptionsMaster.h"
|
||||
"ScreenOptionsMasterPrefs.h"
|
||||
"ScreenOptionsMemoryCard.h"
|
||||
"ScreenOptionsToggleSongs.h"
|
||||
)
|
||||
|
||||
source_group("Screens\\\\Options" FILES ${SMDATA_SCREEN_OPTION_SRC} ${SMDATA_SCREEN_OPTION_HPP})
|
||||
|
||||
list(APPEND SMDATA_SCREEN_REST_SRC
|
||||
"Screen.cpp"
|
||||
"ScreenAttract.cpp"
|
||||
"ScreenBookkeeping.cpp"
|
||||
"ScreenContinue.cpp"
|
||||
"ScreenDebugOverlay.cpp"
|
||||
"ScreenDemonstration.cpp"
|
||||
"ScreenEdit.cpp"
|
||||
"ScreenEditMenu.cpp"
|
||||
"ScreenEnding.cpp"
|
||||
"ScreenEvaluation.cpp"
|
||||
"ScreenExit.cpp"
|
||||
"ScreenHighScores.cpp"
|
||||
"ScreenHowToPlay.cpp"
|
||||
"ScreenInstallOverlay.cpp"
|
||||
"ScreenInstructions.cpp"
|
||||
"ScreenJukebox.cpp"
|
||||
"ScreenMapControllers.cpp"
|
||||
"ScreenMessage.cpp"
|
||||
"ScreenMiniMenu.cpp"
|
||||
"ScreenNameEntry.cpp"
|
||||
"ScreenNameEntryTraditional.cpp"
|
||||
"ScreenPackages.cpp"
|
||||
"ScreenPlayerOptions.cpp"
|
||||
"ScreenProfileLoad.cpp"
|
||||
"ScreenProfileSave.cpp"
|
||||
"ScreenPrompt.cpp"
|
||||
"ScreenRanking.cpp"
|
||||
"ScreenReloadSongs.cpp"
|
||||
"ScreenSandbox.cpp"
|
||||
"ScreenSaveSync.cpp"
|
||||
"ScreenSelect.cpp"
|
||||
"ScreenSelectCharacter.cpp"
|
||||
"ScreenSelectLanguage.cpp"
|
||||
"ScreenSelectMaster.cpp"
|
||||
"ScreenSelectMusic.cpp"
|
||||
"ScreenSelectProfile.cpp"
|
||||
"ScreenServiceAction.cpp"
|
||||
"ScreenSetTime.cpp"
|
||||
"ScreenSongOptions.cpp"
|
||||
"ScreenSplash.cpp"
|
||||
"ScreenStatsOverlay.cpp"
|
||||
"ScreenSyncOverlay.cpp"
|
||||
"ScreenSystemLayer.cpp"
|
||||
"ScreenTestInput.cpp"
|
||||
"ScreenTestLights.cpp"
|
||||
"ScreenTestSound.cpp"
|
||||
"ScreenTextEntry.cpp"
|
||||
"ScreenTitleMenu.cpp"
|
||||
"ScreenUnlockBrowse.cpp"
|
||||
"ScreenUnlockCelebrate.cpp"
|
||||
"ScreenUnlockStatus.cpp"
|
||||
"ScreenWithMenuElements.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_SCREEN_REST_HPP
|
||||
"Screen.h"
|
||||
"ScreenAttract.h"
|
||||
"ScreenBookkeeping.h"
|
||||
"ScreenContinue.h"
|
||||
"ScreenDebugOverlay.h"
|
||||
"ScreenDemonstration.h"
|
||||
"ScreenEdit.h"
|
||||
"ScreenEditMenu.h"
|
||||
"ScreenEnding.h"
|
||||
"ScreenEvaluation.h"
|
||||
"ScreenExit.h"
|
||||
"ScreenHighScores.h"
|
||||
"ScreenHowToPlay.h"
|
||||
"ScreenInstallOverlay.h"
|
||||
"ScreenInstructions.h"
|
||||
"ScreenJukebox.h"
|
||||
"ScreenMapControllers.h"
|
||||
"ScreenMessage.h"
|
||||
"ScreenMiniMenu.h"
|
||||
"ScreenNameEntry.h"
|
||||
"ScreenNameEntryTraditional.h"
|
||||
"ScreenPackages.h"
|
||||
"ScreenPlayerOptions.h"
|
||||
"ScreenProfileLoad.h"
|
||||
"ScreenProfileSave.h"
|
||||
"ScreenPrompt.h"
|
||||
"ScreenRanking.h"
|
||||
"ScreenReloadSongs.h"
|
||||
"ScreenSandbox.h"
|
||||
"ScreenSaveSync.h"
|
||||
"ScreenSelect.h"
|
||||
"ScreenSelectCharacter.h"
|
||||
"ScreenSelectLanguage.h"
|
||||
"ScreenSelectMaster.h"
|
||||
"ScreenSelectMusic.h"
|
||||
"ScreenSelectProfile.h"
|
||||
"ScreenServiceAction.h"
|
||||
"ScreenSetTime.h"
|
||||
"ScreenSongOptions.h"
|
||||
"ScreenSplash.h"
|
||||
"ScreenStatsOverlay.h"
|
||||
"ScreenSyncOverlay.h"
|
||||
"ScreenSystemLayer.h"
|
||||
"ScreenTestInput.h"
|
||||
"ScreenTestLights.h"
|
||||
"ScreenTestSound.h"
|
||||
"ScreenTextEntry.h"
|
||||
"ScreenTitleMenu.h"
|
||||
"ScreenUnlockBrowse.h"
|
||||
"ScreenUnlockCelebrate.h"
|
||||
"ScreenUnlockStatus.h"
|
||||
"ScreenWithMenuElements.h"
|
||||
)
|
||||
|
||||
source_group("Screens\\\\Others" FILES ${SMDATA_SCREEN_REST_SRC} ${SMDATA_SCREEN_REST_HPP})
|
||||
|
||||
list(APPEND SMDATA_SCREEN_NET_SRC
|
||||
"ScreenNetEvaluation.cpp"
|
||||
"ScreenNetRoom.cpp"
|
||||
"ScreenNetSelectBase.cpp"
|
||||
"ScreenNetSelectMusic.cpp"
|
||||
"ScreenNetworkOptions.cpp"
|
||||
)
|
||||
|
||||
list(APPEND SMDATA_SCREEN_NET_HPP
|
||||
"ScreenNetEvaluation.h"
|
||||
"ScreenNetRoom.h"
|
||||
"ScreenNetSelectBase.h"
|
||||
"ScreenNetSelectMusic.h"
|
||||
"ScreenNetworkOptions.h"
|
||||
)
|
||||
|
||||
if (WITH_NETWORKING)
|
||||
list(APPEND SMDATA_SCREEN_NET_SRC
|
||||
"ScreenSMOnlineLogin.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_SCREEN_NET_HPP
|
||||
"ScreenSMOnlineLogin.h"
|
||||
)
|
||||
endif()
|
||||
|
||||
source_group("Screens\\\\Network" FILES ${SMDATA_SCREEN_NET_SRC} ${SMDATA_SCREEN_NET_HPP})
|
||||
|
||||
list(APPEND SMDATA_ALL_SCREENS_SRC
|
||||
${SMDATA_SCREEN_GAMEPLAY_SRC}
|
||||
${SMDATA_SCREEN_OPTION_SRC}
|
||||
${SMDATA_SCREEN_NET_SRC}
|
||||
${SMDATA_SCREEN_REST_SRC}
|
||||
)
|
||||
|
||||
list(APPEND SMDATA_ALL_SCREENS_HPP
|
||||
${SMDATA_SCREEN_GAMEPLAY_HPP}
|
||||
${SMDATA_SCREEN_OPTION_HPP}
|
||||
${SMDATA_SCREEN_NET_HPP}
|
||||
${SMDATA_SCREEN_REST_HPP}
|
||||
)
|
||||
@@ -0,0 +1,539 @@
|
||||
# Version Updater library.
|
||||
add_subdirectory(version_updater)
|
||||
|
||||
# This part may move to a different file: it's the SM Data project.
|
||||
add_custom_command(
|
||||
OUTPUT ${SM_SRC_DIR}/verstub.cpp
|
||||
COMMAND VersionUpdater ${SM_SRC_DIR}/verstub.cpp
|
||||
DEPENDS VersionUpdater
|
||||
)
|
||||
|
||||
source_group("Generated Files" FILES ${SM_SRC_DIR}/verstub.cpp)
|
||||
|
||||
# Main project is below.
|
||||
|
||||
list(APPEND SMDATA_GLOBAL_FILES_SRC
|
||||
"GameLoop.cpp"
|
||||
"global.cpp"
|
||||
"SpecialFiles.cpp"
|
||||
"StepMania.cpp" # TODO: Refactor into separate main project.
|
||||
)
|
||||
|
||||
list(APPEND SMDATA_GLOBAL_FILES_HPP
|
||||
"GameLoop.h"
|
||||
"global.h"
|
||||
"ProductInfo.h" # TODO: Have this be auto-generated.
|
||||
"SpecialFiles.h"
|
||||
"StdString.h" # TODO: Remove the need for this file, transition to std::string.
|
||||
"StepMania.h" # TODO: Refactor into separate main project.
|
||||
)
|
||||
|
||||
source_group("Global Files" FILES ${SMDATA_GLOBAL_FILES_SRC} ${SMDATA_GLOBAL_FILES_HPP})
|
||||
|
||||
# Keep the module path local for easier grabbing.
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
include(CMakeData-arch.cmake)
|
||||
include(CMakeData-rage.cmake)
|
||||
include(CMakeData-os.cmake)
|
||||
include(CMakeData-actor.cmake)
|
||||
include(CMakeData-screen.cmake)
|
||||
include(CMakeData-data.cmake)
|
||||
include(CMakeData-gtk.cmake)
|
||||
|
||||
list(APPEND SMDATA_GLOBAL_SINGLETON_SRC
|
||||
"AnnouncerManager.cpp"
|
||||
"Bookkeeper.cpp"
|
||||
"CharacterManager.cpp"
|
||||
"CommandLineActions.cpp"
|
||||
"CryptManager.cpp"
|
||||
"FontManager.cpp"
|
||||
"GameManager.cpp"
|
||||
"GameSoundManager.cpp"
|
||||
"GameState.cpp"
|
||||
"InputFilter.cpp"
|
||||
"InputMapper.cpp"
|
||||
"InputQueue.cpp"
|
||||
"LightsManager.cpp"
|
||||
"LuaManager.cpp"
|
||||
"MemoryCardManager.cpp"
|
||||
"MessageManager.cpp"
|
||||
"NetworkSyncManager.cpp"
|
||||
"NoteSkinManager.cpp"
|
||||
"PrefsManager.cpp"
|
||||
"ProfileManager.cpp"
|
||||
"ScreenManager.cpp"
|
||||
"SongManager.cpp"
|
||||
"StatsManager.cpp"
|
||||
"ThemeManager.cpp"
|
||||
"UnlockManager.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_GLOBAL_SINGLETON_HPP
|
||||
"AnnouncerManager.h"
|
||||
"Bookkeeper.h"
|
||||
"CharacterManager.h"
|
||||
"CommandLineActions.h"
|
||||
"CryptManager.h"
|
||||
"FontManager.h"
|
||||
"GameManager.h"
|
||||
"GameSoundManager.h"
|
||||
"GameState.h"
|
||||
"InputFilter.h"
|
||||
"InputMapper.h"
|
||||
"InputQueue.h"
|
||||
"LightsManager.h"
|
||||
"LuaManager.h"
|
||||
"MemoryCardManager.h"
|
||||
"MessageManager.h"
|
||||
"NetworkSyncManager.h"
|
||||
"NoteSkinManager.h"
|
||||
"PrefsManager.h"
|
||||
"ProfileManager.h"
|
||||
"ScreenManager.h"
|
||||
"SongManager.h"
|
||||
"StatsManager.h"
|
||||
"ThemeManager.h"
|
||||
"UnlockManager.h"
|
||||
)
|
||||
|
||||
if(WITH_NETWORKING)
|
||||
list(APPEND SMDATA_GLOBAL_SINGLETON_SRC
|
||||
"ezsockets.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_GLOBAL_SINGLETON_HPP
|
||||
"ezsockets.h"
|
||||
)
|
||||
endif()
|
||||
|
||||
source_group("Global Singletons" FILES ${SMDATA_GLOBAL_SINGLETON_SRC} ${SMDATA_GLOBAL_SINGLETON_HPP})
|
||||
|
||||
list(APPEND SMDATA_FILE_TYPES_SRC
|
||||
"IniFile.cpp"
|
||||
"MsdFile.cpp"
|
||||
"XmlFile.cpp"
|
||||
"XmlFileUtil.cpp"
|
||||
)
|
||||
list(APPEND SMDATA_FILE_TYPES_HPP
|
||||
"IniFile.h"
|
||||
"MsdFile.h"
|
||||
"XmlFile.h"
|
||||
"XmlFileUtil.h"
|
||||
)
|
||||
|
||||
source_group("File Types" FILES ${SMDATA_FILE_TYPES_SRC} ${SMDATA_FILE_TYPES_HPP})
|
||||
|
||||
list(APPEND SMDATA_ALL_FILES_SRC
|
||||
${SM_SRC_DIR}/verstub.cpp
|
||||
${SMDATA_GLOBAL_FILES_SRC}
|
||||
${SMDATA_GLOBAL_SINGLETON_SRC}
|
||||
${SMDATA_ALL_ACTORS_SRC}
|
||||
${SMDATA_ALL_ARCH_SRC}
|
||||
${SMDATA_ALL_DATA_SRC}
|
||||
${SMDATA_ALL_RAGE_SRC}
|
||||
${SMDATA_ALL_SCREENS_SRC}
|
||||
${SMDATA_OS_SRC}
|
||||
${SMDATA_FILE_TYPES_SRC}
|
||||
)
|
||||
list(APPEND SMDATA_ALL_FILES_HPP
|
||||
${SMDATA_GLOBAL_FILES_HPP}
|
||||
${SMDATA_GLOBAL_SINGLETON_HPP}
|
||||
${SMDATA_ALL_ACTORS_HPP}
|
||||
${SMDATA_ALL_ARCH_HPP}
|
||||
${SMDATA_ALL_DATA_HPP}
|
||||
${SMDATA_ALL_RAGE_HPP}
|
||||
${SMDATA_ALL_SCREENS_HPP}
|
||||
${SMDATA_OS_HPP}
|
||||
${SMDATA_FILE_TYPES_HPP}
|
||||
)
|
||||
|
||||
if(NOT APPLE)
|
||||
list(APPEND SMDATA_ALL_FILES_SRC "Main.cpp")
|
||||
source_group("" FILES "Main.cpp")
|
||||
endif()
|
||||
|
||||
# TODO: Reconsile the OS dependent naming scheme.
|
||||
if (WIN32 OR APPLE)
|
||||
set(SM_EXE_NAME "StepMania")
|
||||
else()
|
||||
set(SM_EXE_NAME "stepmania")
|
||||
endif()
|
||||
|
||||
# TODO: Make this actually be data and not an executable.
|
||||
if(APPLE)
|
||||
set(MACOSX_BUNDLE_BUNDLE_NAME ${SM_EXE_NAME})
|
||||
add_executable("${SM_EXE_NAME}" MACOSX_BUNDLE ${SMDATA_ALL_FILES_SRC} ${SMDATA_ALL_FILES_HPP})
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES MACOSX_BUNDLE TRUE)
|
||||
else()
|
||||
add_executable("${SM_EXE_NAME}" ${SMDATA_ALL_FILES_SRC} ${SMDATA_ALL_FILES_HPP})
|
||||
endif()
|
||||
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" CMAKE_POWERED)
|
||||
|
||||
if (NOT WITH_NETWORKING)
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" WITHOUT_NETWORKING)
|
||||
endif()
|
||||
|
||||
set(SM_COMPILE_FLAGS "")
|
||||
# Compilation flags per project here.
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" "DEBUG=1")
|
||||
endif()
|
||||
|
||||
if(WITH_SSE2)
|
||||
if(MSVC)
|
||||
set(SM_COMPILE_FLAGS "${SM_COMPILE_FLAGS} /arch:SSE2")
|
||||
else()
|
||||
set(SM_COMPILE_FLAGS "${SM_COMPILE_FLAGS} -msse2")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(WITH_LTO)
|
||||
if(MSVC)
|
||||
set(SM_COMPILE_FLAGS "${SM_COMPILE_FLAGS} /GL")
|
||||
else()
|
||||
set(SM_COMPILE_FLAGS "${SM_COMPILE_FLAGS} -flto")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
# TODO: Find a way to do this cleanly for non MSVC users.
|
||||
set(SM_COMPILE_FLAGS "${SM_COMPILE_FLAGS} /MP2")
|
||||
endif()
|
||||
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES COMPILE_FLAGS ${SM_COMPILE_FLAGS})
|
||||
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES OUTPUT_NAME_DEBUG "StepMania-debug")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES OUTPUT_NAME_MINSIZEREL "StepMania-min-size")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES OUTPUT_NAME_RELWITHDEBINFO "StepMania-release-symbols")
|
||||
|
||||
if(WIN32)
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" WINDOWS)
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" _WINDOWS) # TODO: Remove this potential duplicate.
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" _CRT_SECURE_NO_WARNINGS)
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" _WINSOCK_DEPRECATED_NO_WARNINGS)
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" GLEW_STATIC)
|
||||
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${SM_PROGRAM_DIR}")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELEASE "${SM_PROGRAM_DIR}")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY_DEBUG "${SM_PROGRAM_DIR}")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY_MINSIZEREL "${SM_PROGRAM_DIR}")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO "${SM_PROGRAM_DIR}")
|
||||
elseif(APPLE)
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${SM_ROOT_DIR}")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELEASE "${SM_ROOT_DIR}")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY_DEBUG "${SM_ROOT_DIR}")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY_MINSIZEREL "${SM_ROOT_DIR}")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO "${SM_ROOT_DIR}")
|
||||
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES XCODE_ATTRIBUTE_INFOPLIST_FILE
|
||||
"${SM_XCODE_DIR}/Info-StepMania.plist"
|
||||
)
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES XCODE_ATTRIBUTE_INFOPLIST_PREFIX_HEADER "${SM_SRC_DIR}/ProductInfo.h")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES XCODE_ATTRIBUTE_INFOPLIST_PREPROCESS "YES")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES XCODE_ATTRIBUTE_INFOPLIST_PREPROCESSOR_DEFINITIONS
|
||||
"EXECUTABLE_NAME=\$(PRODUCT_NAME)"
|
||||
)
|
||||
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES XCODE_ATTRIBUTE_GCC_PREFIX_HEADER
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/archutils/Darwin/StepMania.pch")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES XCODE_ATTRIBUTE_GCC_ENABLE_CPP_EXCEPTIONS "NO")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES XCODE_ATTRIBUTE_LIBRARY_SEARCH_PATHS
|
||||
"${SM_XCODE_DIR}/ffmpeg/lib ${SM_XCODE_DIR}/Libraries"
|
||||
)
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES XCODE_ATTRIBUTE_OTHER_LDFLAGS "-lbz2")
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" _XOPEN_SOURCE)
|
||||
|
||||
# Add the ability to copy the resource file.
|
||||
add_custom_command(TARGET "${SM_EXE_NAME}"
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory "$<TARGET_FILE_DIR:StepMania>/../Resources"
|
||||
)
|
||||
add_custom_command(TARGET "${SM_EXE_NAME}"
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy "${SM_XCODE_DIR}/smicon.icns" "$<TARGET_FILE_DIR:StepMania>/../Resources/"
|
||||
)
|
||||
add_custom_command(TARGET "${SM_EXE_NAME}"
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy "${SM_XCODE_DIR}/Hardware.plist" "$<TARGET_FILE_DIR:StepMania>/../Resources/"
|
||||
)
|
||||
else() # Linux
|
||||
# TODO: Have this compile definition be used all over. Currently fixed for Windows and Mac, but in headers.
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" "${ENDIANNESS}")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${SM_ROOT_DIR}")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELEASE "${SM_ROOT_DIR}")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY_DEBUG "${SM_ROOT_DIR}")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY_MINSIZEREL "${SM_ROOT_DIR}")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO "${SM_ROOT_DIR}")
|
||||
|
||||
if (${HAS_PTHREAD})
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" HAVE_LIBPTHREAD)
|
||||
endif()
|
||||
if (${HAS_FFMPEG})
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" HAVE_FFMPEG)
|
||||
endif()
|
||||
if (BSD)
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" BSD)
|
||||
endif()
|
||||
|
||||
if (GTK2_FOUND)
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" HAVE_GTK)
|
||||
endif()
|
||||
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" UNIX)
|
||||
if("${CMAKE_SYSTEM}" MATCHES "Linux")
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" LINUX)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set_property(TARGET "${SM_EXE_NAME}" PROPERTY FOLDER "Internal Libraries")
|
||||
|
||||
list(APPEND SMDATA_LINK_LIB
|
||||
"lua-5.1"
|
||||
"tomcrypt"
|
||||
"tommath"
|
||||
"zlib"
|
||||
"jsoncpp"
|
||||
"mad"
|
||||
"png"
|
||||
"glew"
|
||||
"pcre"
|
||||
"jpeg"
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
list(APPEND SMDATA_LINK_LIB
|
||||
# The misc libraries are here.
|
||||
"${LIB_SWSCALE}"
|
||||
"${LIB_AVCODEC}"
|
||||
"${LIB_AVFORMAT}"
|
||||
"${LIB_AVUTIL}"
|
||||
"libmad.lib"
|
||||
"ogg_static.lib"
|
||||
"vorbis_static.lib"
|
||||
"vorbisfile_static.lib"
|
||||
"dbghelp.lib"
|
||||
"setupapi.lib"
|
||||
"hid.lib"
|
||||
)
|
||||
# Mad is not built in Windows.
|
||||
list(REMOVE_ITEM SMDATA_LINK_LIB "mad")
|
||||
|
||||
get_filename_component(DIRECTX_LIBRARY_DIR "${DIRECTX_LIBRARIES}" DIRECTORY)
|
||||
|
||||
sm_add_link_flag("${SM_EXE_NAME}" "/LIBPATH:\"${DIRECTX_LIBRARY_DIR}\"")
|
||||
sm_add_link_flag("${SM_EXE_NAME}" "/LIBPATH:\"${SM_EXTERN_DIR}/ffmpeg/lib\"")
|
||||
sm_add_link_flag("${SM_EXE_NAME}" "/LIBPATH:\"${SM_EXTERN_DIR}/libjpeg\"")
|
||||
sm_add_link_flag("${SM_EXE_NAME}" "/LIBPATH:\"${SM_EXTERN_DIR}/mad-0.15.1b/msvc++/Release\"")
|
||||
sm_add_link_flag("${SM_EXE_NAME}" "/LIBPATH:\"${SM_EXTERN_DIR}/vorbis/win32\"")
|
||||
sm_add_link_flag("${SM_EXE_NAME}" "/LIBPATH:\"${SM_SRC_DIR}/archutils/Win32/ddk\"")
|
||||
sm_add_link_flag("${SM_EXE_NAME}" "/ERRORREPORT:SEND")
|
||||
sm_add_link_flag("${SM_EXE_NAME}" "/MAPINFO:EXPORTS")
|
||||
sm_add_link_flag("${SM_EXE_NAME}" "/SAFESEH:NO")
|
||||
sm_add_link_flag("${SM_EXE_NAME}" "/NOLOGO")
|
||||
sm_add_link_flag("${SM_EXE_NAME}" "/MAP")
|
||||
sm_add_link_flag("${SM_EXE_NAME}" "/NODEFAULTLIB:wininet.lib")
|
||||
sm_add_link_flag("${SM_EXE_NAME}" "/NODEFAULTLIB:msimg32.lib")
|
||||
sm_add_link_flag("${SM_EXE_NAME}" "/NODEFAULTLIB:libci.lib")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES LINK_FLAGS_DEBUG "/NODEFAULTLIB:msvcrt.lib")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS")
|
||||
set_target_properties("${SM_EXE_NAME}" PROPERTIES LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:WINDOWS")
|
||||
elseif(APPLE)
|
||||
# The following were removed from SMDATA_LINK_LIB to "match" StepMania's pbxproj.
|
||||
# ${MAC_FRAME_APPKIT}
|
||||
# ${MAC_FRAME_FOUNDATION}
|
||||
# "ffmpeg"
|
||||
|
||||
# TODO: Adjust the target when StepMania-Data returns.
|
||||
# TODO: Find a cleaner way besides just setting to wipe the slate clean.
|
||||
set(SMDATA_LINK_LIB
|
||||
${MAC_FRAME_ACCELERATE}
|
||||
${MAC_FRAME_CARBON}
|
||||
${MAC_FRAME_COCOA}
|
||||
${MAC_FRAME_IOKIT}
|
||||
${MAC_FRAME_QUICKTIME}
|
||||
${MAC_FRAME_OPENGL}
|
||||
${MAC_FRAME_COREFOUNDATION}
|
||||
${MAC_FRAME_AUDIOTOOLBOX}
|
||||
${MAC_FRAME_AUDIOUNIT}
|
||||
${MAC_FRAME_COREAUDIO}
|
||||
${MAC_FRAME_CORESERVICES}
|
||||
"ogg"
|
||||
"theora"
|
||||
"vorbis"
|
||||
"lua-5.1"
|
||||
"tomcrypt"
|
||||
"tommath"
|
||||
"zlib"
|
||||
"jsoncpp"
|
||||
"mad"
|
||||
"png"
|
||||
"glew"
|
||||
"pcre"
|
||||
"jpeg"
|
||||
"avcodec"
|
||||
"avdevice"
|
||||
"avfilter"
|
||||
"avformat"
|
||||
"avutil"
|
||||
"swresample"
|
||||
"swscale"
|
||||
)
|
||||
else() # Unix / Linux
|
||||
# TODO: Remember to find and locate the zip archive files.
|
||||
list(APPEND SMDATA_LINK_LIB
|
||||
"${SM_EXTERN_DIR}/ffmpeg-linux/src/ffmpeg-build/libavformat/libavformat.a"
|
||||
"${SM_EXTERN_DIR}/ffmpeg-linux/src/ffmpeg-build/libavcodec/libavcodec.a"
|
||||
"${SM_EXTERN_DIR}/ffmpeg-linux/src/ffmpeg-build/libswscale/libswscale.a"
|
||||
"${SM_EXTERN_DIR}/ffmpeg-linux/src/ffmpeg-build/libavutil/libavutil.a"
|
||||
"${DL_LIBRARY}"
|
||||
)
|
||||
|
||||
if(HAS_OGG)
|
||||
list(APPEND SMDATA_LINK_LIB
|
||||
"${VORBISFILE_LIBRARY}"
|
||||
"${VORBIS_LIBRARY}"
|
||||
"${OGG_LIBRARY}"
|
||||
)
|
||||
endif()
|
||||
|
||||
if(HAS_MP3)
|
||||
list(APPEND SMDATA_LINK_LIB
|
||||
"${LIBMAD_LIBRARY}"
|
||||
)
|
||||
endif()
|
||||
|
||||
list(APPEND SMDATA_LINK_LIB
|
||||
"${OPENGL_LIBRARY}"
|
||||
)
|
||||
|
||||
if(GTK2_FOUND)
|
||||
list(APPEND SMDATA_LINK_LIB
|
||||
"${GTK2_LIBRARIES}"
|
||||
)
|
||||
endif()
|
||||
|
||||
list(APPEND SMDATA_LINK_LIB
|
||||
"${BZIP2_LIBRARIES}"
|
||||
"${ZLIB_LIBRARIES}"
|
||||
"${CMAKE_THREAD_LIBS_INIT}"
|
||||
)
|
||||
|
||||
if (HAS_ALSA)
|
||||
list(APPEND SMDATA_LINK_LIB ${ALSA_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if (HAS_JACK)
|
||||
list(APPEND SMDATA_LINK_LIB ${JACK_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if (HAS_OSS)
|
||||
# No mention of OSS libraries.
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" "HAVE_OSS_VERSION=1")
|
||||
endif()
|
||||
|
||||
if (HAS_PULSE)
|
||||
list(APPEND SMDATA_LINK_LIB ${PULSEAUDIO_LIBRARY})
|
||||
# PACKAGE_NAME and PACKAGE_VERSION are only used in this scenario. Why is not clear.
|
||||
# TODO: Remove this silliness.
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" PACKAGE_NAME="StepMania")
|
||||
set(PACKAGE_VERSION "${SM_VERSION_MAJOR}.${SM_VERSION_MINOR}")
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" PACKAGE_VERSION="${PACKAGE_VERSION}")
|
||||
endif()
|
||||
|
||||
if(X11_FOUND)
|
||||
list(APPEND SMDATA_LINK_LIB ${X11_LIBRARIES})
|
||||
endif()
|
||||
|
||||
list(APPEND SMDATA_LINK_LIB
|
||||
${XRANDR_LIBRARIES}
|
||||
)
|
||||
list(REMOVE_ITEM SMDATA_LINK_LIB "zlib")
|
||||
endif()
|
||||
|
||||
target_link_libraries("${SM_EXE_NAME}" ${SMDATA_LINK_LIB})
|
||||
|
||||
list(APPEND SM_INCLUDE_DIRS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
"${SM_EXTERN_DIR}/vorbis"
|
||||
)
|
||||
if(NOT APPLE)
|
||||
list(APPEND SM_INCLUDE_DIRS
|
||||
"${SM_EXTERN_DIR}/glew-1.5.8/include"
|
||||
"${SM_EXTERN_DIR}/jsoncpp/include"
|
||||
"${SM_EXTERN_DIR}/libjpeg"
|
||||
"${SM_EXTERN_DIR}/zlib"
|
||||
)
|
||||
if(MSVC)
|
||||
list(APPEND SM_INCLUDE_DIRS
|
||||
"${SM_EXTERN_DIR}/ffmpeg/include"
|
||||
)
|
||||
else()
|
||||
if (HAS_FFMPEG)
|
||||
add_dependencies("${SM_EXE_NAME}" "ffmpeg")
|
||||
list(APPEND SM_INCLUDE_DIRS
|
||||
"${SM_EXTERN_DIR}/ffmpeg-linux/src/ffmpeg"
|
||||
"${SM_EXTERN_DIR}/ffmpeg-linux/src/ffmpeg-build"
|
||||
)
|
||||
endif()
|
||||
if (HAS_GTK2)
|
||||
list(APPEND SM_INCLUDE_DIRS "${GTK2_INCLUDE_DIRS}")
|
||||
endif()
|
||||
if (X11_FOUND)
|
||||
list(APPEND SM_INCLUDE_DIRS "${X11_INCLUDE_DIR}")
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
list(APPEND SM_INCLUDE_DIRS
|
||||
"${SM_XCODE_DIR}/ffmpeg/include"
|
||||
"archutils/Unix"
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND SM_INCLUDE_DIRS
|
||||
${DIRECTX_INCLUDE_DIR}
|
||||
)
|
||||
else()
|
||||
list(APPEND SM_INCLUDE_DIRS
|
||||
"${SM_EXTERN_DIR}/libpng/include"
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories("${SM_EXE_NAME}" PUBLIC ${SM_INCLUDE_DIRS})
|
||||
|
||||
if(WIN32)
|
||||
# TODO: Look forward to 64-bit builds. Also, Find a way to not need to hardcode this.
|
||||
set(SM_INSTALL_DESTINATION "C:/Program Files (x86)")
|
||||
elseif(APPLE)
|
||||
# TODO: Confirm if anything special is needed. Most Mac apps are just portable .app folders.
|
||||
set(SM_INSTALL_DESTINATION "")
|
||||
else()
|
||||
# TODO: Allow for a more flexible system. Good luck convincing old users of that.
|
||||
set(SM_INSTALL_DESTINATION "/opt/stepmania-5.0")
|
||||
endif()
|
||||
|
||||
if(NOT APPLE)
|
||||
install(TARGETS "${SM_EXE_NAME}" DESTINATION "${SM_INSTALL_DESTINATION}")
|
||||
if (UNIX OR LINUX)
|
||||
install(FILES "${SM_ROOT_DIR}/GtkModule.so" LIBRARY DESTINATION "${SM_INSTALL_DESTINATION}" OPTIONAL)
|
||||
endif()
|
||||
install(DIRECTORY "${SM_ROOT_DIR}/Announcers" DESTINATION "${SM_INSTALL_DESTINATION}")
|
||||
install(DIRECTORY "${SM_ROOT_DIR}/BGAnimations" DESTINATION "${SM_INSTALL_DESTINATION}")
|
||||
install(DIRECTORY "${SM_ROOT_DIR}/Themes" DESTINATION "${SM_INSTALL_DESTINATION}")
|
||||
install(DIRECTORY "${SM_ROOT_DIR}/Characters" DESTINATION "${SM_INSTALL_DESTINATION}")
|
||||
install(DIRECTORY "${SM_ROOT_DIR}/Scripts" DESTINATION "${SM_INSTALL_DESTINATION}")
|
||||
install(DIRECTORY "${SM_ROOT_DIR}/Courses" DESTINATION "${SM_INSTALL_DESTINATION}")
|
||||
install(DIRECTORY "${SM_ROOT_DIR}/BackgroundEffects" DESTINATION "${SM_INSTALL_DESTINATION}")
|
||||
install(DIRECTORY "${SM_ROOT_DIR}/Data" DESTINATION "${SM_INSTALL_DESTINATION}")
|
||||
install(DIRECTORY "${SM_ROOT_DIR}/BackgroundTransitions" DESTINATION "${SM_INSTALL_DESTINATION}")
|
||||
install(DIRECTORY "${SM_ROOT_DIR}/Docs" DESTINATION "${SM_INSTALL_DESTINATION}")
|
||||
install(DIRECTORY "${SM_ROOT_DIR}/NoteSkins" DESTINATION "${SM_INSTALL_DESTINATION}")
|
||||
if (NOT SM_INSTALL_DESTINATION)
|
||||
install(DIRECTORY "${SM_ROOT_DIR}/Songs/StepMania 5" DESTINATION "Songs")
|
||||
install(FILES "${SM_ROOT_DIR}/Songs/instructions.txt" DESTINATION "Songs")
|
||||
else()
|
||||
install(DIRECTORY "${SM_ROOT_DIR}/Songs/StepMania 5" DESTINATION "${SM_INSTALL_DESTINATION}/Songs")
|
||||
install(FILES "${SM_ROOT_DIR}/Songs/instructions.txt" DESTINATION "${SM_INSTALL_DESTINATION}/Songs")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
+2
-2
@@ -1044,8 +1044,8 @@ LuaFunction( ProductFamily, (RString) PRODUCT_FAMILY );
|
||||
LuaFunction( ProductVersion, (RString) product_version );
|
||||
LuaFunction( ProductID, (RString) PRODUCT_ID );
|
||||
|
||||
extern const char *const version_date;
|
||||
extern const char *const version_time;
|
||||
extern char const * const version_date;
|
||||
extern char const * const version_time;
|
||||
LuaFunction( VersionDate, (RString) version_date );
|
||||
LuaFunction( VersionTime, (RString) version_time );
|
||||
|
||||
|
||||
+1
-1
@@ -264,7 +264,7 @@ inline int SafeFArg(lua_State* L, int index, RString const& err, int def)
|
||||
{
|
||||
if(lua_isnumber(L, index))
|
||||
{
|
||||
return lua_tonumber(L, index);
|
||||
return static_cast<int>(lua_tonumber(L, index));
|
||||
}
|
||||
LuaHelpers::ReportScriptError(err);
|
||||
return def;
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
#include "global.h"
|
||||
#include "StepMania.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
return sm_main(argc, argv);
|
||||
}
|
||||
|
||||
/*
|
||||
* (c) 2014 Jason Felds
|
||||
* All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, and/or sell copies of the Software, and to permit persons to
|
||||
* whom the Software is furnished to do so, provided that the above
|
||||
* copyright notice(s) and this permission notice appear in all copies of
|
||||
* the Software and that both the above copyright notice(s) and this
|
||||
* permission notice appear in supporting documentation.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
||||
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
|
||||
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
|
||||
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
@@ -743,6 +743,8 @@ if !WITHOUT_GLES2
|
||||
main_SOURCES += RageDisplay_GLES2.cpp RageDisplay_GLES2.h
|
||||
endif
|
||||
|
||||
main_SOURCES += Main.cpp
|
||||
|
||||
main_LDADD = \
|
||||
$(VIDEO_LIBS) \
|
||||
$(AUDIO_LIBS) \
|
||||
|
||||
@@ -9,7 +9,11 @@
|
||||
#if defined(_WINDOWS)
|
||||
#include "zlib.h"
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(BINARY_ZDL)
|
||||
#pragma comment(lib, "zdll.lib")
|
||||
// #else
|
||||
// #pragma comment(lib, "zlib.lib")
|
||||
#endif
|
||||
#endif
|
||||
#elif defined(MACOSX)
|
||||
#include "zlib.h"
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma comment(lib, OGG_LIB_DIR "ogg_static.lib")
|
||||
#pragma comment(lib, OGG_LIB_DIR "vorbis_static.lib")
|
||||
#pragma comment(lib, OGG_LIB_DIR "vorbisfile_static.lib")
|
||||
#pragma comment(lib, "ogg_static.lib")
|
||||
#pragma comment(lib, "vorbis_static.lib")
|
||||
#pragma comment(lib, "vorbisfile_static.lib")
|
||||
#endif // _MSC_VER
|
||||
|
||||
#include <cstring>
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include "../extern/libpng/include/png.h"
|
||||
#if defined(_BINARY_PNG)
|
||||
#pragma comment(lib, "libpng.lib")
|
||||
#endif
|
||||
#pragma warning(disable: 4611) /* interaction between '_setjmp' and C++ object destruction is non-portable */
|
||||
#else
|
||||
#include <png.h>
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include "../extern/libpng/include/png.h"
|
||||
#if defined(_BINARY_PNG)
|
||||
#pragma comment(lib, "libpng.lib")
|
||||
#endif
|
||||
#pragma warning(disable: 4611) /* interaction between '_setjmp' and C++ object destruction is non-portable */
|
||||
#else
|
||||
#include <png.h>
|
||||
|
||||
@@ -1928,6 +1928,10 @@
|
||||
RelativePath="global.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="Main.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="ProductInfo.h"
|
||||
>
|
||||
|
||||
@@ -531,6 +531,7 @@ cl /Zl /nologo /c verstub.cpp /Fo$(IntDir)</Command>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release-SSE2|Win32'">Create</PrecompiledHeader>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Main.cpp" />
|
||||
<ClCompile Include="SpecialFiles.cpp" />
|
||||
<ClCompile Include="StepMania.cpp" />
|
||||
<ClCompile Include="arch\RageDriver.cpp" />
|
||||
|
||||
@@ -630,6 +630,9 @@
|
||||
<ClCompile Include="global.cpp">
|
||||
<Filter>StepMania</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Main.cpp">
|
||||
<Filter>StepMania</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="SpecialFiles.cpp">
|
||||
<Filter>StepMania</Filter>
|
||||
</ClCompile>
|
||||
|
||||
@@ -557,6 +557,7 @@ cl /Zl /nologo /c verstub.cpp /Fo"$(IntDir)"</Command>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release-SSE2|Win32'">Create</PrecompiledHeader>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Main.cpp" />
|
||||
<ClCompile Include="SpecialFiles.cpp" />
|
||||
<ClCompile Include="StepMania.cpp" />
|
||||
<ClCompile Include="arch\RageDriver.cpp" />
|
||||
|
||||
@@ -612,6 +612,9 @@
|
||||
<ClCompile Include="global.cpp">
|
||||
<Filter>StepMania</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Main.cpp">
|
||||
<Filter>StepMania</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="SpecialFiles.cpp">
|
||||
<Filter>StepMania</Filter>
|
||||
</ClCompile>
|
||||
|
||||
@@ -556,6 +556,7 @@ cl /Zl /nologo /c verstub.cpp /Fo"$(IntDir)"</Command>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release-SSE2|Win32'">Create</PrecompiledHeader>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Main.cpp" />
|
||||
<ClCompile Include="SpecialFiles.cpp" />
|
||||
<ClCompile Include="StepMania.cpp" />
|
||||
<ClCompile Include="arch\RageDriver.cpp" />
|
||||
|
||||
@@ -630,6 +630,9 @@
|
||||
<ClCompile Include="global.cpp">
|
||||
<Filter>StepMania</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Main.cpp">
|
||||
<Filter>StepMania></Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="SpecialFiles.cpp">
|
||||
<Filter>StepMania</Filter>
|
||||
</ClCompile>
|
||||
|
||||
+1
-1
@@ -957,7 +957,7 @@ static void ApplyLogPreferences()
|
||||
|
||||
static LocalizedString COULDNT_OPEN_LOADING_WINDOW( "LoadingWindow", "Couldn't open any loading windows." );
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
int sm_main(int argc, char* argv[])
|
||||
{
|
||||
RageThreadRegister thread( "Main thread" );
|
||||
RageException::SetCleanupHandler( HandleException );
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ struct Game;
|
||||
class RageTimer;
|
||||
class VideoModeParams;
|
||||
|
||||
int main( int argc, char* argv[] );
|
||||
int sm_main( int argc, char* argv[] );
|
||||
|
||||
/** @brief Utility functions for controlling the whole game. */
|
||||
namespace StepMania
|
||||
|
||||
@@ -266,7 +266,7 @@ struct TickcountSegment : public TimingSegment
|
||||
void SetTicks( int iTicks ) { m_iTicksPerBeat = iTicks; }
|
||||
|
||||
RString ToString( int dec ) const;
|
||||
vector<float> GetValues() const { return vector<float>(1, GetTicks()); }
|
||||
vector<float> GetValues() const { return vector<float>(1, GetTicks() * 1.f); }
|
||||
|
||||
bool operator==( const TickcountSegment &other ) const
|
||||
{
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
- (void) startGame:(id)sender
|
||||
{
|
||||
// Hand off to main application code.
|
||||
exit( SM_main(m_iArgc, m_pArgv) );
|
||||
exit( sm_main(m_iArgc, m_pArgv) );
|
||||
}
|
||||
|
||||
/* From here:
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
#define ARCH_SETUP_DARWIN_H
|
||||
|
||||
// Replace the main function.
|
||||
extern "C" int SM_main( int argc, char *argv[] );
|
||||
#define main(x,y) SM_main(x,y)
|
||||
extern "C" int sm_main( int argc, char *argv[] );
|
||||
|
||||
#define HAVE_VERSION_INFO
|
||||
#define HAVE_CXA_DEMANGLE
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include "ver.h"
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma comment(lib, "archutils/Win32/ddk/dbghelp.lib")
|
||||
#pragma comment(lib, "dbghelp.lib")
|
||||
#endif
|
||||
|
||||
// XXX: What happens when we *don't* have version info? Does that ever actually happen?
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
#include "archutils/Win32/ErrorStrings.h"
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma comment(lib, "archutils/Win32/ddk/setupapi.lib")
|
||||
#pragma comment(lib, "archutils/Win32/ddk/hid.lib")
|
||||
#pragma comment(lib, "setupapi.lib")
|
||||
#pragma comment(lib, "hid.lib")
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
|
||||
@@ -172,8 +172,6 @@ inline long int lrintf( float f )
|
||||
#define ENDIAN_LITTLE
|
||||
#endif
|
||||
|
||||
#define OGG_LIB_DIR "../extern/vorbis/win32/"
|
||||
|
||||
#if defined(__GNUC__) // It might be MinGW or Cygwin(?)
|
||||
#include "archutils/Common/gcc_byte_swaps.h"
|
||||
#else // XXX: Should we test for MSVC?
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
# endif
|
||||
#elif defined(MACOSX)
|
||||
# include "archutils/Darwin/Crash.h"
|
||||
# include <stdlib.h>
|
||||
# include <unistd.h>
|
||||
using CrashHandler::IsDebuggerPresent;
|
||||
using CrashHandler::DebugBreak;
|
||||
#else
|
||||
|
||||
@@ -1,14 +1,7 @@
|
||||
#ifndef STEPMANIA_VER_H
|
||||
#define STEPMANIA_VER_H
|
||||
|
||||
|
||||
|
||||
// HACK: The MSVC project doesn't generate this yet
|
||||
#if defined(_MSC_VER) || defined(__MACOSX__)
|
||||
#define product_version "5.0-UNKNOWN"
|
||||
#else
|
||||
extern const char *const product_version;
|
||||
#endif
|
||||
|
||||
// XXX: These names are misnomers. This is actually the BUILD number, time and date.
|
||||
// NOTE: In GNU toolchain these are defined in ver.cpp. In MSVC these are defined in archutils/Win32/verinc.c I think. Why? I don't know and I don't have MSVC. --root
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
source_group("" FILES Main.cpp)
|
||||
|
||||
configure_file(
|
||||
"version.hpp.in"
|
||||
"${PROJECT_BINARY_DIR}/version.hpp"
|
||||
)
|
||||
|
||||
include_directories(${PROJECT_BINARY_DIR})
|
||||
|
||||
add_executable("VersionUpdater" Main.cpp "${PROJECT_BINARY_DIR}/version.hpp")
|
||||
|
||||
set_property(TARGET "VersionUpdater" PROPERTY FOLDER "Internal Libraries")
|
||||
|
||||
if(MSVC)
|
||||
sm_add_compile_definition("VersionUpdater" _CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* This program was placed in the public domain by Avery,
|
||||
* with some ideas implemented by AJ. Any C++ improvements
|
||||
* are made by others.
|
||||
*/
|
||||
|
||||
#include <ctime>
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include "version.hpp"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
if (argc < 2) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::ifstream versionReadFile("version.bin", std::ios::in);
|
||||
|
||||
unsigned long build = 0;
|
||||
|
||||
// try to read the last version seen.
|
||||
if (versionReadFile.is_open()) {
|
||||
std::string line;
|
||||
std::getline(versionReadFile, line);
|
||||
if (!line.empty()) {
|
||||
// TODO: Use stoul when C++11 is utilized.
|
||||
build = std::atol(line.c_str());
|
||||
}
|
||||
|
||||
versionReadFile.close();
|
||||
}
|
||||
|
||||
// increment the build number and write it.
|
||||
++build;
|
||||
|
||||
std::ofstream versionWriteFile("version.bin", std::ios::out);
|
||||
|
||||
if (versionWriteFile.is_open()) {
|
||||
versionWriteFile << build;
|
||||
versionWriteFile.close();
|
||||
}
|
||||
|
||||
char strdate[10];
|
||||
char strtime[64];
|
||||
time_t tm;
|
||||
|
||||
std::time(&tm);
|
||||
|
||||
std::strftime(strdate, 15, "%Y%m%d", std::localtime(&tm));
|
||||
std::strftime(strtime, 64, "%H:%M:%S %Z", std::localtime(&tm));
|
||||
|
||||
// zero out the newline.
|
||||
strtime[sizeof(strtime) - 1] = 0;
|
||||
|
||||
std::ofstream versionDataFile(argv[1], std::ios::out);
|
||||
if (versionDataFile.is_open()) {
|
||||
versionDataFile << "extern unsigned long const version_num = " << build << ";" << std::endl;
|
||||
versionDataFile << "extern int const sm_version_major = " << smVersionMajor << ";" << std::endl;
|
||||
versionDataFile << "extern int const sm_version_minor = " << smVersionMinor << ";" << std::endl;
|
||||
versionDataFile << "extern int const sm_version_patch = " << smVersionPatch << ";" << std::endl;
|
||||
versionDataFile << "extern char const * const sm_version_git_hash = \"" << smVersionGitHash << "\";" << std::endl;
|
||||
versionDataFile << "extern char const * const sm_version_traditional = \"" << smVersionTraditional << "\";" << std::endl;
|
||||
versionDataFile << "extern char const * const version_date = \"" << strdate << "\";" << std::endl;
|
||||
versionDataFile << "extern char const * const version_time = \"" << strtime << "\";" << std::endl;
|
||||
versionDataFile << "extern char const * const product_version = \"" << smVersionFull << "\";" << std::endl;
|
||||
versionDataFile.close();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef VERSION_UPDATER_HPP_
|
||||
#define VERSION_UPDATER_HPP_
|
||||
|
||||
int smVersionMajor = @SM_VERSION_MAJOR@;
|
||||
int smVersionMinor = @SM_VERSION_MINOR@;
|
||||
int smVersionPatch = @SM_VERSION_PATCH@;
|
||||
char const * const smVersionGitHash = "@SM_VERSION_GIT_HASH@";
|
||||
char const * const smVersionFull = "@SM_VERSION_FULL@";
|
||||
char const * const smVersionTraditional = "@SM_VERSION_TRADITIONAL@";
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user