mirror of https://github.com/PCSX2/pcsx2.git
Add an option to disable the inclusion of the build date.
Debian has a goal to make reproducible builds therefore make it an option instead of distro specific. . I added an "OR openSusE" to not "break" the old openSUSE behavior but ideally they should just use -DDISABLE_BUILD_DATE=TRUE instead. . The old -DopenSUSE is not used for anything else so I removed it.
This commit is contained in:
parent
000e11e270
commit
83a4b37bcf
|
@ -21,6 +21,12 @@
|
||||||
# Misc option
|
# Misc option
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
option(DISABLE_SVU "Disable superVU (don't use it)")
|
option(DISABLE_SVU "Disable superVU (don't use it)")
|
||||||
|
option(DISABLE_BUILD_DATE "Disable including the binary compile date")
|
||||||
|
|
||||||
|
if(DISABLE_BUILD_DATE OR openSUSE)
|
||||||
|
message(STATUS "Disabling the inclusion of the binary compile date.")
|
||||||
|
add_definitions(-DDISABLE_BUILD_DATE)
|
||||||
|
endif()
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Graphical option
|
# Graphical option
|
||||||
|
|
|
@ -24,7 +24,6 @@ function(detectOperatingSystem)
|
||||||
message(STATUS "Build Fedora specific")
|
message(STATUS "Build Fedora specific")
|
||||||
elseif("${OS_RELEASE}" MATCHES "^.*ID=.*suse.*$")
|
elseif("${OS_RELEASE}" MATCHES "^.*ID=.*suse.*$")
|
||||||
set(openSUSE TRUE PARENT_SCOPE)
|
set(openSUSE TRUE PARENT_SCOPE)
|
||||||
add_definitions(-DopenSUSE)
|
|
||||||
message(STATUS "Build openSUSE specific")
|
message(STATUS "Build openSUSE specific")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -196,7 +196,7 @@ void SysLogMachineCaps()
|
||||||
if ( !PCSX2_isReleaseVersion )
|
if ( !PCSX2_isReleaseVersion )
|
||||||
{
|
{
|
||||||
Console.WriteLn(Color_StrongGreen, "PCSX2 %u.%u.%u-%lld %s"
|
Console.WriteLn(Color_StrongGreen, "PCSX2 %u.%u.%u-%lld %s"
|
||||||
#ifndef openSUSE
|
#ifndef DISABLE_BUILD_DATE
|
||||||
"- compiled on " __DATE__
|
"- compiled on " __DATE__
|
||||||
#endif
|
#endif
|
||||||
, PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo,
|
, PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo,
|
||||||
|
@ -205,7 +205,7 @@ void SysLogMachineCaps()
|
||||||
}
|
}
|
||||||
else { // shorter release version string
|
else { // shorter release version string
|
||||||
Console.WriteLn(Color_StrongGreen, "PCSX2 %u.%u.%u-%lld"
|
Console.WriteLn(Color_StrongGreen, "PCSX2 %u.%u.%u-%lld"
|
||||||
#ifndef openSUSE
|
#ifndef DISABLE_BUILD_DATE
|
||||||
"- compiled on " __DATE__
|
"- compiled on " __DATE__
|
||||||
#endif
|
#endif
|
||||||
, PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo,
|
, PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo,
|
||||||
|
|
|
@ -359,7 +359,7 @@ MainEmuFrame::MainEmuFrame(wxWindow* parent, const wxString& title)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// beta / development editions, which feature revision number and compile date.
|
// beta / development editions, which feature revision number and compile date.
|
||||||
#ifndef openSUSE
|
#ifndef DISABLE_BUILD_DATE
|
||||||
wintitle.Printf( L"%s %d.%d.%d-%lld%s (git) %s", pxGetAppName().c_str(), PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo,
|
wintitle.Printf( L"%s %d.%d.%d-%lld%s (git) %s", pxGetAppName().c_str(), PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo,
|
||||||
SVN_REV, SVN_MODS ? L"m" : wxEmptyString, fromUTF8(__DATE__).c_str() );
|
SVN_REV, SVN_MODS ? L"m" : wxEmptyString, fromUTF8(__DATE__).c_str() );
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue