Skip to content

Commit a37eb06

Browse files
committed
Only include localization resources when building with localization
1 parent cbb4f4d commit a37eb06

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

ReShade.vcxproj

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
136136
</FxCompile>
137137
<ResourceCompile>
138-
<PreprocessorDefinitions>_WIN32;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
138+
<PreprocessorDefinitions>_DEBUG;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
139139
</ResourceCompile>
140140
<PreBuildEvent>
141141
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
@@ -166,7 +166,7 @@
166166
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
167167
</FxCompile>
168168
<ResourceCompile>
169-
<PreprocessorDefinitions>_WIN64;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
169+
<PreprocessorDefinitions>_DEBUG;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
170170
</ResourceCompile>
171171
<PreBuildEvent>
172172
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
@@ -197,7 +197,7 @@
197197
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
198198
</FxCompile>
199199
<ResourceCompile>
200-
<PreprocessorDefinitions>RESHADE_TEST_APPLICATION;_WIN32;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
200+
<PreprocessorDefinitions>RESHADE_LOCALIZATION;RESHADE_TEST_APPLICATION;_DEBUG;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
201201
</ResourceCompile>
202202
<PreBuildEvent>
203203
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
@@ -228,7 +228,7 @@
228228
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
229229
</FxCompile>
230230
<ResourceCompile>
231-
<PreprocessorDefinitions>RESHADE_TEST_APPLICATION;_WIN64;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
231+
<PreprocessorDefinitions>RESHADE_LOCALIZATION;RESHADE_TEST_APPLICATION;_DEBUG;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
232232
</ResourceCompile>
233233
<PreBuildEvent>
234234
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
@@ -268,7 +268,7 @@
268268
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
269269
</FxCompile>
270270
<ResourceCompile>
271-
<PreprocessorDefinitions>_WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
271+
<PreprocessorDefinitions>RESHADE_LOCALIZATION;NDEBUG;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
272272
</ResourceCompile>
273273
<PreBuildEvent Condition="'$(BuildingSetupTool)'!='true'">
274274
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
@@ -308,7 +308,7 @@
308308
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
309309
</FxCompile>
310310
<ResourceCompile>
311-
<PreprocessorDefinitions>_WIN64;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
311+
<PreprocessorDefinitions>RESHADE_LOCALIZATION;NDEBUG;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
312312
</ResourceCompile>
313313
<PreBuildEvent Condition="'$(BuildingSetupTool)'!='true'">
314314
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
@@ -347,7 +347,7 @@
347347
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
348348
</FxCompile>
349349
<ResourceCompile>
350-
<PreprocessorDefinitions>RESHADE_TEST_APPLICATION;_WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
350+
<PreprocessorDefinitions>RESHADE_TEST_APPLICATION;NDEBUG;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
351351
</ResourceCompile>
352352
<PreBuildEvent>
353353
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
@@ -386,7 +386,7 @@
386386
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
387387
</FxCompile>
388388
<ResourceCompile>
389-
<PreprocessorDefinitions>RESHADE_TEST_APPLICATION;_WIN64;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
389+
<PreprocessorDefinitions>RESHADE_TEST_APPLICATION;NDEBUG;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
390390
</ResourceCompile>
391391
<PreBuildEvent>
392392
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
@@ -427,7 +427,7 @@
427427
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
428428
</FxCompile>
429429
<ResourceCompile>
430-
<PreprocessorDefinitions>_WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
430+
<PreprocessorDefinitions>RESHADE_LOCALIZATION;NDEBUG;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
431431
</ResourceCompile>
432432
<PreBuildEvent Condition="'$(BuildingSetupTool)'!='true'">
433433
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>
@@ -471,7 +471,7 @@
471471
<ObjectFileOutput>res\shaders\%(Filename).cso</ObjectFileOutput>
472472
</FxCompile>
473473
<ResourceCompile>
474-
<PreprocessorDefinitions>_WIN64;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
474+
<PreprocessorDefinitions>RESHADE_LOCALIZATION;NDEBUG;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
475475
</ResourceCompile>
476476
<PreBuildEvent Condition="'$(BuildingSetupTool)'!='true'">
477477
<Command>powershell -ExecutionPolicy Bypass -File tools\update_version.ps1 res\version.h -config "$(Configuration)" -platform "$(Platform)"</Command>

res/resource.rc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ IDR_LICENSE_VULKAN RCDATA "..\\deps\\vulkan\\LICENSE.txt"
121121
// Generated from the TEXTINCLUDE 3 resource.
122122
//
123123
#include "version.rc2"
124+
#if defined(RESHADE_LOCALIZATION)
124125
#include "lang_de-DE.rc2"
125126
#include "lang_en-US.rc2"
127+
#endif
126128

127129
/////////////////////////////////////////////////////////////////////////////
128130
#endif // not APSTUDIO_INVOKED

0 commit comments

Comments
 (0)