mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-01 15:56:32 -05:00
cmake: Remove shader cache version
This commit is contained in:
parent
56478bc9ac
commit
4a82450c81
3 changed files with 1 additions and 12 deletions
|
@ -1,8 +1,3 @@
|
||||||
# Add a custom command to generate a new shader_cache_version hash when any of the following files change
|
|
||||||
# NOTE: This is an approximation of what files affect shader generation, its possible something else
|
|
||||||
# could affect the result, but much more unlikely than the following files. Keeping a list of files
|
|
||||||
# like this allows for much better caching since it doesn't force the user to recompile binary shaders every update
|
|
||||||
set(VIDEO_CORE "${CMAKE_SOURCE_DIR}/src/video_core")
|
|
||||||
if (DEFINED ENV{AZURECIREPO})
|
if (DEFINED ENV{AZURECIREPO})
|
||||||
set(BUILD_REPOSITORY $ENV{AZURECIREPO})
|
set(BUILD_REPOSITORY $ENV{AZURECIREPO})
|
||||||
endif()
|
endif()
|
||||||
|
@ -30,10 +25,7 @@ add_custom_command(OUTPUT scm_rev.cpp
|
||||||
-DGIT_EXECUTABLE=${GIT_EXECUTABLE}
|
-DGIT_EXECUTABLE=${GIT_EXECUTABLE}
|
||||||
-P ${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake
|
-P ${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake
|
||||||
DEPENDS
|
DEPENDS
|
||||||
# WARNING! It was too much work to try and make a common location for this list,
|
# Check that the scm_rev files haven't changed
|
||||||
# so if you need to change it, please update CMakeModules/GenerateSCMRev.cmake as well
|
|
||||||
# ...
|
|
||||||
# and also check that the scm_rev files haven't changed
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/scm_rev.cpp.in"
|
"${CMAKE_CURRENT_SOURCE_DIR}/scm_rev.cpp.in"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/scm_rev.h"
|
"${CMAKE_CURRENT_SOURCE_DIR}/scm_rev.h"
|
||||||
# technically we should regenerate if the git version changed, but its not worth the effort imo
|
# technically we should regenerate if the git version changed, but its not worth the effort imo
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
#define BUILD_ID "@BUILD_ID@"
|
#define BUILD_ID "@BUILD_ID@"
|
||||||
#define TITLE_BAR_FORMAT_IDLE "@TITLE_BAR_FORMAT_IDLE@"
|
#define TITLE_BAR_FORMAT_IDLE "@TITLE_BAR_FORMAT_IDLE@"
|
||||||
#define TITLE_BAR_FORMAT_RUNNING "@TITLE_BAR_FORMAT_RUNNING@"
|
#define TITLE_BAR_FORMAT_RUNNING "@TITLE_BAR_FORMAT_RUNNING@"
|
||||||
#define SHADER_CACHE_VERSION "@SHADER_CACHE_VERSION@"
|
|
||||||
|
|
||||||
namespace Common {
|
namespace Common {
|
||||||
|
|
||||||
|
@ -28,7 +27,6 @@ const char g_build_version[] = BUILD_VERSION;
|
||||||
const char g_build_id[] = BUILD_ID;
|
const char g_build_id[] = BUILD_ID;
|
||||||
const char g_title_bar_format_idle[] = TITLE_BAR_FORMAT_IDLE;
|
const char g_title_bar_format_idle[] = TITLE_BAR_FORMAT_IDLE;
|
||||||
const char g_title_bar_format_running[] = TITLE_BAR_FORMAT_RUNNING;
|
const char g_title_bar_format_running[] = TITLE_BAR_FORMAT_RUNNING;
|
||||||
const char g_shader_cache_version[] = SHADER_CACHE_VERSION;
|
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,6 @@ json GetYuzuVersionData() {
|
||||||
{"build_date", std::string(Common::g_build_date)},
|
{"build_date", std::string(Common::g_build_date)},
|
||||||
{"build_fullname", std::string(Common::g_build_fullname)},
|
{"build_fullname", std::string(Common::g_build_fullname)},
|
||||||
{"build_version", std::string(Common::g_build_version)},
|
{"build_version", std::string(Common::g_build_version)},
|
||||||
{"shader_cache_version", std::string(Common::g_shader_cache_version)},
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue