-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
native.cproj
51 lines (47 loc) · 1.68 KB
/
native.cproj
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
49
50
51
<Project Sdk="Vezel.Zig.Sdk">
<PropertyGroup>
<AssemblyName>Vezel.Celerity.Runtime.Native</AssemblyName>
<DefineConstants>
$(DefineConstants);
_XOPEN_SOURCE;
UNICODE;
WIN32_LEAN_AND_MEAN
</DefineConstants>
<!-- TODO: https://github.com/dotnet/msbuild/issues/6672 -->
<PackageDefines>false</PackageDefines>
<!-- TODO: https://github.com/vezel-dev/zig-sdk/issues/3 -->
<!-- TODO: https://github.com/vezel-dev/zig-sdk/issues/4 -->
<RuntimeIdentifiers>
linux-arm64;
linux-x64;
linux-musl-arm64;
linux-musl-x64;
osx-x64;
win-x64
</RuntimeIdentifiers>
</PropertyGroup>
<ItemGroup>
<PreludeHeader Include="celerity.h" />
</ItemGroup>
<Target Name="_GetNativeLibrary"
Returns="@(_NativeLibrary)">
<ItemGroup>
<_NativeLibrary Include="$(TargetPath)"
RuntimeIdentifier="$(RuntimeIdentifier)" />
</ItemGroup>
</Target>
<Target Name="_GetNativeLibraries"
Returns="@(_NativeLibrary)">
<ItemGroup>
<_RuntimeIdentifiers Include="$(RuntimeIdentifiers)" />
<_Projects Include="$(MSBuildProjectFullPath)"
Properties="RuntimeIdentifier=%(_RuntimeIdentifiers.Identity)" />
</ItemGroup>
<MSBuild Projects="@(_Projects)"
Targets="_GetNativeLibrary"
BuildInParallel="$(BuildInParallel)">
<Output TaskParameter="TargetOutputs"
ItemName="_NativeLibrary" />
</MSBuild>
</Target>
</Project>