forked from NETMF/llilum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildEnv.props
24 lines (24 loc) · 1.96 KB
/
BuildEnv.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" InitialTargets="VerifyZeligPaths" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ZELIG_ROOT Condition="'$(ZELIG_ROOT)'==''">$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))</ZELIG_ROOT>
<!-- For builds from the local tree, setup the SDK to use the local headers etc... in case the environment var
isn't set or currently not avaliable in this process.
-->
<LLILUM_SDK Condition="'$(LLILUM_SDK)'==''">$(ZELIG_ROOT)Zelig\</LLILUM_SDK>
<!-- LLILUM_LLVM contains the full source of LLVM -->
<LLVM_VERSION Condition="'$(LLVM_VERSION)'==''">3.7.0</LLVM_VERSION>
<LLILUM_LLVM Condition="'$(LLVM_SRCROOT_DIR)'==''">$([MSBuild]::GetRegistryValue(`HKEY_CURRENT_USER\Software\LLVM\$(LLVM_VERSION)\`, `SrcRoot`))</LLILUM_LLVM>
<LLILUM_LLVM Condition="'$(LLVM_SRCROOT_DIR)'!='' AND !HasTrailingSlash('$(LLVM_SRCROOT_DIR)')">$(LLVM_SRCROOT_DIR)\</LLILUM_LLVM>
<ZeligBuildRoot Condition="'$(ZeligBuildRoot)'==''">$(MSBuildThisFileDirectory)Zelig\ZeligBuild</ZeligBuildRoot>
<GnuWin32MakeInstallPath Condition="'$(GnuWin32MakeInstallPath)'==''">$([MSBuild]::GetRegistryValueFromView(`HKEY_LOCAL_MACHINE\Software\GnuWin32\`, `InstallPath`, null, RegistryView.Registry32))</GnuWin32MakeInstallPath>
<GnuWin32MakeInstallPath Condition="'$(GnuWin32MakeInstallPath)'!='' AND !HasTrailingSlash('$(GnuWin32MakeInstallPath)')">$(GnuWin32MakeInstallPath)\</GnuWin32MakeInstallPath>
</PropertyGroup>
<Target Name="VerifyZeligPaths">
<Error Condition="!EXISTS('$(ZELIG_ROOT)')" Text="Invalid ZELIG_ROOT: '$(ZELIG_ROOT)'" />
<Error Condition="!EXISTS('$(LLILUM_SDK)')" Text="Invalid LLILUM_SDK: '$(LLILUM_SDK)'" />
<Message Importance="high" Text="LLILUM_LLVM=$(LLILUM_LLVM)"/>
<Message Importance="high" Text="ZELIG_ROOT=$(ZELIG_ROOT)"/>
<Message Importance="high" Text="LLILUM_SDK=$(LLILUM_SDK)"/>
</Target>
</Project>