-
Notifications
You must be signed in to change notification settings - Fork 6
/
Platform.Common.props
86 lines (73 loc) · 4.34 KB
/
Platform.Common.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Paths -->
<PropertyGroup>
<EmscriptenDir Condition="'$(EmscriptenDir)' == ''">$(EMSCRIPTEN_ROOT)</EmscriptenDir>
<EmscriptenDir Condition="'$(EmscriptenDir)' == '' and '$(EMSDK)' != ''">$(EMSDK)\upstream\emscripten</EmscriptenDir>
<VCInstallDir Condition="'$(VCInstallDir)' == ''">$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\$(VisualStudioVersion)\Setup\VC', 'ProductDir', null, RegistryView.Registry64, RegistryView.Registry32))</VCInstallDir>
<VSInstallDir Condition="'$(VSInstallDir)' == ''">$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\$(VisualStudioVersion)\Setup\VS', 'ProductDir', null, RegistryView.Registry64, RegistryView.Registry32))</VSInstallDir>
<VCToolsInstallDir Condition="'$(VCToolsInstallDir)' == ''">VCToolsInstallDir_is_not_defined</VCToolsInstallDir>
<WindowsSDKDir Condition="'$(WindowsSDKDir)' == ''">WindowsSdkDir_is_not_defined</WindowsSDKDir>
<FrameworkDir Condition="'$(FrameworkDir)' == ''">FrameworkDir_is_not_defined</FrameworkDir>
<FrameworkSdkDir Condition="'$(FrameworkSdkDir)' == ''">FrameworkSdkDir_is_not_defined</FrameworkSdkDir>
</PropertyGroup>
<!-- General -->
<PropertyGroup>
<Language>C++</Language>
<DefaultLanguageSourceExtension>.cpp</DefaultLanguageSourceExtension>
<IntDir Condition="'$(IntDir)' == '' and '$(IntermediateOutputPath)' != ''">$(IntermediateOutputPath)</IntDir>
<IntDir Condition="'$(IntDir)' == '' and '$(IntermediateOutputPath)' == ''">$(Platform)\$(Configuration)\</IntDir>
<OutDir Condition="'$(OutDir)' == '' and '$(SolutionDir)' != ''">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
<OutDir Condition="'$(OutDir)' == '' and '$(SolutionDir)' == ''">$(IntDir)</OutDir>
<TargetName Condition="'$(TargetName)' == ''">$(ProjectName)</TargetName>
<ExtensionsToDeleteOnClean Condition="'$(ExtensionsToDeleteOnClean)' == ''">*.js;*.wasm;*.bc;*.a;*.o;*.tlog;*.cache;*.tmp;</ExtensionsToDeleteOnClean>
<PreBuildEventUseInBuild Condition="'$(PreBuildEventUseInBuild)' == ''">true</PreBuildEventUseInBuild>
<PreLinkEventUseInBuild Condition="'$(PreLinkEventUseInBuild)' == ''">true</PreLinkEventUseInBuild>
<PostBuildEventUseInBuild Condition="'$(PostBuildEventUseInBuild)' == ''">true</PostBuildEventUseInBuild>
</PropertyGroup>
<ItemGroup>
<CustomBuildStep Include="$(ProjectName)" />
<PreBuildEvent Include="$(ProjectName)" />
<PreLinkEvent Include="$(ProjectName)" />
<PostBuildEvent Include="$(ProjectName)" />
</ItemGroup>
<!-- Debugging -->
<PropertyGroup>
<DebuggerFlavor>WebBrowserDebugger</DebuggerFlavor>
<WebBrowserDebuggerHttpUrl>$(TargetPath)</WebBrowserDebuggerHttpUrl>
<WebBrowserDebuggerDebuggerType>Script</WebBrowserDebuggerDebuggerType>
</PropertyGroup>
<!-- Configuration types -->
<PropertyGroup Condition="'$(ConfigurationType)' == 'StaticLibrary'">
<TargetExt>.o</TargetExt>
<LibCompiled>true</LibCompiled>
</PropertyGroup>
<PropertyGroup Condition="'$(ConfigurationType)' == 'DynamicLibrary'">
<TargetExt>.so</TargetExt>
<LinkCompiled>true</LinkCompiled>
</PropertyGroup>
<PropertyGroup Condition="'$(ConfigurationType)' == 'HTMLPage'">
<TargetExt>.html</TargetExt>
<LinkCompiled>true</LinkCompiled>
</PropertyGroup>
<PropertyGroup Condition="'$(ConfigurationType)' == 'JSApplication'">
<TargetExt>.js</TargetExt>
<LinkCompiled>true</LinkCompiled>
</PropertyGroup>
<PropertyGroup Condition="'$(ConfigurationType)' == 'StandaloneWasm'">
<TargetExt>.wasm</TargetExt>
<LinkCompiled>true</LinkCompiled>
</PropertyGroup>
<!-- Project tools defaults -->
<ItemDefinitionGroup>
<ClCompile>
<SystemPreprocessorDefinitions Condition="'%(ClCompile.SystemPreprocessorDefinitions)' == ''">EMSCRIPTEN=1;__EMSCRIPTEN__=1</SystemPreprocessorDefinitions>
<WholeProgramOptimization Condition="'$(WholeProgramOptimization)' == 'true'">true</WholeProgramOptimization>
</ClCompile>
<Lib>
<LinkTimeCodeGeneration Condition="'$(WholeProgramOptimization)' == 'true'">true</LinkTimeCodeGeneration>
</Lib>
<Link>
<LinkTimeCodeGeneration Condition="'$(WholeProgramOptimization)' == 'true'">true</LinkTimeCodeGeneration>
</Link>
</ItemDefinitionGroup>
</Project>