forked from larsbrinkhoff/lbForth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.vcxproj
27 lines (27 loc) · 1.15 KB
/
build.vcxproj
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
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Build">
<CallTarget Targets="Install;Make" />
</Target>
<PropertyGroup>
<Packages>$(MSBuildProjectDirectory)\packages</Packages>
<Git>$(Packages)\PortableGit.2.5.1.01\tools\bin\git</Git>
<CygwinPath>$(Packages)\Cygwin.2.2.1.1\tools\bin</CygwinPath>
<LispPath>$(Packages)\ClozureCL.1.10.1\tools</LispPath>
<ToolsPath>$(CygwinPath);$(LispPath);$(Path)</ToolsPath>
<MetaCompiler>https://github.com/larsbrinkhoff/forth-metacompiler</MetaCompiler>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)'=='x86'">
<Cc>i686-pc-cygwin-gcc</Cc>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)'=='x64'">
<Cc>gcc</Cc>
</PropertyGroup>
<Target Name="Install">
<Exec Command="$(Git) clone $(MetaCompiler) lisp" />
</Target>
<Target Name="Make">
<Exec Command="set PATH=$(ToolsPath) & cp targets/forth.mk targets/x86/forth.mk" />
<Exec Command="set PATH=$(ToolsPath) & make TARGET=x86 OS=windows M32= CC=$(Cc)" />
</Target>
</Project>