Skip to content

Commit d9d96d1

Browse files
committed
Added propertysheet for common settings
1 parent 753ed58 commit d9d96d1

File tree

3 files changed

+235
-322
lines changed

3 files changed

+235
-322
lines changed

src/NppJsonViewer/NPPJSONViewer.vcxproj

Lines changed: 6 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -74,89 +74,69 @@
7474
</ImportGroup>
7575
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
7676
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
77+
<Import Project="..\NppJsonViewerCommon.props" />
7778
</ImportGroup>
7879
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
7980
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
81+
<Import Project="..\NppJsonViewerCommon.props" />
8082
</ImportGroup>
8183
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
8284
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
85+
<Import Project="..\NppJsonViewerCommon.props" />
8386
</ImportGroup>
8487
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="PropertySheets">
8588
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
89+
<Import Project="..\NppJsonViewerCommon.props" />
8690
</ImportGroup>
8791
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
8892
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
93+
<Import Project="..\NppJsonViewerCommon.props" />
8994
</ImportGroup>
9095
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="PropertySheets">
9196
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
97+
<Import Project="..\NppJsonViewerCommon.props" />
9298
</ImportGroup>
9399
<PropertyGroup Label="UserMacros" />
94100
<PropertyGroup>
95101
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
96-
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)Build\Bin\$(Configuration)\$(Platform)\</OutDir>
97-
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">$(SolutionDir)Build\Bin\$(Configuration)\$(Platform)\</OutDir>
98-
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)Build\Bin\$(Configuration)\$(Platform)\</OutDir>
99-
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)Build\Intermediate\$(ProjectName)\$(Configuration)\$(Platform)\</IntDir>
100-
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">$(SolutionDir)Build\Intermediate\$(ProjectName)\$(Configuration)\$(Platform)\</IntDir>
101-
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)Build\Intermediate\$(ProjectName)\$(Configuration)\$(Platform)\</IntDir>
102102
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
103103
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">true</LinkIncremental>
104104
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
105-
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)Build\Bin\$(Configuration)\$(Platform)\</OutDir>
106-
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">$(SolutionDir)Build\Bin\$(Configuration)\$(Platform)\</OutDir>
107-
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)Build\Bin\$(Configuration)\$(Platform)\</OutDir>
108-
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)Build\Intermediate\$(ProjectName)\$(Configuration)\$(Platform)\</IntDir>
109-
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">$(SolutionDir)Build\Intermediate\$(ProjectName)\$(Configuration)\$(Platform)\</IntDir>
110-
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)Build\Intermediate\$(ProjectName)\$(Configuration)\$(Platform)\</IntDir>
111105
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
112106
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">false</LinkIncremental>
113107
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
114108
</PropertyGroup>
115109
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
116110
<IncludePath>$(SolutionDir)UtilityLib;$(IncludePath)</IncludePath>
117-
<ExternalIncludePath>$(SolutionDir)..\external\npp;$(SolutionDir)..\external\rapidjson\include;$(ExternalIncludePath)</ExternalIncludePath>
118111
</PropertyGroup>
119112
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
120113
<IncludePath>$(SolutionDir)UtilityLib;$(IncludePath)</IncludePath>
121-
<ExternalIncludePath>$(SolutionDir)..\external\npp;$(SolutionDir)..\external\rapidjson\include;$(ExternalIncludePath)</ExternalIncludePath>
122114
</PropertyGroup>
123115
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
124116
<IncludePath>$(SolutionDir)UtilityLib;$(IncludePath)</IncludePath>
125-
<ExternalIncludePath>$(SolutionDir)..\external\npp;$(SolutionDir)..\external\rapidjson\include;$(ExternalIncludePath)</ExternalIncludePath>
126117
</PropertyGroup>
127118
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
128119
<IncludePath>$(SolutionDir)UtilityLib;$(IncludePath)</IncludePath>
129-
<ExternalIncludePath>$(SolutionDir)..\external\npp;$(SolutionDir)..\external\rapidjson\include;$(ExternalIncludePath)</ExternalIncludePath>
130120
</PropertyGroup>
131121
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
132122
<IncludePath>$(SolutionDir)UtilityLib;$(IncludePath)</IncludePath>
133-
<ExternalIncludePath>$(SolutionDir)..\external\npp;$(SolutionDir)..\external\rapidjson\include;$(ExternalIncludePath)</ExternalIncludePath>
134123
</PropertyGroup>
135124
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
136125
<IncludePath>$(SolutionDir)UtilityLib;$(IncludePath)</IncludePath>
137-
<ExternalIncludePath>$(SolutionDir)..\external\npp;$(SolutionDir)..\external\rapidjson\include;$(ExternalIncludePath)</ExternalIncludePath>
138126
</PropertyGroup>
139127
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
140128
<ClCompile>
141129
<Optimization>Disabled</Optimization>
142130
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;NPPJSONVIEWER_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
143131
<MinimalRebuild>false</MinimalRebuild>
144132
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
145-
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
146-
<WarningLevel>Level4</WarningLevel>
147133
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
148-
<SDLCheck>true</SDLCheck>
149-
<MultiProcessorCompilation>true</MultiProcessorCompilation>
150-
<TreatWarningAsError>true</TreatWarningAsError>
151-
<LanguageStandard>stdcpp20</LanguageStandard>
152-
<ConformanceMode>true</ConformanceMode>
153134
</ClCompile>
154135
<Link>
155136
<AdditionalDependencies>shlwapi.lib;comctl32.lib;Version.lib;%(AdditionalDependencies)</AdditionalDependencies>
156137
<GenerateDebugInformation>true</GenerateDebugInformation>
157138
<SubSystem>Windows</SubSystem>
158139
<TargetMachine>MachineX64</TargetMachine>
159-
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
160140
</Link>
161141
</ItemDefinitionGroup>
162142
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
@@ -165,85 +145,47 @@
165145
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;NPPJSONVIEWER_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
166146
<MinimalRebuild>false</MinimalRebuild>
167147
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
168-
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
169-
<WarningLevel>Level4</WarningLevel>
170148
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
171-
<SDLCheck>true</SDLCheck>
172-
<MultiProcessorCompilation>true</MultiProcessorCompilation>
173-
<TreatWarningAsError>true</TreatWarningAsError>
174-
<LanguageStandard>stdcpp20</LanguageStandard>
175-
<ConformanceMode>true</ConformanceMode>
176149
</ClCompile>
177150
<Link>
178151
<AdditionalDependencies>shlwapi.lib;comctl32.lib;Version.lib;%(AdditionalDependencies)</AdditionalDependencies>
179152
<GenerateDebugInformation>true</GenerateDebugInformation>
180153
<SubSystem>Windows</SubSystem>
181-
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
182154
</Link>
183155
</ItemDefinitionGroup>
184156
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
185157
<ClCompile>
186158
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;NPPJSONVIEWER_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
187-
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
188-
<WarningLevel>Level4</WarningLevel>
189159
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
190-
<SDLCheck>true</SDLCheck>
191-
<MultiProcessorCompilation>true</MultiProcessorCompilation>
192-
<TreatWarningAsError>true</TreatWarningAsError>
193-
<LanguageStandard>stdcpp20</LanguageStandard>
194-
<ConformanceMode>true</ConformanceMode>
195160
</ClCompile>
196161
<Link>
197162
<AdditionalDependencies>shlwapi.lib;comctl32.lib;Version.lib;%(AdditionalDependencies)</AdditionalDependencies>
198163
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
199164
<SubSystem>Windows</SubSystem>
200-
<OptimizeReferences>true</OptimizeReferences>
201-
<EnableCOMDATFolding>true</EnableCOMDATFolding>
202165
<TargetMachine>MachineX64</TargetMachine>
203-
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
204166
</Link>
205167
</ItemDefinitionGroup>
206168
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
207169
<ClCompile>
208170
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;NPPJSONVIEWER_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
209-
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
210-
<WarningLevel>Level4</WarningLevel>
211171
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
212-
<SDLCheck>true</SDLCheck>
213-
<MultiProcessorCompilation>true</MultiProcessorCompilation>
214-
<TreatWarningAsError>true</TreatWarningAsError>
215-
<LanguageStandard>stdcpp20</LanguageStandard>
216-
<ConformanceMode>true</ConformanceMode>
217172
</ClCompile>
218173
<Link>
219174
<AdditionalDependencies>shlwapi.lib;comctl32.lib;Version.lib;%(AdditionalDependencies)</AdditionalDependencies>
220175
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
221176
<SubSystem>Windows</SubSystem>
222-
<OptimizeReferences>true</OptimizeReferences>
223-
<EnableCOMDATFolding>true</EnableCOMDATFolding>
224-
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
225177
</Link>
226178
</ItemDefinitionGroup>
227179
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
228180
<ClCompile>
229181
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;NPPJSONVIEWER_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
230-
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
231-
<WarningLevel>Level4</WarningLevel>
232182
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
233-
<SDLCheck>true</SDLCheck>
234-
<MultiProcessorCompilation>true</MultiProcessorCompilation>
235-
<TreatWarningAsError>true</TreatWarningAsError>
236-
<LanguageStandard>stdcpp20</LanguageStandard>
237-
<ConformanceMode>true</ConformanceMode>
238183
</ClCompile>
239184
<Link>
240185
<AdditionalDependencies>shlwapi.lib;comctl32.lib;Version.lib;%(AdditionalDependencies)</AdditionalDependencies>
241186
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
242187
<SubSystem>Windows</SubSystem>
243-
<OptimizeReferences>true</OptimizeReferences>
244-
<EnableCOMDATFolding>true</EnableCOMDATFolding>
245188
<TargetMachine>MachineX86</TargetMachine>
246-
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
247189
</Link>
248190
</ItemDefinitionGroup>
249191
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
@@ -252,21 +194,13 @@
252194
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;NPPJSONVIEWER_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
253195
<MinimalRebuild>false</MinimalRebuild>
254196
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
255-
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
256-
<WarningLevel>Level4</WarningLevel>
257197
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
258-
<SDLCheck>true</SDLCheck>
259-
<MultiProcessorCompilation>true</MultiProcessorCompilation>
260-
<TreatWarningAsError>true</TreatWarningAsError>
261-
<LanguageStandard>stdcpp20</LanguageStandard>
262-
<ConformanceMode>true</ConformanceMode>
263198
</ClCompile>
264199
<Link>
265200
<AdditionalDependencies>shlwapi.lib;comctl32.lib;Version.lib;%(AdditionalDependencies)</AdditionalDependencies>
266201
<GenerateDebugInformation>true</GenerateDebugInformation>
267202
<SubSystem>Windows</SubSystem>
268203
<TargetMachine>MachineX86</TargetMachine>
269-
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
270204
</Link>
271205
</ItemDefinitionGroup>
272206
<ItemGroup>

src/NppJsonViewerCommon.props

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ImportGroup Label="PropertySheets" />
4+
<PropertyGroup Label="UserMacros" />
5+
<PropertyGroup>
6+
<OutDir>$(SolutionDir)Build\Bin\$(Configuration)\$(Platform)\</OutDir>
7+
<IntDir>$(SolutionDir)Build\Intermediate\$(ProjectName)\$(Configuration)\$(Platform)\</IntDir>
8+
<ExternalIncludePath>$(SolutionDir)..\external\npp;$(SolutionDir)..\external\rapidjson\include;$(ExternalIncludePath)</ExternalIncludePath>
9+
</PropertyGroup>
10+
<ItemDefinitionGroup>
11+
<ClCompile>
12+
<WarningLevel>Level4</WarningLevel>
13+
<TreatWarningAsError>true</TreatWarningAsError>
14+
<SDLCheck>true</SDLCheck>
15+
<MultiProcessorCompilation>true</MultiProcessorCompilation>
16+
<LanguageStandard>stdcpp20</LanguageStandard>
17+
<ConformanceMode>true</ConformanceMode>
18+
<DisableAnalyzeExternal>true</DisableAnalyzeExternal>
19+
</ClCompile>
20+
<Link>
21+
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
22+
</Link>
23+
</ItemDefinitionGroup>
24+
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
25+
<ClCompile>
26+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
27+
</ClCompile>
28+
<Link>
29+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
30+
<OptimizeReferences>true</OptimizeReferences>
31+
</Link>
32+
</ItemDefinitionGroup>
33+
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
34+
<ClCompile>
35+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
36+
</ClCompile>
37+
</ItemDefinitionGroup>
38+
<ItemGroup />
39+
</Project>

0 commit comments

Comments
 (0)