moved version information into separate header file to avoid the necessity of a complete recompile each time SVN revision changes
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1913 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -35,9 +35,8 @@ ENDIF(NOT VERSION_SUFFIX)
|
||||
|
||||
SET(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
|
||||
IF(VERSION_SUFFIX)
|
||||
SET (VERSION "${VERSION}-${VERSION_SUFFIX}")
|
||||
SET(VERSION "${VERSION}-${VERSION_SUFFIX}")
|
||||
ENDIF(VERSION_SUFFIX)
|
||||
ADD_DEFINITIONS(-D'LMMS_VERSION="${VERSION}"')
|
||||
|
||||
|
||||
INCLUDE(DetectMachine)
|
||||
@@ -362,6 +361,7 @@ ENDIF(NOT LMMS_HAVE_SAMPLERATE)
|
||||
|
||||
|
||||
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/lmmsconfig.h.in ${CMAKE_BINARY_DIR}/lmmsconfig.h)
|
||||
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/lmmsversion.h.in ${CMAKE_BINARY_DIR}/lmmsversion.h)
|
||||
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/lmms.rc.in ${CMAKE_BINARY_DIR}/lmms.rc)
|
||||
|
||||
# set compiler flags
|
||||
@@ -475,7 +475,7 @@ LINK_LIBRARIES(${QT_LIBRARIES} ${ASOUND_LIBRARY} ${SDL_LIBRARY} ${PORTAUDIO_LIBR
|
||||
|
||||
ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_BINARY_DIR}/lmms.1.gz COMMAND gzip -c ${CMAKE_SOURCE_DIR}/lmms.1 > ${CMAKE_BINARY_DIR}/lmms.1.gz DEPENDS ${CMAKE_SOURCE_DIR}/lmms.1 COMMENT "Generating lmms.1.gz")
|
||||
|
||||
ADD_EXECUTABLE(lmms ${lmms_SOURCES} ${lmms_INCLUDES} ${LIBSAMPLERATE_SOURCES} ${LMMS_ER_H} ${lmms_UI_out} lmmsconfig.h ${WINRC} ${CMAKE_BINARY_DIR}/lmms.1.gz)
|
||||
ADD_EXECUTABLE(lmms ${lmms_SOURCES} ${lmms_INCLUDES} ${LIBSAMPLERATE_SOURCES} ${LMMS_ER_H} ${lmms_UI_out} lmmsconfig.h lmmsversion.h ${WINRC} ${CMAKE_BINARY_DIR}/lmms.1.gz)
|
||||
|
||||
IF(LMMS_BUILD_WIN32)
|
||||
SET_TARGET_PROPERTIES(lmms PROPERTIES LINK_FLAGS "${LINK_FLAGS} -mwindows")
|
||||
@@ -522,7 +522,7 @@ ENDFOREACH(_item ${qm_targets})
|
||||
# install headers
|
||||
|
||||
IF(LMMS_BUILD_LINUX)
|
||||
INSTALL(FILES ${lmms_INCLUDES} ${CMAKE_BINARY_DIR}/lmmsconfig.h ${CMAKE_SOURCE_DIR}/src/gui/embed.cpp DESTINATION ${CMAKE_INSTALL_PREFIX}/include/lmms/)
|
||||
INSTALL(FILES ${lmms_INCLUDES} ${CMAKE_BINARY_DIR}/lmmsconfig.h ${CMAKE_BINARY_DIR}/lmmsversion.h ${CMAKE_SOURCE_DIR}/src/gui/embed.cpp DESTINATION ${CMAKE_INSTALL_PREFIX}/include/lmms/)
|
||||
IF(NOT LMMS_HAVE_SAMPLERATE)
|
||||
INSTALL(FILES ${CMAKE_SOURCE_DIR}/src/3rdparty/samplerate/samplerate.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/lmms/)
|
||||
ENDIF(NOT LMMS_HAVE_SAMPLERATE)
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
2008-12-14 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* src/core/config_mgr.cpp:
|
||||
* src/core/mmp.cpp:
|
||||
* src/gui/main_window.cpp:
|
||||
* src/gui/about_dialog.cpp:
|
||||
* lmmsversion.h.in:
|
||||
* CMakeLists.txt:
|
||||
moved version information into separate header file to avoid
|
||||
the necessity of a complete recompile each time SVN revision changes
|
||||
|
||||
* include/midi.h:
|
||||
- added support for MidiMetaEvents to midiEvent
|
||||
- added MidiMetaPanning event
|
||||
|
||||
6
lmmsversion.h.in
Normal file
6
lmmsversion.h.in
Normal file
@@ -0,0 +1,6 @@
|
||||
#define LMMS_VERSION_MAJOR @VERSION_MAJOR@
|
||||
#define LMMS_VERSION_MINOR @VERSION_MINOR@
|
||||
#define LMMS_VERSION_PATCH @VERSION_PATCH@
|
||||
#define LMMS_VERSION_SUFFIX "@VERSION_SUFFIX@"
|
||||
#define LMMS_VERSION "@VERSION@"
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include <QtGui/QMessageBox>
|
||||
#include <QtGui/QApplication>
|
||||
|
||||
|
||||
#include "lmmsversion.h"
|
||||
#include "config_mgr.h"
|
||||
#include "main_window.h"
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include "project_version.h"
|
||||
#include "song_editor.h"
|
||||
#include "effect.h"
|
||||
#include "lmmsversion.h"
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "lmmsconfig.h"
|
||||
#include "lmmsversion.h"
|
||||
#include "about_dialog.h"
|
||||
#include "embed.h"
|
||||
#include "engine.h"
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
#include <QtGui/QCheckBox>
|
||||
|
||||
|
||||
#include "lmmsversion.h"
|
||||
#include "main_window.h"
|
||||
#include "bb_editor.h"
|
||||
#include "song_editor.h"
|
||||
|
||||
Reference in New Issue
Block a user