Skip to content

Commit

Permalink
VSclang
Browse files Browse the repository at this point in the history
Add VS config to call python script
  • Loading branch information
JohnsterID authored and RecursiveVision committed Nov 24, 2024
1 parent 25035ca commit b81ad8e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
30 changes: 30 additions & 0 deletions CvGameCoreDLL_Expansion2/VoxPopuli.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Clang-Debug|Win32">
<Configuration>Clang-Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Clang-Release|Win32">
<Configuration>Clang-Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}</ProjectGuid>
Expand All @@ -29,6 +37,18 @@
<PlatformToolset>v90</PlatformToolset>
<WholeProgramOptimization>false</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Clang-Debug|Win32'" Label="Configuration">
<ConfigurationType>Utility</ConfigurationType>
<PlatformToolset>v90</PlatformToolset>
<OutDir>$(SolutionDir)clang-output\Debug\</OutDir>
<IntDir>$(SolutionDir)clang-build\Debug\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Clang-Release|Win32'" Label="Configuration">
<ConfigurationType>Utility</ConfigurationType>
<PlatformToolset>v90</PlatformToolset>
<OutDir>$(SolutionDir)clang-output\Release\</OutDir>
<IntDir>$(SolutionDir)clang-build\Release\</IntDir>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
Expand Down Expand Up @@ -104,6 +124,16 @@
<Command>..\update_commit_id.bat</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Clang-Debug|Win32'">
<PreBuildEvent>
<Command>cd "$(SolutionDir)" &amp; python build_vp_clang.py --config debug &amp; type clang-output\Debug\build.log</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Clang-Release|Win32'">
<PreBuildEvent>
<Command>cd "$(SolutionDir)" &amp; python build_vp_clang.py --config release &amp; type clang-output\Release\build.log</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="CustomMods.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Use</PrecompiledHeader>
Expand Down
6 changes: 6 additions & 0 deletions VoxPopuli_vs2013.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@ Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
Clang-Debug|Win32 = Clang-Debug|Win32
Clang-Release|Win32 = Clang-Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Debug|Win32.ActiveCfg = Debug|Win32
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Debug|Win32.Build.0 = Debug|Win32
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Release|Win32.ActiveCfg = Release|Win32
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Release|Win32.Build.0 = Release|Win32
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Clang-Debug|Win32.ActiveCfg = Clang-Debug|Win32
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Clang-Debug|Win32.Build.0 = Clang-Debug|Win32
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Clang-Release|Win32.ActiveCfg = Clang-Release|Win32
{2D4B6CDC-0887-4EE1-97B9-0865CC82FAF3}.Clang-Release|Win32.Build.0 = Clang-Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit b81ad8e

Please sign in to comment.