+++ /dev/null
-<Project DefaultTargets="Build">
-
- <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
-
- <PropertyGroup>
- <TargetFramework>netstandard1.6</TargetFramework>
- <GenerateDependencyFile>false</GenerateDependencyFile>
- <DummyAssemblyVersion>99.0.0</DummyAssemblyVersion>
- </PropertyGroup>
-
- <!-- Properties for directories -->
- <PropertyGroup>
- <ArtifactsDir>$(MSBuildThisFileDirectory)..\Artifacts\</ArtifactsDir>
- <ToolsDir>$(MSBuildThisFileDirectory)..\tools\</ToolsDir>
- <GenAPISourceDir>$(ArtifactsDir)bin\</GenAPISourceDir>
- <GenAPILibDir>$(MSBuildThisFileDirectory)obj\lib\</GenAPILibDir>
- <GenAPITargetDir>$(MSBuildThisFileDirectory)obj\ref\</GenAPITargetDir>
- </PropertyGroup>
-
- <!-- Properties for GenAPI tool -->
- <PropertyGroup>
- <GenAPIPath>$(ToolsDir)GenAPI.exe</GenAPIPath>
- <GenAPICommand>dotnet $(GenAPIPath)</GenAPICommand>
- </PropertyGroup>
-
- <!-- Source assemblies -->
- <ItemGroup>
- <TizenAssemblies Include="$(GenAPISourceDir)*.dll" />
- </ItemGroup>
-
- <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
-
- <Target Name="Compile" />
- <Target Name="CopyFilesToOutputDirectory" />
-
- <!-- Target for preparing reference lib directory -->
- <Target Name="Prepare">
- <ItemGroup>
- <ReferencePath Include="@(TizenAssemblies)" />
- </ItemGroup>
- <MakeDir Directories="$(GenAPILibDir);$(GenAPITargetDir)" />
- <Copy SourceFiles="@(ReferencePath)" DestinationFolder="$(GenAPILibDir)" />
- </Target>
-
- <!-- Target for generating *.AssemblyInfo.cs files -->
- <Target Name="GenerateAsmInfo"
- Inputs="@(TizenAssemblies)" Outputs="$(GenAPITargetDir)%(Filename).AssemblyInfo.cs">
-
- <PropertyGroup>
- <GeneratedAssemblyInfoSource>$(GenAPITargetDir)%(TizenAssemblies.Filename).AssemblyInfo.cs</GeneratedAssemblyInfoSource>
- </PropertyGroup>
-
- <ItemGroup>
- <AssemblyInfoLines Include="[assembly:System.Reflection.AssemblyVersion("$(DummyAssemblyVersion)")]" />
- </ItemGroup>
-
- <WriteLinesToFile
- File="$(GeneratedAssemblyInfoSource)"
- Lines="@(AssemblyInfoLines)"
- Overwrite="true" />
-
- <ItemGroup>
- <FileWrites Include="$(GeneratedAssemblyInfoSource)" />
- </ItemGroup>
-
- </Target>
-
- <!-- Target for generating reference source files using GenAPI -->
- <Target Name="GenerateAPI"
- Inputs="@(TizenAssemblies)" Outputs="$(GenAPITargetDir)%(Filename).cs">
- <PropertyGroup>
- <GeneratedReferenceAssemblySource>$(GenAPITargetDir)%(TizenAssemblies.Filename).cs</GeneratedReferenceAssemblySource>
- </PropertyGroup>
-
- <Message Text="[GenAPI] %(TizenAssemblies.Filename) -> $(GeneratedReferenceAssemblySource)" Importance="High" />
-
- <Exec Command='$(GenAPICommand) -assembly:"%(TizenAssemblies.Identity)" -libPath:"$(GenAPILibDir)" -out:"$(GeneratedReferenceAssemblySource)" -throw:"Not Supported Feature" -global' />
- </Target>
-
-
- <Target Name="GenerateDummy"
- DependsOnTargets="GenerateAsmInfo;GenerateAPI"
- Inputs="@(TizenAssemblies)" Outputs="$(OutputPath)%(TizenAssemblies.Filename).dll">
- <PropertyGroup>
- <ThisAssemblyFilename>%(TizenAssemblies.Filename)</ThisAssemblyFilename>
- <GeneratedAssemblyInfoSource>$(GenAPITargetDir)%(TizenAssemblies.Filename).AssemblyInfo.cs</GeneratedAssemblyInfoSource>
- <GeneratedReferenceAssemblySource>$(GenAPITargetDir)%(TizenAssemblies.Filename).cs</GeneratedReferenceAssemblySource>
- <GeneratedReferenceAssembly>$(OutputPath)%(TizenAssemblies.Filename).dll</GeneratedReferenceAssembly>
- </PropertyGroup>
-
- <Message Text="[Compile] %(TizenAssemblies.Filename) -> $(GeneratedReferenceAssembly)" Importance="High" />
-
- <ItemGroup>
- <FilteredReferencePath Include="@(ReferencePath)" Condition="%(Filename) != $(ThisAssemblyFilename)" />
- </ItemGroup>
-
- <Csc
- Sources="$(GeneratedReferenceAssemblySource);$(GeneratedAssemblyInfoSource)"
- OutputAssembly="$(GeneratedReferenceAssembly)"
- AdditionalLibPaths="$(AdditionalLibPaths)"
- AllowUnsafeBlocks="true"
- DefineConstants="$(DefineConstants)"
- DisabledWarnings="$(NoWarn)"
- TargetType="$(OutputType)"
- NoStandardLib="$(NoCompilerStandardLib)"
- References="@(FilteredReferencePath)"
- ToolExe="$(CscToolExe)"
- ToolPath="$(CscToolPath)" />
-
- </Target>
-
- <Target Name="AfterBuild" DependsOnTargets="Prepare;GenerateDummy">
-
- </Target>
-
-</Project>
-