Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hlc] Use precompiled headers in vs templates #721

Merged
merged 3 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion other/haxelib/templates/vs2015/__file__.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
<SDLCheck>true</SDLCheck>
<ObjectFileName>$(IntDir)\%(RelativeDir)</ObjectFileName>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<PrecompiledHeader>Use</PrecompiledHeader>
<ForcedIncludeFiles>stdafx.h</ForcedIncludeFiles>
<DisableSpecificWarnings>4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -116,6 +119,9 @@
<SDLCheck>true</SDLCheck>
<ObjectFileName>$(IntDir)\%(RelativeDir)</ObjectFileName>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<PrecompiledHeader>Use</PrecompiledHeader>
<ForcedIncludeFiles>stdafx.h</ForcedIncludeFiles>
<DisableSpecificWarnings>4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -135,6 +141,9 @@
<SDLCheck>true</SDLCheck>
<ObjectFileName>$(IntDir)\%(RelativeDir)</ObjectFileName>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<PrecompiledHeader>Use</PrecompiledHeader>
<ForcedIncludeFiles>stdafx.h</ForcedIncludeFiles>
<DisableSpecificWarnings>4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -156,6 +165,9 @@
<SDLCheck>true</SDLCheck>
<ObjectFileName>$(IntDir)\%(RelativeDir)</ObjectFileName>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<PrecompiledHeader>Use</PrecompiledHeader>
<ForcedIncludeFiles>stdafx.h</ForcedIncludeFiles>
<DisableSpecificWarnings>4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -165,7 +177,10 @@
<AdditionalDependencies>libhl.lib::foreach libraries::;::name::.lib::end::</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>::foreach cfiles::
<ItemGroup>
<ClCompile Include="stdafx.c">
<PrecompiledHeader>Create</PrecompiledHeader>
</ClCompile>::foreach cfiles::
<ClCompile Include="::relDir::::path::" />::end::
</ItemGroup>
<ItemGroup>::foreach hfiles::
Expand Down
3 changes: 2 additions & 1 deletion other/haxelib/templates/vs2015/__file__.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>::foreach cfiles::::if directory::
<ItemGroup>
<ClCompile Include="stdafx.c" />::foreach cfiles::::if directory::
<ClCompile Include="::relDir::::path::">
<Filter>$$winPath(::directory::)</Filter>
</ClCompile>::else::
Expand Down
1 change: 1 addition & 0 deletions other/haxelib/templates/vs2015/stdafx.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "stdafx.h"
2 changes: 2 additions & 0 deletions other/haxelib/templates/vs2015/stdafx.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define HLC_BOOT
#include <hlc.h>
17 changes: 16 additions & 1 deletion other/haxelib/templates/vs2017/__file__.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@
<ConformanceMode>true</ConformanceMode>
<ObjectFileName>$(IntDir)\%(RelativeDir)</ObjectFileName>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<PrecompiledHeader>Use</PrecompiledHeader>
<ForcedIncludeFiles>stdafx.h</ForcedIncludeFiles>
<DisableSpecificWarnings>4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -119,6 +122,9 @@
<ConformanceMode>true</ConformanceMode>
<ObjectFileName>$(IntDir)\%(RelativeDir)</ObjectFileName>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<PrecompiledHeader>Use</PrecompiledHeader>
<ForcedIncludeFiles>stdafx.h</ForcedIncludeFiles>
<DisableSpecificWarnings>4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -139,6 +145,9 @@
<ConformanceMode>true</ConformanceMode>
<ObjectFileName>$(IntDir)\%(RelativeDir)</ObjectFileName>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<PrecompiledHeader>Use</PrecompiledHeader>
<ForcedIncludeFiles>stdafx.h</ForcedIncludeFiles>
<DisableSpecificWarnings>4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -161,6 +170,9 @@
<ConformanceMode>true</ConformanceMode>
<ObjectFileName>$(IntDir)\%(RelativeDir)</ObjectFileName>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<PrecompiledHeader>Use</PrecompiledHeader>
<ForcedIncludeFiles>stdafx.h</ForcedIncludeFiles>
<DisableSpecificWarnings>4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -170,7 +182,10 @@
<AdditionalDependencies>libhl.lib::foreach libraries::;::name::.lib::end::</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>::foreach cfiles::
<ItemGroup>
<ClCompile Include="stdafx.c">
<PrecompiledHeader>Create</PrecompiledHeader>
</ClCompile>::foreach cfiles::
<ClCompile Include="::relDir::::path::" />::end::
</ItemGroup>
<ItemGroup>::foreach hfiles::
Expand Down
3 changes: 2 additions & 1 deletion other/haxelib/templates/vs2017/__file__.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>::foreach cfiles::::if directory::
<ItemGroup>
<ClCompile Include="stdafx.c" />::foreach cfiles::::if directory::
<ClCompile Include="::relDir::::path::">
<Filter>$$winPath(::directory::)</Filter>
</ClCompile>::else::
Expand Down
1 change: 1 addition & 0 deletions other/haxelib/templates/vs2017/stdafx.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "stdafx.h"
2 changes: 2 additions & 0 deletions other/haxelib/templates/vs2017/stdafx.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define HLC_BOOT
#include <hlc.h>
17 changes: 16 additions & 1 deletion other/haxelib/templates/vs2019/__file__.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
<ConformanceMode>true</ConformanceMode>
<ObjectFileName>$(IntDir)\%(RelativeDir)</ObjectFileName>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<PrecompiledHeader>Use</PrecompiledHeader>
<ForcedIncludeFiles>stdafx.h</ForcedIncludeFiles>
<DisableSpecificWarnings>4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -117,6 +120,9 @@
<ConformanceMode>true</ConformanceMode>
<ObjectFileName>$(IntDir)\%(RelativeDir)</ObjectFileName>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<PrecompiledHeader>Use</PrecompiledHeader>
<ForcedIncludeFiles>stdafx.h</ForcedIncludeFiles>
<DisableSpecificWarnings>4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -135,6 +141,9 @@
<ConformanceMode>true</ConformanceMode>
<ObjectFileName>$(IntDir)\%(RelativeDir)</ObjectFileName>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<PrecompiledHeader>Use</PrecompiledHeader>
<ForcedIncludeFiles>stdafx.h</ForcedIncludeFiles>
<DisableSpecificWarnings>4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -153,6 +162,9 @@
<ConformanceMode>true</ConformanceMode>
<ObjectFileName>$(IntDir)\%(RelativeDir)</ObjectFileName>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<PrecompiledHeader>Use</PrecompiledHeader>
<ForcedIncludeFiles>stdafx.h</ForcedIncludeFiles>
<DisableSpecificWarnings>4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -162,7 +174,10 @@
<AdditionalDependencies>libhl.lib::foreach libraries::;::name::.lib::end::</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>::foreach cfiles::
<ItemGroup>
<ClCompile Include="stdafx.c">
<PrecompiledHeader>Create</PrecompiledHeader>
</ClCompile>::foreach cfiles::
<ClCompile Include="::relDir::::path::" />::end::
</ItemGroup>
<ItemGroup>::foreach hfiles::
Expand Down
3 changes: 2 additions & 1 deletion other/haxelib/templates/vs2019/__file__.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>::foreach cfiles::::if directory::
<ItemGroup>
<ClCompile Include="stdafx.c" />::foreach cfiles::::if directory::
<ClCompile Include="::relDir::::path::">
<Filter>$$winPath(::directory::)</Filter>
</ClCompile>::else::
Expand Down
1 change: 1 addition & 0 deletions other/haxelib/templates/vs2019/stdafx.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "stdafx.h"
2 changes: 2 additions & 0 deletions other/haxelib/templates/vs2019/stdafx.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define HLC_BOOT
#include <hlc.h>
Loading