Add TizenPlatformPackages list for force generating ref asm
authorWonYoung Choi <wy80.choi@samsung.com>
Thu, 11 May 2017 01:19:23 +0000 (10:19 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Thu, 11 May 2017 01:19:23 +0000 (10:19 +0900)
Change-Id: Ic9db56bb2eaa6136842beef1c9a506a9f7517797

Tizen.GBS.BuildTasks/Tizen.GBS.ImportAfter.targets
Tools/TizenPlatformPackages.txt [new file with mode: 0644]

index 26e8723..0cdb516 100644 (file)
@@ -1,5 +1,10 @@
 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 
+  <!-- Tizen's dotnet-build-tools properties -->
+  <PropertyGroup>
+    <__ToolsDir>/usr/share/dotnet-build-tools</__ToolsDir>
+  </PropertyGroup>
+
   <!-- UseTizenGBSImportAfterTarget -->
   <PropertyGroup Condition="'$(UseTizenGBSImportAfterTarget)' == ''">
     <UseTizenGBSImportAfterTarget>false</UseTizenGBSImportAfterTarget>
@@ -14,7 +19,7 @@
     <TargetFramework Condition="'$(_ShortTargetFrameworkIdentifier)' != ''">$(_ShortTargetFrameworkIdentifier)$(_TargetFrameworkVersionWithoutV)</TargetFramework>
   </PropertyGroup>
 
-  <!-- Suppress Missing XML comment warning -->
+  <!-- Suppress missing XML comment warning -->
   <PropertyGroup>
     <NoWarn>$(NoWarn);1591</NoWarn>
   </PropertyGroup>
@@ -23,6 +28,7 @@
   <PropertyGroup Condition="'$(UseTizenGBSImportAfterTarget)' == 'true'">
     <BuildDependsOn>
       $(BuildDependsOn);
+      __CheckTizenPlatformPackages;
       __GenerateReferenceAssembly;
       __AppendNuGetAssemblyFiles;
     </BuildDependsOn>
@@ -39,7 +45,7 @@
     <_GenAPITargetSourcePath>$(_GenAPITargetDir)/$(TargetName).cs</_GenAPITargetSourcePath>
     <_GenAPITargetAssemblyInfoPath>$(_GenAPITargetDir)/$(TargetName).AssemblyInfo.cs</_GenAPITargetAssemblyInfoPath>
     <_GenAPITargetAssemblyPath>$(_GenAPITargetDir)/$(TargetName).dll</_GenAPITargetAssemblyPath>
-    <_GenAPIPath Condition="'$(_GenAPIPath)' == ''">/usr/share/dotnet-build-tools/GenAPI/GenAPI.exe</_GenAPIPath>
+    <_GenAPIPath Condition="'$(_GenAPIPath)' == ''">$(__ToolsDir)/GenAPI/GenAPI.exe</_GenAPIPath>
     <_GenAPICommand>dotnet $(_GenAPIPath)</_GenAPICommand>
   </PropertyGroup>
 
     </NuGetAssemblyFile>
   </ItemGroup>
 
-  <ItemGroup Condition="'$(GenerateReferenceAssembly)' == 'true'">
-    <NuGetAssemblyFile Include="$(DocumentationFile)">
-      <TargetPath>ref/$(TargetFramework)</TargetPath>
-    </NuGetAssemblyFile>
-    <NuGetAssemblyFile Include="$(_GenAPITargetAssemblyPath)">
-      <TargetPath>ref/$(TargetFramework)</TargetPath>
-    </NuGetAssemblyFile>
-  </ItemGroup>
+  <!-- Check TizenPlatformPackages -->
+  <Target Name="__CheckTizenPlatformPackages">
+    <ReadLinesFromFile File="$(__ToolsDir)/TizenPlatformPackages.txt">
+      <Output TaskParameter="Lines" ItemName="TizenPlatformPackages" />
+    </ReadLinesFromFile>
+    <PropertyGroup>
+      <GenerateReferenceAssembly Condition="'%(TizenPlatformPackages.Identity)' == '$(AssemblyName)'">true</GenerateReferenceAssembly>
+    </PropertyGroup>
+  </Target>
 
   <!-- Append _NuGetFiles to .nuspec file -->
   <Target Name="__AppendNuGetAssemblyFiles" Condition="Exists('$(NuSpecFile)')">
           Outputs="$(_GenAPITargetAssemblyPath)"
           DependsOnTargets="__GenerateReferenceAssemblySource;__GenerateAssemblyInfoSource">
 
+    <ItemGroup>
+      <NuGetAssemblyFile Include="$(DocumentationFile)">
+        <TargetPath>ref/$(TargetFramework)</TargetPath>
+      </NuGetAssemblyFile>
+      <NuGetAssemblyFile Include="$(_GenAPITargetAssemblyPath)">
+        <TargetPath>ref/$(TargetFramework)</TargetPath>
+      </NuGetAssemblyFile>
+    </ItemGroup>
+
     <!-- for ToolVersion 4.0 -->
     <Csc Condition="'$(MSBuildAssemblyVersion)' == ''"
         Sources="@(__RefCompile)"
diff --git a/Tools/TizenPlatformPackages.txt b/Tools/TizenPlatformPackages.txt
new file mode 100644 (file)
index 0000000..5a95dd1
--- /dev/null
@@ -0,0 +1,59 @@
+ElmSharp
+Tizen
+Tizen.Account.AccountManager
+Tizen.Account.FidoClient
+Tizen.Account.OAuth2
+Tizen.Applications
+Tizen.Applications.Alarm
+Tizen.Applications.Badge
+Tizen.Applications.Common
+Tizen.Applications.DataControl
+Tizen.Applications.MessagePort
+Tizen.Applications.Notification
+Tizen.Applications.NotificationEventListener
+Tizen.Applications.PackageManager
+Tizen.Applications.Preference
+Tizen.Applications.RemoteView
+Tizen.Applications.Service
+Tizen.Applications.ToastMessage
+Tizen.Applications.UI
+Tizen.Applications.WidgetApplication
+Tizen.Applications.WidgetControl
+Tizen.Content.Download
+Tizen.Content.MediaContent
+Tizen.Content.MimeType
+Tizen.Library
+Tizen.Location
+Tizen.Location.Geofence
+Tizen.Log
+Tizen.Maps
+Tizen.Messaging
+Tizen.Messaging.Push
+Tizen.Multimedia
+Tizen.Network.Bluetooth
+Tizen.Network.Connection
+Tizen.Network.IoTConnectivity
+Tizen.Network.Nfc
+Tizen.Network.Smartcard
+Tizen.Network.WiFi
+Tizen.Network.WiFiDirect
+Tizen.NUI
+Tizen.PhonenumberUtils
+Tizen.Pims.Calendar
+Tizen.Pims.Contacts
+Tizen.Security
+Tizen.Security.SecureRepository
+Tizen.Sensor
+Tizen.System
+Tizen.System.Feedback
+Tizen.System.Information
+Tizen.System.MediaKey
+Tizen.System.Storage
+Tizen.System.SystemSettings
+Tizen.Telephony
+Tizen.Tracer
+Tizen.Uix.InputMethodManager
+Tizen.Uix.Stt
+Tizen.Uix.Tts
+Tizen.Uix.VoiceControl
+Tizen.WebView
\ No newline at end of file