Merge remote-tracking branch 'origin/API11' into tizen_8.0
[platform/core/csapi/tizenfx.git] / build / common.props
index 1d154e4..4906852 100644 (file)
@@ -4,7 +4,25 @@
     <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
     <GenerateDocumentationFile>True</GenerateDocumentationFile>
     <GenerateDependencyFile>False</GenerateDependencyFile>
-    <NoWarn>$(NoWarn);1570;1591</NoWarn>
+    <Deterministic>True</Deterministic>
+    <ProduceReferenceAssembly>True</ProduceReferenceAssembly>
+    <ProduceReferenceAssemblyInOutDir>True</ProduceReferenceAssemblyInOutDir>
+    <NoWarn>$(NoWarn);CS0618;CS0809</NoWarn>
+  </PropertyGroup>
+
+  <PropertyGroup>
+    <ProjectRootDir>$(MSBuildThisFileDirectory)..\</ProjectRootDir>
+  </PropertyGroup>
+
+  <PropertyGroup>
+    <AllTizenProfiles>mobile;tv;wearable</AllTizenProfiles>
+    <SupportedProfiles Condition="'$(SupportedProfiles)' == ''">$(AllTizenProfiles)</SupportedProfiles>
+  </PropertyGroup>
+
+  <PropertyGroup>
+    <DefineConstants Condition="'$(BuildProfile)' == 'tv'">$(DefineConstants);PROFILE_TV</DefineConstants>
+    <DefineConstants Condition="'$(BuildProfile)' == 'wearable'">$(DefineConstants);PROFILE_WEARABLE</DefineConstants>
+    <DefineConstants Condition="'$(BuildProfile)' == 'mobile'">$(DefineConstants);PROFILE_MOBILE</DefineConstants>
   </PropertyGroup>
 
   <PropertyGroup>
@@ -14,7 +32,7 @@
   </PropertyGroup>
 
   <Import Project="$(MSBuildThisFileDirectory)version.props" />
-
-  <Import Project="$(MSBuildThisFileDirectory)dependencies.props" />
+  <Import Project="$(MSBuildThisFileDirectory)analyzers.props"
+          Condition="'$(BuildWithAnalyzer)' == 'True' Or '$(BuildingInsideVisualStudio)' == 'True'" />
 
 </Project>