-
Notifications
You must be signed in to change notification settings - Fork 69
/
principia.props
259 lines (246 loc) · 12.1 KB
/
principia.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<Keyword>Win32Proj</Keyword>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<!--Define project configurations. Nothing interesting can happen here.-->
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release_LLVM|x64">
<Configuration>Release_LLVM</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<!--Microsoft C++ stuff.-->
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<!--Definitions.-->
<PropertyGroup>
<!--Predicates.-->
<PrincipiaCompilerClangLLVM>false</PrincipiaCompilerClangLLVM>
<PrincipiaCompilerClangLLVM Condition="$(Configuration)==Release_LLVM">true</PrincipiaCompilerClangLLVM>
<PrincipiaOptimize>false</PrincipiaOptimize>
<PrincipiaOptimize Condition="$(Configuration.StartsWith('Release'))">true</PrincipiaOptimize>
<PrincipiaTestProject>true</PrincipiaTestProject>
<PrincipiaTestProject Condition="$(ProjectName) == ksp_plugin or
$(ProjectName) == serialization or
$(ProjectName) == benchmarks or
$(ProjectName) == tools">false</PrincipiaTestProject>
<!--Dependency paths.-->
<PrincipiaDependencyConfiguration>Debug</PrincipiaDependencyConfiguration>
<PrincipiaDependencyConfiguration Condition="$(PrincipiaOptimize)">Release</PrincipiaDependencyConfiguration>
</PropertyGroup>
<!--Compiler.-->
<PropertyGroup>
<PlatformToolset>v143</PlatformToolset>
<PlatformToolset Condition="$(PrincipiaCompilerClangLLVM)">ClangCL</PlatformToolset>
</PropertyGroup>
<!--Target.-->
<PropertyGroup>
<ConfigurationType Condition="$(ProjectName) == ksp_plugin or
$(ProjectName) == serialization">DynamicLibrary</ConfigurationType>
<ConfigurationType Condition="$(PrincipiaTestProject) or
$(ProjectName) == tools or
$(ProjectName) == benchmarks">Application</ConfigurationType>
</PropertyGroup>
<ItemDefinitionGroup Condition="$(ConfigurationType)==Application">
<Link>
<SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<!--Common options.-->
<PropertyGroup>
<CharacterSet>Unicode</CharacterSet>
<!--Can't use <LinkIncremental>true</LinkIncremental> due to profiling.-->
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<CallingConvention>vectorcall</CallingConvention>
<AdditionalIncludeDirectories>C:\Program Files;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/utf-8 /bigobj /w14714 /Zc:char8_t- /Zf</AdditionalOptions>
<AdditionalOptions Condition="$(ProjectName) != serialization">/w14061 %(AdditionalOptions)</AdditionalOptions>
<LanguageStandard>stdcpplatest</LanguageStandard>
<LanguageStandard_C>stdc17</LanguageStandard_C>
<UseStandardPreprocessor>true</UseStandardPreprocessor>
<WarningLevel Condition="!$(PrincipiaCompilerClangLLVM)">Level3</WarningLevel>
<WarningLevel Condition="$(PrincipiaCompilerClangLLVM) and
$(ProjectName) == serialization">TurnOffAllWarnings</WarningLevel>
<WarningLevel Condition="$(PrincipiaCompilerClangLLVM) and
$(ProjectName) != serialization">EnableAllWarnings</WarningLevel>
<AdditionalOptions Condition="$(PrincipiaCompilerClangLLVM)">
<!-- \-\-version-->
<!-- \-v-->
-fbracket-depth=257
-ferror-limit=1000
-Werror=typename-missing
-Werror=microsoft-template
-Werror=unknown-argument
-Wno-c++98-compat-pedantic
-Wno-c++98-compat
-Wno-c99-compat
-Wno-exit-time-destructors
-Wno-float-equal
-Wno-format-nonliteral
-Wno-global-constructors
-Wno-gnu-anonymous-struct
-Wno-gnu-zero-variadic-macro-arguments
-Wno-implicit-int-float-conversion
-Wno-macro-redefined
-Wno-mathematical-notation-identifier-extension
-Wno-nested-anon-types
-Wno-reserved-macro-identifier
-Wno-shadow-field-in-constructor
-Wno-shadow-uncaptured-local
-Wno-sign-compare
-Wno-sign-conversion
-Wno-undef
-Wno-unknown-pragmas
-Wno-unsafe-buffer-usage
-Xclang -fno-char8_t
<!--Warnings in protobuf generated code are none of our business.-->
-Xclang --system-header-prefix=serialization/
<!--Same for warnings in dependencies.-->
-Xclang --system-header-prefix=absl/
-Xclang --system-header-prefix=benchmark/
-Xclang --system-header-prefix=google/
-Xclang --system-header-prefix=glog/
-Xclang --system-header-prefix=gtest/
-Xclang --system-header-prefix=gmock/
-Xclang --system-header-prefix=zfp/
</AdditionalOptions>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<PreprocessorDefinitions Condition="!$(PrincipiaCompilerClangLLVM)">
_ENABLE_EXTENDED_ALIGNED_STORAGE;NOGDI;NOMINMAX;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<TreatWarningAsError Condition="!$(PrincipiaCompilerClangLLVM)">true</TreatWarningAsError>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
</Link>
</ItemDefinitionGroup>
<!--Debug options.-->
<PropertyGroup Condition="!$(PrincipiaOptimize)">
<UseDebugLibraries>true</UseDebugLibraries>
</PropertyGroup>
<ItemDefinitionGroup Condition="!$(PrincipiaOptimize)">
<ClCompile>
<Optimization>Disabled</Optimization>
</ClCompile>
<Link>
<AdditionalOptions>/ignore:4099</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<!--Release options.-->
<PropertyGroup Condition="$(PrincipiaOptimize)">
<UseDebugLibraries>false</UseDebugLibraries>
</PropertyGroup>
<ItemDefinitionGroup Condition="$(PrincipiaOptimize)">
<ClCompile>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<!--Import our property sheets.-->
<Import Project="$(SolutionDir)suppress_useless_warnings.props" />
<Import Project="$(SolutionDir)profiling.props" />
<Import Project="$(SolutionDir)include_solution.props" />
<Import Project="$(SolutionDir)..\Google\protobuf\vsprojects\portability_macros.props" />
<Import Project="$(SolutionDir)google_protobuf.props" />
<Import Project="$(SolutionDir)..\Google\glog\msvc\portability_macros.props" />
<Import Project="$(SolutionDir)google_glog.props" />
<Import Project="$(SolutionDir)..\Google\gipfeli\msvc\portability_macros.props" />
<Import Project="$(SolutionDir)google_gipfeli.props" />
<Import Project="$(SolutionDir)..\Google\abseil-cpp\msvc\portability_macros.props" />
<Import Project="$(SolutionDir)google_abseil-cpp.props" />
<Import Project="$(SolutionDir)generate_version_translation_unit.props" />
<Import Project="$(SolutionDir)inria_core-math.props" />
<Import Project="$(SolutionDir)llnl_zfp.props" />
<Import Project="$(SolutionDir)boost_config.props" />
<Import Project="$(SolutionDir)boost_multiprecision.props" />
<ImportGroup Condition="$(ProjectName) == benchmarks or
$(ProjectName) == ksp_plugin_test or
$(ProjectName) == journal">
<Import Project="$(SolutionDir)..\Google\benchmark\msvc\portability_macros.props" />
<Import Project="$(SolutionDir)..\Google\benchmark\msvc\windows_libraries.props" />
<Import Project="$(SolutionDir)google_benchmark.props" />
</ImportGroup>
<ImportGroup Condition="$(PrincipiaTestProject)">
<Import Project="$(SolutionDir)..\Google\googletest\googletest\msvc\portability_macros.props" />
<Import Project="$(SolutionDir)google_googletest.props" />
<Import Project="$(SolutionDir)google_googlemock_main.props" />
</ImportGroup>
<!--Tools.-->
<PropertyGroup>
<!--Protocompiler.-->
<Protoc>$(SolutionDir)..\Google\protobuf\vsprojects\Release\x64\protoc.exe</Protoc>
<ProtocCommand>"$(Protoc)" -I"$(SolutionDir)." --cpp_out=dllexport_decl=SERIALIZATION_DLL:.. "{0}"</ProtocCommand>
<ProtocMessage>Generating C++ files for {0}</ProtocMessage>
<ProtocOutputs>{0}.pb.h;{0}.pb.cc;</ProtocOutputs>
<!--Principia tools.-->
<PrincipiaGenerateProfiles>$(OutDir)tools.exe</PrincipiaGenerateProfiles>
<PrincipiaGenerateProfilesCommand>"$(PrincipiaGenerateProfiles)" generate_profiles</PrincipiaGenerateProfilesCommand>
<PrincipiaGenerateProfilesMessage>Generating C#/C++ files for {0}</PrincipiaGenerateProfilesMessage>
<PrincipiaGenerateProfilesOutputs>..\ksp_plugin\interface.generated.h;..\journal\player.generated.cc;..\journal\profiles.generated.h;..\journal\profiles.generated.cc;..\ksp_plugin_adapter\interface.generated.cs</PrincipiaGenerateProfilesOutputs>
</PropertyGroup>
<ItemDefinitionGroup Condition="$(ProjectName)==serialization">
<ClCompile>
<PreprocessorDefinitions>SERIALIZATION_DLL=__declspec(dllexport);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<!--Everybody depends on the serialization project.-->
<ItemDefinitionGroup Condition="$(ProjectName)!=serialization">
<ClCompile>
<PreprocessorDefinitions>SERIALIZATION_DLL=__declspec(dllimport);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup Condition="$(ProjectName)!=serialization">
<ProjectReference Include="$(SolutionDir)serialization\serialization.vcxproj">
<Project>{5c482c18-bbae-484d-a211-a25c86370061}</Project>
</ProjectReference>
</ItemGroup>
<!--journal depends on the ksp_plugin DLL.-->
<ItemDefinitionGroup Condition="$(ProjectName) == journal">
<ClCompile>
<PreprocessorDefinitions>PRINCIPIA_DLL_IMPORT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup Condition="$(ProjectName) == journal">
<ProjectReference Include="$(SolutionDir)ksp_plugin\ksp_plugin.vcxproj">
<Project>{a3f94607-2666-408f-af98-0e47d61c98bb}</Project>
</ProjectReference>
</ItemGroup>
<PropertyGroup Condition="$(ProjectName) == ksp_plugin">
<TargetName>principia</TargetName>
</PropertyGroup>
<!--Copy DLLs to GameData.-->
<ItemDefinitionGroup Condition="$(ConfigurationType) == DynamicLibrary">
<PostBuildEvent>
<Command>
if not exist "$(SolutionDir)$(Configuration)\GameData\Principia\$(Platform)" mkdir "$(SolutionDir)$(Configuration)\GameData\Principia\$(Platform)"
if exist "$(OutDir)glog.dll" copy /Y "$(OutDir)glog.dll" "$(SolutionDir)$(Configuration)\GameData\Principia\$(Platform)"
if exist "$(OutDir)libprotobuf.dll" copy /Y "$(OutDir)libprotobuf.dll" "$(SolutionDir)$(Configuration)\GameData\Principia\$(Platform)"
copy /Y "$(TargetPath)" "$(SolutionDir)$(Configuration)\GameData\Principia\$(Platform)"
copy /Y "$(OutDir)$(TargetName).pdb" "$(SolutionDir)$(Configuration)\GameData\Principia\$(Platform)"
</Command>
<Message>Copying $(TargetName).dll to GameData</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<!--This import must be at the end.-->
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>