-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# pragma once | ||
|
||
# include <stdio.h> | ||
# include <emscripten.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "Header.pch.h" | ||
|
||
int main() { | ||
printf("Hello, emscripten!\n"); | ||
return 0; | ||
} |
24 changes: 24 additions & 0 deletions
24
Test/SampleProjects/PreCompiledHeader/PreCompiledHeader.sln
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.28307.2017 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PreCompiledHeader", "PreCompiledHeader.vcxproj", "{B15B558D-11FA-4E61-9964-C739273E4FF4}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Emscripten = Debug|Emscripten | ||
Release|Emscripten = Release|Emscripten | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{B15B558D-11FA-4E61-9964-C739273E4FF4}.Debug|Emscripten.ActiveCfg = Debug|Emscripten | ||
{B15B558D-11FA-4E61-9964-C739273E4FF4}.Debug|Emscripten.Build.0 = Debug|Emscripten | ||
{B15B558D-11FA-4E61-9964-C739273E4FF4}.Release|Emscripten.ActiveCfg = Release|Emscripten | ||
{B15B558D-11FA-4E61-9964-C739273E4FF4}.Release|Emscripten.Build.0 = Release|Emscripten | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {F9092F9E-378A-4C32-919A-8FCA5EE9827D} | ||
EndGlobalSection | ||
EndGlobal |
56 changes: 56 additions & 0 deletions
56
Test/SampleProjects/PreCompiledHeader/PreCompiledHeader.vcxproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup Label="ProjectConfigurations"> | ||
<ProjectConfiguration Include="Debug|Emscripten"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>Emscripten</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|Emscripten"> | ||
<Configuration>Release</Configuration> | ||
<Platform>Emscripten</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<PropertyGroup Label="Globals"> | ||
<VCProjectVersion>15.0</VCProjectVersion> | ||
<ProjectGuid>{61072049-589B-42F4-92B2-93DC2F0AB285}</ProjectGuid> | ||
<RootNamespace>PreCompiledHeader</RootNamespace> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|Emscripten'"> | ||
<ConfigurationType>HTMLPage</ConfigurationType> | ||
<PlatformToolset>emcc</PlatformToolset> | ||
<EmscriptenDir>$(EMSDK)\upstream\emscripten\</EmscriptenDir> | ||
</PropertyGroup> | ||
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|Emscripten'"> | ||
<ConfigurationType>HTMLPage</ConfigurationType> | ||
<PlatformToolset>emcc</PlatformToolset> | ||
<EmscriptenDir>$(EMSDK)\upstream\emscripten\</EmscriptenDir> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
<ImportGroup Label="ExtensionSettings"> | ||
</ImportGroup> | ||
<ImportGroup Label="Shared"> | ||
</ImportGroup> | ||
<PropertyGroup Label="UserMacros" /> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Emscripten'"> | ||
<ClCompile> | ||
<PrecompiledHeader>Use</PrecompiledHeader> | ||
<PrecompiledHeaderFile>$(ProjectDir)\Header.pch.h</PrecompiledHeaderFile> | ||
</ClCompile> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Emscripten'"> | ||
<ClCompile> | ||
<PrecompiledHeader>Use</PrecompiledHeader> | ||
<PrecompiledHeaderFile>$(ProjectDir)\Header.pch.h</PrecompiledHeaderFile> | ||
</ClCompile> | ||
</ItemDefinitionGroup> | ||
<ItemGroup> | ||
<ClCompile Include="Main.cpp" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Header.pch.h" /> | ||
</ItemGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
<ImportGroup Label="ExtensionTargets"> | ||
</ImportGroup> | ||
</Project> |