Clean up build system
This commit is contained in:
+12
-51
@@ -11,19 +11,12 @@ cmake_install.cmake
|
|||||||
CPackConfig.cmake
|
CPackConfig.cmake
|
||||||
CPackSourceConfig.cmake
|
CPackSourceConfig.cmake
|
||||||
# The following are generated from CMake, and thus should be stopped.
|
# The following are generated from CMake, and thus should be stopped.
|
||||||
.codelite/
|
|
||||||
ITGmania.project
|
ITGmania.project
|
||||||
ITGmania.workspace
|
ITGmania.workspace
|
||||||
version.hpp
|
Build/
|
||||||
Build/*
|
!Build/INSTALL.md
|
||||||
Build/*/*
|
!Build/README.md
|
||||||
Debug/
|
|
||||||
Release/
|
|
||||||
Contents/
|
|
||||||
verdata.*
|
verdata.*
|
||||||
ITGmania-debug
|
|
||||||
itgmania-debug
|
|
||||||
src/version_updater/VersionUpdater
|
|
||||||
src/generated
|
src/generated
|
||||||
extern/mad-0.15.1b/config.h
|
extern/mad-0.15.1b/config.h
|
||||||
extern/libjpeg/jconfig.h
|
extern/libjpeg/jconfig.h
|
||||||
@@ -35,21 +28,14 @@ ___*
|
|||||||
*.sublime-project
|
*.sublime-project
|
||||||
*.sublime-workspace
|
*.sublime-workspace
|
||||||
*.old
|
*.old
|
||||||
|
.codelite/
|
||||||
|
.vscode/
|
||||||
|
|
||||||
# Repository Files
|
# Patch Files
|
||||||
*.orig
|
|
||||||
.git
|
|
||||||
.hg
|
|
||||||
.hgignore
|
|
||||||
.hgtags
|
|
||||||
.svn
|
|
||||||
.cvsignore
|
|
||||||
*.diff
|
*.diff
|
||||||
|
*.orig
|
||||||
*.patch
|
*.patch
|
||||||
*_BACKUP_*
|
*.rej
|
||||||
*_BASE_*
|
|
||||||
*_LOCAL_*
|
|
||||||
*_REMOTE_*
|
|
||||||
|
|
||||||
# Mac General Files
|
# Mac General Files
|
||||||
*.app
|
*.app
|
||||||
@@ -72,28 +58,16 @@ Thumbs.db
|
|||||||
*.exe
|
*.exe
|
||||||
*.dll
|
*.dll
|
||||||
!extern/ffmpeg-w32/*/*.dll
|
!extern/ffmpeg-w32/*/*.dll
|
||||||
nsis_strings_temp.inc
|
|
||||||
|
|
||||||
# Linux General Files
|
# Linux General Files
|
||||||
.dirstamp
|
|
||||||
itgmania
|
itgmania
|
||||||
config.status
|
itgmania-debug
|
||||||
_build/*
|
itgmania-min-size
|
||||||
aclocal.m4
|
itgmania-release-symbols
|
||||||
autoconf/*
|
*.core
|
||||||
autom4te.cache/*
|
|
||||||
ITGmania
|
|
||||||
core
|
|
||||||
|
|
||||||
# Version control specific.
|
|
||||||
*.BACKUP.*
|
|
||||||
*.BASE.*
|
|
||||||
*.LOCAL.*
|
|
||||||
*.REMOTE.*
|
|
||||||
|
|
||||||
# StepMania Specific
|
# StepMania Specific
|
||||||
*.smzip
|
*.smzip
|
||||||
ver.cpp
|
|
||||||
gitversion.h
|
gitversion.h
|
||||||
Cache/
|
Cache/
|
||||||
Save/
|
Save/
|
||||||
@@ -106,16 +80,6 @@ Data/UserPrefs
|
|||||||
Data/uPrefs
|
Data/uPrefs
|
||||||
Data/GamePrefs/*.cfg
|
Data/GamePrefs/*.cfg
|
||||||
Data/Static.ini
|
Data/Static.ini
|
||||||
src/version.bin
|
|
||||||
src/verstub.cpp
|
|
||||||
src/build-*
|
|
||||||
src/Release-*
|
|
||||||
src/libtomcrypt/build-*
|
|
||||||
src/libtomcrypt/Release-*
|
|
||||||
src/libtomcrypt/Debug
|
|
||||||
src/libtommath/build-*
|
|
||||||
src/libtommath/Release-*
|
|
||||||
src/libtommath/Debug
|
|
||||||
src/*.so
|
src/*.so
|
||||||
Data/SpeedMods.txt
|
Data/SpeedMods.txt
|
||||||
crashinfo.txt
|
crashinfo.txt
|
||||||
@@ -124,8 +88,6 @@ Program/ITGmania*.lib
|
|||||||
|
|
||||||
# Unknown File Types
|
# Unknown File Types
|
||||||
*.dia
|
*.dia
|
||||||
.deps
|
|
||||||
*.rej
|
|
||||||
tests/*.err
|
tests/*.err
|
||||||
*.ncb
|
*.ncb
|
||||||
*.tlog
|
*.tlog
|
||||||
@@ -143,4 +105,3 @@ BuildLog.htm
|
|||||||
*.swp
|
*.swp
|
||||||
*.pc
|
*.pc
|
||||||
*.d
|
*.d
|
||||||
.vscode/
|
|
||||||
|
|||||||
@@ -17,19 +17,13 @@ if(NOT (ret STREQUAL "0"))
|
|||||||
"git was not found on your path. If you collect bug reports, please add git to your path and rerun cmake."
|
"git was not found on your path. If you collect bug reports, please add git to your path and rerun cmake."
|
||||||
)
|
)
|
||||||
set(SM_VERSION_GIT_HASH "UNKNOWN")
|
set(SM_VERSION_GIT_HASH "UNKNOWN")
|
||||||
set(SM_VERSION_FULL
|
|
||||||
"${SM_VERSION_MAJOR}.${SM_VERSION_MINOR}.${SM_VERSION_PATCH}-${SM_VERSION_GIT_HASH}")
|
|
||||||
set(SM_VERSION_GIT
|
set(SM_VERSION_GIT
|
||||||
"${SM_VERSION_MAJOR}.${SM_VERSION_MINOR}.${SM_VERSION_PATCH}-${SM_VERSION_GIT_HASH}")
|
"${SM_VERSION_MAJOR}.${SM_VERSION_MINOR}.${SM_VERSION_PATCH}-${SM_VERSION_GIT_HASH}")
|
||||||
else()
|
else()
|
||||||
if(WITH_FULL_RELEASE)
|
if(WITH_FULL_RELEASE)
|
||||||
set(SM_VERSION_FULL
|
|
||||||
"${SM_VERSION_MAJOR}.${SM_VERSION_MINOR}.${SM_VERSION_PATCH}")
|
|
||||||
set(SM_VERSION_GIT
|
set(SM_VERSION_GIT
|
||||||
"${SM_VERSION_MAJOR}.${SM_VERSION_MINOR}.${SM_VERSION_PATCH}")
|
"${SM_VERSION_MAJOR}.${SM_VERSION_MINOR}.${SM_VERSION_PATCH}")
|
||||||
else()
|
else()
|
||||||
set(SM_VERSION_FULL
|
|
||||||
"${SM_VERSION_MAJOR}.${SM_VERSION_MINOR}.${SM_VERSION_PATCH}-git-${SM_VERSION_GIT_HASH}")
|
|
||||||
set(SM_VERSION_GIT
|
set(SM_VERSION_GIT
|
||||||
"${SM_VERSION_MAJOR}.${SM_VERSION_MINOR}.${SM_VERSION_PATCH}-git-${SM_VERSION_GIT_HASH}")
|
"${SM_VERSION_MAJOR}.${SM_VERSION_MINOR}.${SM_VERSION_PATCH}-git-${SM_VERSION_GIT_HASH}")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Vendored
+3
-4
@@ -2,11 +2,10 @@ if(WITH_SYSTEM_JSONCPP)
|
|||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
pkg_check_modules(JSONCPP REQUIRED jsoncpp)
|
pkg_check_modules(JSONCPP REQUIRED jsoncpp)
|
||||||
else()
|
else()
|
||||||
list(APPEND JSON_SRC "jsoncpp/jsoncpp.cpp")
|
set(JSON_SRC "jsoncpp/jsoncpp.cpp")
|
||||||
|
|
||||||
list(APPEND JSON_HPP
|
set(JSON_HPP "jsoncpp/json/json-forwards.h"
|
||||||
"jsoncpp/json/json-forwards.h"
|
"jsoncpp/json/json.h")
|
||||||
"jsoncpp/json/json.h")
|
|
||||||
|
|
||||||
source_group("" FILES ${JSON_SRC} ${JSON_HPP})
|
source_group("" FILES ${JSON_SRC} ${JSON_HPP})
|
||||||
|
|
||||||
|
|||||||
Vendored
+3
-3
@@ -1,9 +1,9 @@
|
|||||||
list(APPEND MINIZ_SRC "miniz/miniz.c")
|
set(MINIZ_SRC "miniz/miniz.c")
|
||||||
list(APPEND MINIZ_HPP "miniz/miniz.h")
|
set(MINIZ_HPP "miniz/miniz.h")
|
||||||
|
|
||||||
source_group("" FILES ${MINIZ_SRC} ${MINIZ_HPP})
|
source_group("" FILES ${MINIZ_SRC} ${MINIZ_HPP})
|
||||||
|
|
||||||
add_library("miniz" ${MINIZ_SRC} ${MINIZ_HPP})
|
add_library("miniz" STATIC ${MINIZ_SRC} ${MINIZ_HPP})
|
||||||
|
|
||||||
set_property(TARGET "miniz" PROPERTY FOLDER "External Libraries")
|
set_property(TARGET "miniz" PROPERTY FOLDER "External Libraries")
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ else()
|
|||||||
set(SM_NAME_RELWITHDEBINFO "itgmania-release-symbols")
|
set(SM_NAME_RELWITHDEBINFO "itgmania-release-symbols")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# TODO: Make this actually be data and not an executable.
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
add_executable("${SM_EXE_NAME}"
|
add_executable("${SM_EXE_NAME}"
|
||||||
MACOSX_BUNDLE
|
MACOSX_BUNDLE
|
||||||
@@ -522,12 +521,6 @@ else() # Unix / Linux TODO: Remember to find and locate the zip archive files.
|
|||||||
|
|
||||||
if(HAS_PULSE)
|
if(HAS_PULSE)
|
||||||
list(APPEND SMDATA_LINK_LIB ${PULSEAUDIO_LIBRARY})
|
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.
|
|
||||||
target_compile_definitions("${SM_EXE_NAME}" PRIVATE PACKAGE_NAME="ITGmania")
|
|
||||||
set(PACKAGE_VERSION "${SM_VERSION_MAJOR}.${SM_VERSION_MINOR}")
|
|
||||||
target_compile_definitions("${SM_EXE_NAME}" PRIVATE
|
|
||||||
PACKAGE_VERSION="${PACKAGE_VERSION}")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(X11_FOUND)
|
if(X11_FOUND)
|
||||||
@@ -591,11 +584,6 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WIN32)
|
|
||||||
# FIXME: This makes no sense...
|
|
||||||
#list(APPEND SM_INCLUDE_DIRS ${DIRECTX_INCLUDE_DIR})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(NOT WITH_SYSTEM_TOMCRYPT)
|
if(NOT WITH_SYSTEM_TOMCRYPT)
|
||||||
list(APPEND SM_INCLUDE_DIRS "${SM_SRC_DIR}/libtomcrypt/src/headers")
|
list(APPEND SM_INCLUDE_DIRS "${SM_SRC_DIR}/libtomcrypt/src/headers")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
#include "ProductInfo.h"
|
||||||
#include "RageSoundDriver_PulseAudio.h"
|
#include "RageSoundDriver_PulseAudio.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "RageSound.h"
|
#include "RageSound.h"
|
||||||
@@ -6,6 +7,7 @@
|
|||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "RageTimer.h"
|
#include "RageTimer.h"
|
||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
|
#include "ver.h"
|
||||||
#include <pulse/error.h>
|
#include <pulse/error.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
@@ -52,15 +54,15 @@ RString RageSoundDriver_PulseAudio::Init()
|
|||||||
|
|
||||||
#ifdef PA_PROP_APPLICATION_NAME /* proplist available only since 0.9.11 */
|
#ifdef PA_PROP_APPLICATION_NAME /* proplist available only since 0.9.11 */
|
||||||
pa_proplist *plist = pa_proplist_new();
|
pa_proplist *plist = pa_proplist_new();
|
||||||
pa_proplist_sets(plist, PA_PROP_APPLICATION_NAME, PACKAGE_NAME);
|
pa_proplist_sets(plist, PA_PROP_APPLICATION_NAME, PRODUCT_FAMILY);
|
||||||
pa_proplist_sets(plist, PA_PROP_APPLICATION_VERSION, PACKAGE_VERSION);
|
pa_proplist_sets(plist, PA_PROP_APPLICATION_VERSION, product_version);
|
||||||
pa_proplist_sets(plist, PA_PROP_MEDIA_ROLE, "game");
|
pa_proplist_sets(plist, PA_PROP_MEDIA_ROLE, "game");
|
||||||
|
|
||||||
LOG->Trace("Pulse: pa_context_new_with_proplist()...");
|
LOG->Trace("Pulse: pa_context_new_with_proplist()...");
|
||||||
|
|
||||||
m_PulseCtx = pa_context_new_with_proplist(
|
m_PulseCtx = pa_context_new_with_proplist(
|
||||||
pa_threaded_mainloop_get_api(m_PulseMainLoop),
|
pa_threaded_mainloop_get_api(m_PulseMainLoop),
|
||||||
"StepMania", plist);
|
PRODUCT_FAMILY, plist);
|
||||||
pa_proplist_free(plist);
|
pa_proplist_free(plist);
|
||||||
|
|
||||||
if(m_PulseCtx == nullptr)
|
if(m_PulseCtx == nullptr)
|
||||||
@@ -71,7 +73,7 @@ RString RageSoundDriver_PulseAudio::Init()
|
|||||||
LOG->Trace("Pulse: pa_context_new()...");
|
LOG->Trace("Pulse: pa_context_new()...");
|
||||||
m_PulseCtx = pa_context_new(
|
m_PulseCtx = pa_context_new(
|
||||||
pa_threaded_mainloop_get_api(m_PulseMainLoop),
|
pa_threaded_mainloop_get_api(m_PulseMainLoop),
|
||||||
"Stepmania");
|
PRODUCT_FAMILY);
|
||||||
if(m_PulseCtx == nullptr)
|
if(m_PulseCtx == nullptr)
|
||||||
{
|
{
|
||||||
return "pa_context_new() failed!";
|
return "pa_context_new() failed!";
|
||||||
@@ -150,7 +152,7 @@ void RageSoundDriver_PulseAudio::m_InitStream(void)
|
|||||||
|
|
||||||
/* create the stream */
|
/* create the stream */
|
||||||
LOG->Trace("Pulse: pa_stream_new()...");
|
LOG->Trace("Pulse: pa_stream_new()...");
|
||||||
m_PulseStream = pa_stream_new(m_PulseCtx, "Stepmania Audio", &ss, &map);
|
m_PulseStream = pa_stream_new(m_PulseCtx, PRODUCT_FAMILY " Audio", &ss, &map);
|
||||||
if(m_PulseStream == nullptr)
|
if(m_PulseStream == nullptr)
|
||||||
{
|
{
|
||||||
if(asprintf(&m_Error, "pa_stream_new(): %s", pa_strerror(pa_context_errno(m_PulseCtx))) == -1)
|
if(asprintf(&m_Error, "pa_stream_new(): %s", pa_strerror(pa_context_errno(m_PulseCtx))) == -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user