Separated config.h and version.h
This prevents unnecessary recompilation of some files when version number changesdev-time-step
parent
4dc7a301eb
commit
fd07589ebb
|
@ -54,6 +54,7 @@ endif()
|
|||
|
||||
# Configure file
|
||||
configure_file(common/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/common/config.h)
|
||||
configure_file(common/version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/common/version.h)
|
||||
|
||||
set(OPENAL_SRC "")
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "app/app.h"
|
||||
|
||||
#include "common/config.h"
|
||||
#include "common/version.h"
|
||||
|
||||
#include "app/controller.h"
|
||||
#include "app/input.h"
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
*/
|
||||
|
||||
#include "common/config.h"
|
||||
#include "common/version.h"
|
||||
|
||||
#include "app/app.h"
|
||||
#include "app/signal_handlers.h"
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "app/signal_handlers.h"
|
||||
|
||||
#include "common/config.h"
|
||||
#include "common/version.h"
|
||||
|
||||
#include "common/resources/resourcemanager.h"
|
||||
|
||||
|
|
|
@ -26,10 +26,5 @@
|
|||
|
||||
#cmakedefine PORTABLE @PORTABLE@
|
||||
|
||||
#define COLOBOT_FULLNAME "Colobot: Gold Edition @COLOBOT_VERSION_FULL@"
|
||||
#define COLOBOT_VERSION_DISPLAY "@COLOBOT_VERSION_DISPLAY@"
|
||||
|
||||
#define COLOBOT_DEFAULT_DATADIR "@COLOBOT_INSTALL_DATA_DIR@"
|
||||
#define COLOBOT_I18N_DIR "@COLOBOT_INSTALL_I18N_DIR@"
|
||||
|
||||
#define BUILD_NUMBER @BUILD_NUMBER@
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#define COLOBOT_FULLNAME "Colobot: Gold Edition @COLOBOT_VERSION_FULL@"
|
||||
#define COLOBOT_VERSION_DISPLAY "@COLOBOT_VERSION_DISPLAY@"
|
||||
|
||||
#define BUILD_NUMBER @BUILD_NUMBER@
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "ui/screen/screen.h"
|
||||
|
||||
#include "common/config.h"
|
||||
#include "common/version.h"
|
||||
|
||||
#include "app/app.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue