diff --git a/LICENSE b/LICENSE index 20efd1b..f7e147f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,22 +1,21 @@ +Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. + The MIT License (MIT) - -Copyright (c) 2015 - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index 235681e..a12cd5e 100644 --- a/README.md +++ b/README.md @@ -1 +1,20 @@ -# node-uwp +##Node.js UWP +This project is a Universal Windows Platform (UWP) application that wraps Node.js and enables deployment to Windows IoT Core devices from Visual Studio. +The application is packaged into the [NTVS IoT Extension (Beta)](https://github.com/ms-iot/ntvsiot) installer. + +##To build: + +Prerequisites: + + * Windows 10 (latest) + * Python 2.6 or 2.7 + * Visual Studio 2015 (RC or later) + * Windows 10 Tools (Bundled in Visual Studio 2015, or install separately) + * Clone Node.js from https://github.com/microsoft/node + +Steps: + + * Open cmd window + * Set node_dir to the path of your Node.js clone + * Set release_dir if desired (optional if copyrelease is not used) + * Run "build.bat [x86|x64|arm] [copyrelease]" diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..2d1616a --- /dev/null +++ b/build.bat @@ -0,0 +1,86 @@ +@echo off + +if not defined node_dir ( + echo Error: set node_dir to the path of your Node.js clone. + goto end +) + +set batch_dir=%~dp0 + +set copyrelease= +set target_arch= +set target_arch= +set target_arch= +set buildall= + +:next-arg +if "%1"=="" goto args-done +if /i "%1"=="copyrelease" set copyrelease=1 +if /i "%1"=="arm" set target_arch=arm +if /i "%1"=="x86" set target_arch=x86 +if /i "%1"=="x64" set target_arch=x64 + +:arg-ok +shift +goto next-arg + +:args-done + +if defined copyrelease ( + if not defined release_dir ( + echo Error: release_dir needs to be set when using copyrelease. + goto end + ) +) + +if "%target_arch%"=="arm" goto arm +if "%target_arch%"=="x86" goto x86 +if "%target_arch%"=="x64" goto x64 + +set buildall=1 + +:arm +@rem build node.dll +call "%node_dir%\vcbuild.bat" arm chakra uwp-dll withoutssl +pushd %batch_dir% +@rem build nodeuwp.dll +set WindowsSdkDir=%programfiles(x86)%\Windows Kits\10\ +msbuild nodeuwp.sln /p:configuration=release /p:platform=arm + +@rem copy to release directory +if defined copyrelease ( + echo D | xcopy /y /f "%node_dir%\Release\node.dll" "%release_dir%\ARM" + echo D | xcopy /y /f "%~dp0\ARM\release\nodeuwp\nodeuwp.dll" "%release_dir%\ARM" +) +if not defined buildall goto end + +:x86 +@rem build node.dll +call "%node_dir%\vcbuild.bat" x86 chakra uwp-dll withoutssl +pushd %batch_dir% +@rem build nodeuwp.dll +set WindowsSdkDir=%programfiles(x86)%\Windows Kits\10\ +msbuild nodeuwp.sln /p:configuration=release /p:platform=x86 + +@rem copy to release directory +if defined copyrelease ( + echo D | xcopy /y /f "%node_dir%\Release\node.dll" "%release_dir%\x86" + echo D | xcopy /y /f "%~dp0\release\nodeuwp\nodeuwp.dll" "%release_dir%\x86" +) +if not defined buildall goto end + +:x64 +@rem build node.dll +call "%node_dir%\vcbuild.bat" x64 chakra uwp-dll withoutssl +pushd %batch_dir% +@rem build nodeuwp.dll +set WindowsSdkDir=%programfiles(x86)%\Windows Kits\10\ +msbuild nodeuwp.sln /p:configuration=release /p:platform=x64 + +@rem copy to release directory +if defined copyrelease ( + echo D | xcopy /y /f "%node_dir%\Release\node.dll" "%release_dir%\x64" + echo D | xcopy /y /f "%~dp0\x64\release\nodeuwp\nodeuwp.dll" "%release_dir%\x64" +) + +:end \ No newline at end of file diff --git a/nodeuwp.sln b/nodeuwp.sln new file mode 100644 index 0000000..bae4fd8 --- /dev/null +++ b/nodeuwp.sln @@ -0,0 +1,40 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.22815.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nodeuwp", "nodeuwp\nodeuwp.vcxproj", "{C762A70B-6A71-4A89-981C-54B231EF5991}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|ARM = Debug|ARM + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|ARM = Release|ARM + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C762A70B-6A71-4A89-981C-54B231EF5991}.Debug|ARM.ActiveCfg = Debug|ARM + {C762A70B-6A71-4A89-981C-54B231EF5991}.Debug|ARM.Build.0 = Debug|ARM + {C762A70B-6A71-4A89-981C-54B231EF5991}.Debug|ARM.Deploy.0 = Debug|ARM + {C762A70B-6A71-4A89-981C-54B231EF5991}.Debug|x64.ActiveCfg = Debug|x64 + {C762A70B-6A71-4A89-981C-54B231EF5991}.Debug|x64.Build.0 = Debug|x64 + {C762A70B-6A71-4A89-981C-54B231EF5991}.Debug|x64.Deploy.0 = Debug|x64 + {C762A70B-6A71-4A89-981C-54B231EF5991}.Debug|x86.ActiveCfg = Debug|Win32 + {C762A70B-6A71-4A89-981C-54B231EF5991}.Debug|x86.Build.0 = Debug|Win32 + {C762A70B-6A71-4A89-981C-54B231EF5991}.Debug|x86.Deploy.0 = Debug|Win32 + {C762A70B-6A71-4A89-981C-54B231EF5991}.Release|ARM.ActiveCfg = Release|ARM + {C762A70B-6A71-4A89-981C-54B231EF5991}.Release|ARM.Build.0 = Release|ARM + {C762A70B-6A71-4A89-981C-54B231EF5991}.Release|ARM.Deploy.0 = Release|ARM + {C762A70B-6A71-4A89-981C-54B231EF5991}.Release|x64.ActiveCfg = Release|x64 + {C762A70B-6A71-4A89-981C-54B231EF5991}.Release|x64.Build.0 = Release|x64 + {C762A70B-6A71-4A89-981C-54B231EF5991}.Release|x64.Deploy.0 = Release|x64 + {C762A70B-6A71-4A89-981C-54B231EF5991}.Release|x86.ActiveCfg = Release|Win32 + {C762A70B-6A71-4A89-981C-54B231EF5991}.Release|x86.Build.0 = Release|Win32 + {C762A70B-6A71-4A89-981C-54B231EF5991}.Release|x86.Deploy.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/nodeuwp/Assets/Logo.scale-100.png b/nodeuwp/Assets/Logo.scale-100.png new file mode 100644 index 0000000..e26771c Binary files /dev/null and b/nodeuwp/Assets/Logo.scale-100.png differ diff --git a/nodeuwp/Assets/SmallLogo.scale-100.png b/nodeuwp/Assets/SmallLogo.scale-100.png new file mode 100644 index 0000000..bf66b00 Binary files /dev/null and b/nodeuwp/Assets/SmallLogo.scale-100.png differ diff --git a/nodeuwp/Assets/SplashScreen.scale-100.png b/nodeuwp/Assets/SplashScreen.scale-100.png new file mode 100644 index 0000000..c951e03 Binary files /dev/null and b/nodeuwp/Assets/SplashScreen.scale-100.png differ diff --git a/nodeuwp/Assets/StoreLogo.scale-100.png b/nodeuwp/Assets/StoreLogo.scale-100.png new file mode 100644 index 0000000..dcb6727 Binary files /dev/null and b/nodeuwp/Assets/StoreLogo.scale-100.png differ diff --git a/nodeuwp/Assets/WideLogo.scale-100.png b/nodeuwp/Assets/WideLogo.scale-100.png new file mode 100644 index 0000000..9dd94b6 Binary files /dev/null and b/nodeuwp/Assets/WideLogo.scale-100.png differ diff --git a/nodeuwp/Package.appxmanifest b/nodeuwp/Package.appxmanifest new file mode 100644 index 0000000..378b612 --- /dev/null +++ b/nodeuwp/Package.appxmanifest @@ -0,0 +1,57 @@ + + + + + + + + + + nodeuwp + Microsoft + Assets\StoreLogo.png + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/nodeuwp/StartupTask.cpp b/nodeuwp/StartupTask.cpp new file mode 100644 index 0000000..cfab40c --- /dev/null +++ b/nodeuwp/StartupTask.cpp @@ -0,0 +1,145 @@ +/* + Copyright(c) Microsoft Open Technologies, Inc. All rights reserved. + + The MIT License(MIT) + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files(the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and / or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions : + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ + +#include "pch.h" +#include "StartupTask.h" +#include +#include "v8.h" +#include "node.h" + +using namespace nodeuwp; + +using namespace Platform; +using namespace Windows::ApplicationModel::Background; +using namespace concurrency; +using namespace Windows::UI::Core; +using namespace Windows::Storage; +using namespace Windows::Data::Xml::Dom; +using namespace Platform::Collections; + +// startupinfo.xml is used by Visual Studio to pass arguments to Node (see StartNode method). +// It's updated through Node.js UWP project properties and packaged in the project appx. +#define STARTUP_FILE L"startupinfo.xml" + +std::shared_ptr PlatformStringToChar(const wchar_t* str, int strSize) +{ + // Calculate the needed buffer size + DWORD bufferSize = WideCharToMultiByte(CP_UTF8, + 0, + str, + strSize, + nullptr, + 0, + nullptr, + nullptr); + + if (bufferSize == 0) + { + throw ref new ::Platform::Exception(GetLastError(), L"Failed to convert Platform string to utf8 string"); + } + + std::shared_ptr buffer(new char[bufferSize + 1], [](char* ptr) { delete[] ptr; }); + buffer.get()[bufferSize] = '\0'; + // Do the actual conversion + WideCharToMultiByte(CP_UTF8, + 0, + str, + strSize, + buffer.get(), + bufferSize, + nullptr, + nullptr); + + return buffer; +} + +void PopulateArgsVector(std::vector> &argVector, XmlNodeList^ argNodes) +{ + if (argNodes != nullptr) + { + IXmlNode^ textNode = argNodes->GetAt(0)->FirstChild; + + if (nullptr == textNode) + return; + + std::wstring s(((Platform::String^)textNode->NodeValue)->Data()); + std::wstring delimiter = L" "; + + size_t pos = 0; + std::wstring token; + std::shared_ptr argChar; + while ((pos = s.find(delimiter)) != std::wstring::npos) { + token = s.substr(0, pos); + argChar = PlatformStringToChar(token.c_str(), token.size()); + argVector.push_back(argChar); + s.erase(0, pos + delimiter.length()); + } + argChar = PlatformStringToChar(s.c_str(), s.size()); + argVector.push_back(argChar); + } +} + +void StartupTask::Run(IBackgroundTaskInstance^ taskInstance) +{ + BackgroundTaskDeferral^ deferral = taskInstance->GetDeferral(); + + auto installationLocation = Windows::ApplicationModel::Package::Current->InstalledLocation; + + task getStartupInfo(installationLocation->GetFileAsync(STARTUP_FILE)); + + getStartupInfo.then([=](StorageFile^ storageFile) + { + task getStartupInfoXml(XmlDocument::LoadFromFileAsync(storageFile)); + + getStartupInfoXml.then([=](XmlDocument^ startupInfoXml) + { + std::vector> argumentVector; + + std::shared_ptr argChar = PlatformStringToChar(L" ", 1); + argumentVector.push_back(argChar); + + XmlNodeList^ argumentNodes = startupInfoXml->SelectNodes(L"StartupInfo/NodeOptions"); + PopulateArgsVector(argumentVector, argumentNodes); + + argumentNodes = startupInfoXml->SelectNodes(L"StartupInfo/Script"); + PopulateArgsVector(argumentVector, argumentNodes); + + argumentNodes = startupInfoXml->SelectNodes(L"StartupInfo/ScriptArgs"); + PopulateArgsVector(argumentVector, argumentNodes); + + + int argc = argumentVector.size(); + + std::shared_ptr argv; + argv.reset(new char*[argc], [](char** ptr) { delete[] ptr; }); + for (unsigned int i = 0; i < argumentVector.size(); ++i) + { + argv.get()[i] = (argumentVector[i]).get(); + } + + node::Start(argc, argv.get()); + deferral->Complete(); + }); + }); +} diff --git a/nodeuwp/StartupTask.h b/nodeuwp/StartupTask.h new file mode 100644 index 0000000..28e26df --- /dev/null +++ b/nodeuwp/StartupTask.h @@ -0,0 +1,37 @@ +/* + Copyright(c) Microsoft Open Technologies, Inc. All rights reserved. + + The MIT License(MIT) + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files(the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and / or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions : + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ + +#pragma once + +#include "pch.h" + +namespace nodeuwp +{ + [Windows::Foundation::Metadata::WebHostHidden] + public ref class StartupTask sealed : public Windows::ApplicationModel::Background::IBackgroundTask + { + public: + virtual void Run(Windows::ApplicationModel::Background::IBackgroundTaskInstance^ taskInstance); + }; +} diff --git a/nodeuwp/nodeuwp.vcxproj b/nodeuwp/nodeuwp.vcxproj new file mode 100644 index 0000000..59fbc79 --- /dev/null +++ b/nodeuwp/nodeuwp.vcxproj @@ -0,0 +1,260 @@ + + + + + Debug + ARM + + + Debug + Win32 + + + Debug + x64 + + + Release + ARM + + + Release + Win32 + + + Release + x64 + + + + {c762a70b-6a71-4a89-981c-54b231ef5991} + Win32Proj + nodeuwp + en-US + 14.0 + true + Windows Store + 8.2 + true + true + true + nodeuwp_TemporaryKey.pfx + true + nodeuwp + + + + DynamicLibrary + true + v140 + + + DynamicLibrary + true + v140 + + + DynamicLibrary + true + v140 + + + DynamicLibrary + false + true + v140 + + + DynamicLibrary + false + true + v140 + + + DynamicLibrary + false + true + v140 + + + + + + + + + + + + + + + + + + + + + + + + false + + + false + + + false + + + false + + + false + + + false + + + + Use + _WINRT_DLL;%(PreprocessorDefinitions) + pch.h + $(IntDir)pch.pch + $(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories) + /bigobj %(AdditionalOptions) + 28204 + $(NODE_DIR)\src;$(NODE_DIR)\deps\chakrashim\include;%(AdditionalIncludeDirectories) + + + Console + runtimeobject.lib;node.lib;%(AdditionalDependencies) + $(NODE_DIR)\$(Configuration);%(AdditionalLibraryDirectories) + + + + + Use + _WINRT_DLL;NDEBUG;%(PreprocessorDefinitions) + pch.h + $(IntDir)pch.pch + $(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories) + /bigobj %(AdditionalOptions) + 28204 + $(NODE_DIR)\src;$(NODE_DIR)\deps\chakrashim\include;%(AdditionalIncludeDirectories) + + + Console + runtimeobject.lib;node.lib;%(AdditionalDependencies) + false + false + $(NODE_DIR)\$(Configuration);%(AdditionalLibraryDirectories) + + + + + setx NODE_DIR E:\Repos\my_ntvsiot + + + + + Use + _WINRT_DLL;%(PreprocessorDefinitions) + pch.h + $(IntDir)pch.pch + $(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories) + /bigobj %(AdditionalOptions) + 28204 + + + Console + runtimeobject.lib;%(AdditionalDependencies) + false + + + + + Use + _WINRT_DLL;NDEBUG;%(PreprocessorDefinitions) + pch.h + $(IntDir)pch.pch + $(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories) + /bigobj %(AdditionalOptions) + 28204 + $(NODE_DIR)\src;$(NODE_DIR)\deps\chakrashim\include;%(AdditionalIncludeDirectories) + + + Console + runtimeobject.lib;node.lib;%(AdditionalDependencies) + false + $(NODE_DIR)\$(Configuration);%(AdditionalLibraryDirectories) + + + + + Use + _WINRT_DLL;%(PreprocessorDefinitions) + pch.h + $(IntDir)pch.pch + $(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories) + /bigobj %(AdditionalOptions) + 28204 + + + Console + runtimeobject.lib;%(AdditionalDependencies) + false + + + + + Use + _WINRT_DLL;NDEBUG;%(PreprocessorDefinitions) + pch.h + $(IntDir)pch.pch + $(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories) + /bigobj %(AdditionalOptions) + 28204 + $(NODE_DIR)\src;$(NODE_DIR)\deps\chakrashim\include;%(AdditionalIncludeDirectories) + + + Console + runtimeobject.lib;node.lib;%(AdditionalDependencies) + false + $(NODE_DIR)\$(Configuration);%(AdditionalLibraryDirectories) + + + + + Designer + + + + + + + + + + + + + + + + Create + Create + Create + Create + Create + Create + + + + + + + + + + \ No newline at end of file diff --git a/nodeuwp/nodeuwp_TemporaryKey.pfx b/nodeuwp/nodeuwp_TemporaryKey.pfx new file mode 100644 index 0000000..42fc05a Binary files /dev/null and b/nodeuwp/nodeuwp_TemporaryKey.pfx differ diff --git a/nodeuwp/pch.cpp b/nodeuwp/pch.cpp new file mode 100644 index 0000000..cf6925f --- /dev/null +++ b/nodeuwp/pch.cpp @@ -0,0 +1,30 @@ +/* + Copyright(c) Microsoft Open Technologies, Inc. All rights reserved. + + The MIT License(MIT) + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files(the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and / or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions : + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ + +// +// pch.cpp +// Include the standard header and generate the precompiled header. +// + +#include "pch.h" diff --git a/nodeuwp/pch.h b/nodeuwp/pch.h new file mode 100644 index 0000000..c91c859 --- /dev/null +++ b/nodeuwp/pch.h @@ -0,0 +1,34 @@ +/* + Copyright(c) Microsoft Open Technologies, Inc. All rights reserved. + + The MIT License(MIT) + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files(the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and / or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions : + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ + +// +// pch.h +// Header for standard system include files. +// + +#pragma once + +#include +#include +#include