summaryrefslogtreecommitdiff
path: root/src/bindings/mono/efl_sharp.csproj.in
blob: e03be339505361b4f495be836b5f1b5df82e3499 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Library</OutputType>
    <TargetFramework>netstandard@NETSTANDARD_VERSION@</TargetFramework>
  </PropertyGroup>

  <PropertyGroup>
    <PackageId>Efl.Csharp</PackageId>
    <Version>@EFL_VERSION@</Version>
    <Authors>EFL Team</Authors>
    <PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
  </PropertyGroup>

  <!-- <PropertyGroup Condition="'$(BuildType)'=='Beta'"> -->
  <!--   <DefineConstants>EFL_BETA</DefineConstants> -->
  <!-- </PropertyGroup> -->
  <PropertyGroup>
    <DefineConstants>@EFL_BETA@</DefineConstants>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="@BINDING_SRC@/efl_mono/*.cs" />
    <!-- FIXME Windows support -->
    <Compile Include="@BINDING_SRC@/eo_mono/*.cs" Exclude="@BINDING_SRC@/eo_mono/*Windows.cs" />
    <Compile Include="@BINDING_SRC@/eina_mono/*.cs" />
    <Compile Include="@BINDING_SRC@/eolian_mono/*.cs" />
    <Compile Include="@BINDING_SRC@/eldbus_mono/*.cs" />
  </ItemGroup>

  <!-- Calling `dotnet build` from a different folder seems to mess up the automatic source file discovery.
       But we want them to be included only when building the lib itself.
  -->
  <ItemGroup Condition="'$(BuildingLib)'=='Yes'">
    <Compile Include="./efl_mono/*.cs" />
    <Compile Include="./*.cs" />
  </ItemGroup>

  <!-- Code style configuration -->
  <ItemGroup>
    <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.6" />
    <PackageReference Include="StyleCop.Analyzers" Version="1.1.118" />
  </ItemGroup>
  <PropertyGroup>
    <CodeAnalysisRuleSet>@CA_RULESET@</CodeAnalysisRuleSet>
  </PropertyGroup>

</Project>