Skip to content

Commit 106e64f

Browse files
authored
Adding property to support legacy names with GDK suffix (#914)
1 parent 185adeb commit 106e64f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Build/libHttpClient.GDK/libHttpClient.GDK.vcxproj

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
<PlatformToolset Condition="$(VisualStudioVersion)==16">v142</PlatformToolset>
1010
<PlatformToolset Condition="$(VisualStudioVersion)==17">v143</PlatformToolset>
1111
</PropertyGroup>
12+
13+
<!-- Configurable target naming - default to include suffix -->
14+
<PropertyGroup>
15+
<LibHttpClientIncludeSuffix Condition="'$(LibHttpClientIncludeSuffix)' == ''">true</LibHttpClientIncludeSuffix>
16+
</PropertyGroup>
1217
<ItemGroup>
1318
<None Include="libHttpClient.GDK.def" />
1419
</ItemGroup>
@@ -34,4 +39,10 @@
3439
<Import Project="$(HCBuildRoot)\libHttpClient.GDK.Shared\libHttpClient.GDK.Shared.vcxitems" Label="Shared" />
3540
<Import Condition="'$(HCNoZlib)' != 'true'" Project="$(HCBuildRoot)\libHttpClient.Zlib\libHttpClient.Zlib.vcxitems" Label="Shared" />
3641
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
42+
43+
<!-- Apply configurable target naming after all imports -->
44+
<PropertyGroup>
45+
<TargetName Condition="'$(LibHttpClientIncludeSuffix)' != 'false'">libHttpClient.GDK</TargetName>
46+
<TargetName Condition="'$(LibHttpClientIncludeSuffix)' == 'false'">libHttpClient</TargetName>
47+
</PropertyGroup>
3748
</Project>

0 commit comments

Comments
 (0)