-
-
Notifications
You must be signed in to change notification settings - Fork 526
Expand file tree
/
Copy pathConditionalSymbols.props
More file actions
26 lines (23 loc) · 1.2 KB
/
ConditionalSymbols.props
File metadata and controls
26 lines (23 loc) · 1.2 KB
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
<Project>
<PropertyGroup Label="Compile Options">
<!-- true to include all conditional paths / attributes, mainly for testing -->
<SM_IncludeAllConditionals>false</SM_IncludeAllConditionals>
<!-- Mode for ServiceProvider registrations: CodeGeneration, Reflection -->
<SM_RegisterServiceMode>CodeGeneration</SM_RegisterServiceMode>
<!-- true to include StabilityMatrix.Avalonia.Diagnostic for log window -->
<SM_IncludeLogWindow>false</SM_IncludeLogWindow>
</PropertyGroup>
<PropertyGroup Condition="'$(SM_IncludeAllConditionals)' == 'true'">
<!-- REGISTER_SERVICE_USAGES: Include Injectio attributes -->
<DefineConstants>$(DefineConstants);REGISTER_SERVICE_USAGES</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(SM_IncludeLogWindow)' == 'true'">
<!-- SM_LOG_WINDOW: Include Avalonia diagnostic window -->
<DefineConstants>$(DefineConstants);SM_LOG_WINDOW</DefineConstants>
</PropertyGroup>
<PropertyGroup Label="RegisterServiceMode Definitions">
<DefineConstants Condition="'$(SM_RegisterServiceMode)' == 'Reflection'">
$(DefineConstants);REGISTER_SERVICE_REFLECTION;REGISTER_SERVICE_USAGES
</DefineConstants>
</PropertyGroup>
</Project>