summaryrefslogtreecommitdiff
path: root/src/bindings/mono/efl_sharp.csproj.in
blob: ce6a9e463c8b673f23bc37e4f8f0fc88f20bdfd0 (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
<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>
    <DocumentationFile>$(AssemblyName).xml</DocumentationFile>
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
  </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>

</Project>