Skip to content

Commit

Permalink
Only include localization resources when building with localization
Browse files Browse the repository at this point in the history
  • Loading branch information
crosire committed Nov 24, 2023
1 parent 55afe5b commit e63ed2e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ReShade.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
</FxCompile>
<ResourceCompile>
<PreprocessorDefinitions>_WIN32;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_DEBUG;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<PreBuildEvent>
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
Expand Down Expand Up @@ -166,7 +166,7 @@
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
</FxCompile>
<ResourceCompile>
<PreprocessorDefinitions>_WIN64;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_DEBUG;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<PreBuildEvent>
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
Expand Down Expand Up @@ -197,7 +197,7 @@
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
</FxCompile>
<ResourceCompile>
<PreprocessorDefinitions>RESHADE_TEST_APPLICATION;_WIN32;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>RESHADE_LOCALIZATION;RESHADE_TEST_APPLICATION;_DEBUG;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<PreBuildEvent>
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
Expand Down Expand Up @@ -228,7 +228,7 @@
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
</FxCompile>
<ResourceCompile>
<PreprocessorDefinitions>RESHADE_TEST_APPLICATION;_WIN64;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>RESHADE_LOCALIZATION;RESHADE_TEST_APPLICATION;_DEBUG;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<PreBuildEvent>
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
Expand Down Expand Up @@ -268,7 +268,7 @@
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
</FxCompile>
<ResourceCompile>
<PreprocessorDefinitions>_WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>RESHADE_LOCALIZATION;NDEBUG;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<PreBuildEvent Condition="'$(BuildingSetupTool)'!='true'">
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
Expand Down Expand Up @@ -308,7 +308,7 @@
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
</FxCompile>
<ResourceCompile>
<PreprocessorDefinitions>_WIN64;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>RESHADE_LOCALIZATION;NDEBUG;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<PreBuildEvent Condition="'$(BuildingSetupTool)'!='true'">
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
Expand Down Expand Up @@ -347,7 +347,7 @@
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
</FxCompile>
<ResourceCompile>
<PreprocessorDefinitions>RESHADE_TEST_APPLICATION;_WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>RESHADE_TEST_APPLICATION;NDEBUG;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<PreBuildEvent>
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
Expand Down Expand Up @@ -386,7 +386,7 @@
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
</FxCompile>
<ResourceCompile>
<PreprocessorDefinitions>RESHADE_TEST_APPLICATION;_WIN64;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>RESHADE_TEST_APPLICATION;NDEBUG;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<PreBuildEvent>
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
Expand Down Expand Up @@ -427,7 +427,7 @@
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
</FxCompile>
<ResourceCompile>
<PreprocessorDefinitions>_WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>RESHADE_LOCALIZATION;NDEBUG;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<PreBuildEvent Condition="'$(BuildingSetupTool)'!='true'">
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
Expand Down Expand Up @@ -471,7 +471,7 @@
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
</FxCompile>
<ResourceCompile>
<PreprocessorDefinitions>_WIN64;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>RESHADE_LOCALIZATION;NDEBUG;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<PreBuildEvent Condition="'$(BuildingSetupTool)'!='true'">
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
Expand Down
2 changes: 2 additions & 0 deletions res/resource.rc
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ IDR_LICENSE_VULKAN RCDATA "..\\deps\\vulkan\\LICENSE.txt"
// Generated from the TEXTINCLUDE 3 resource.
//
#include "version.rc2"
#if defined(RESHADE_LOCALIZATION)
#include "lang_de-DE.rc2"
#include "lang_en-US.rc2"
#endif

/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
Expand Down

0 comments on commit e63ed2e

Please sign in to comment.