forked from NETMF/llilum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildEnv.props
23 lines (23 loc) · 2.23 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
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" InitialTargets="VerifyLlilumPaths" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LLILUM_ROOT Condition="'$(LLILUM_ROOT)'==''">$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))</LLILUM_ROOT>
<!-- For builds from the local tree, always use the local headers etc instead of the SDK... -->
<LLILUM_SDK>$(LLILUM_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>
<LlilumBuildRoot Condition="'$(LlilumBuildRoot)' ==''">$(MSBuildThisFileDirectory)Zelig\ZeligBuild</LlilumBuildRoot>
<LlilumSourceRoot Condition="'$(LlilumSourceRoot)'==''">$(MSBuildThisFileDirectory)Zelig\Zelig</LlilumSourceRoot>
<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="VerifyLlilumPaths">
<Error Condition="!EXISTS('$(LLILUM_ROOT)')" Text="Invalid LLILUM_ROOT: '$(LLILUM_ROOT)'" />
<Error Condition="!EXISTS('$(LLILUM_SDK)')" Text="Invalid LLILUM_SDK: '$(LLILUM_SDK)'" />
<Message Condition="'$(LlilumBuildShowVars)'!='' AND '$(LlilumBuildShowVars)'!='false'" Importance="high" Text="LLILUM_LLVM=$(LLILUM_LLVM)"/>
<Message Condition="'$(LlilumBuildShowVars)'!='' AND '$(LlilumBuildShowVars)'!='false'" Importance="high" Text="LLILUM_ROOT=$(LLILUM_ROOT)"/>
<Message Condition="'$(LlilumBuildShowVars)'!='' AND '$(LlilumBuildShowVars)'!='false'" Importance="high" Text="LLILUM_SDK=$(LLILUM_SDK)"/>
</Target>
</Project>