Skip to content

Commit b81ad8e

Browse files
JohnsterIDRecursiveVision
authored andcommitted
VSclang
Add VS config to call python script
1 parent 25035ca commit b81ad8e

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

CvGameCoreDLL_Expansion2/VoxPopuli.vcxproj

+30
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
<Configuration>Release</Configuration>
1010
<Platform>Win32</Platform>
1111
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Clang-Debug|Win32">
13+
<Configuration>Clang-Debug</Configuration>
14+
<Platform>Win32</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Clang-Release|Win32">
17+
<Configuration>Clang-Release</Configuration>
18+
<Platform>Win32</Platform>
19+
</ProjectConfiguration>
1220
</ItemGroup>
1321
<PropertyGroup Label="Globals">
1422
<ProjectGuid>{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}</ProjectGuid>
@@ -29,6 +37,18 @@
2937
<PlatformToolset>v90</PlatformToolset>
3038
<WholeProgramOptimization>false</WholeProgramOptimization>
3139
</PropertyGroup>
40+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Clang-Debug|Win32'" Label="Configuration">
41+
<ConfigurationType>Utility</ConfigurationType>
42+
<PlatformToolset>v90</PlatformToolset>
43+
<OutDir>$(SolutionDir)clang-output\Debug\</OutDir>
44+
<IntDir>$(SolutionDir)clang-build\Debug\</IntDir>
45+
</PropertyGroup>
46+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Clang-Release|Win32'" Label="Configuration">
47+
<ConfigurationType>Utility</ConfigurationType>
48+
<PlatformToolset>v90</PlatformToolset>
49+
<OutDir>$(SolutionDir)clang-output\Release\</OutDir>
50+
<IntDir>$(SolutionDir)clang-build\Release\</IntDir>
51+
</PropertyGroup>
3252
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
3353
<ImportGroup Label="ExtensionSettings">
3454
</ImportGroup>
@@ -104,6 +124,16 @@
104124
<Command>..\update_commit_id.bat</Command>
105125
</PreBuildEvent>
106126
</ItemDefinitionGroup>
127+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Clang-Debug|Win32'">
128+
<PreBuildEvent>
129+
<Command>cd "$(SolutionDir)" &amp; python build_vp_clang.py --config debug &amp; type clang-output\Debug\build.log</Command>
130+
</PreBuildEvent>
131+
</ItemDefinitionGroup>
132+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Clang-Release|Win32'">
133+
<PreBuildEvent>
134+
<Command>cd "$(SolutionDir)" &amp; python build_vp_clang.py --config release &amp; type clang-output\Release\build.log</Command>
135+
</PreBuildEvent>
136+
</ItemDefinitionGroup>
107137
<ItemGroup>
108138
<ClCompile Include="CustomMods.cpp">
109139
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Use</PrecompiledHeader>

VoxPopuli_vs2013.sln

+6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@ Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|Win32 = Debug|Win32
1111
Release|Win32 = Release|Win32
12+
Clang-Debug|Win32 = Clang-Debug|Win32
13+
Clang-Release|Win32 = Clang-Release|Win32
1214
EndGlobalSection
1315
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1416
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Debug|Win32.ActiveCfg = Debug|Win32
1517
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Debug|Win32.Build.0 = Debug|Win32
1618
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Release|Win32.ActiveCfg = Release|Win32
1719
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Release|Win32.Build.0 = Release|Win32
20+
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Clang-Debug|Win32.ActiveCfg = Clang-Debug|Win32
21+
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Clang-Debug|Win32.Build.0 = Clang-Debug|Win32
22+
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Clang-Release|Win32.ActiveCfg = Clang-Release|Win32
23+
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Clang-Release|Win32.Build.0 = Clang-Release|Win32
1824
EndGlobalSection
1925
GlobalSection(SolutionProperties) = preSolution
2026
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)