summaryrefslogtreecommitdiff
path: root/cpp/msbuild/ice.nuget.uwp.targets
blob: 8c25f4d086cc0478b2519f97f2bcca88c477ec7d (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
<Project DefaultTargets="NugetPack" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <PropertyGroup>
        <IceSrcRootDir>$(MSBuildThisFileDirectory)..\</IceSrcRootDir>
    </PropertyGroup>

    <ItemGroup>
        <!-- Slice compiler from x64 Release builds -->
        <Tools Include="$(IceSrcRootDir)bin\$(Platform)\$(Configuration)\slice2cpp.exe;
                        $(IceSrcRootDir)bin\$(Platform)\$(Configuration)\slice2html.exe" />

        <!-- public header files and sources -->
        <Headers Include="$(IceSrcRootDir)include\**\*.h"
                 Exclude="$(IceSrcRootDir)include\IceBT\*.h;
                          $(IceSrcRootDir)include\IceIAP\*.h;
                          $(IceSrcRootDir)include\generated\**\*.h"/>

        <Headers Include="$(IceSrcRootDir)include\generated\uwp\$(Platform)\$(Configuration)\**\*.h"
                 Exclude="$(IceSrcRootDir)include\generated\uwp\$(Platform)\$(Configuration)\IceDiscovery\*.h;
                          $(IceSrcRootDir)include\generated\uwp\$(Platform)\$(Configuration)\IceLocatorDiscovery\*.h"/>

        <Slices Include="$(IceSrcRootDir)..\slice\**\*.ice"
                Exclude="$(IceSrcRootDir)..\slice\IceDiscovery\*.ice;
                         $(IceSrcRootDir)..\slice\IceLocatorDiscovery\*.ice"/>
    </ItemGroup>

    <!-- Copy required files to the package specific directories -->
    <Target Name="NugetPack">
        <Copy SourceFiles="@(Tools)" DestinationFolder="$(PackageDirectory)\tools" />
        <Copy SourceFiles="@(Headers)" DestinationFolder="$(PackageDirectory)\build\native\include\%(Headers.RecursiveDir)" />
        <Copy SourceFiles="@(Slices)" DestinationFolder="$(PackageDirectory)\slice\%(Slices.RecursiveDir)" />
    </Target>
</Project>