| OLD | NEW |
| (Empty) |
| 1 <?xml version="1.0" encoding="utf-8"?> | |
| 2 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTarg
ets="Build"> | |
| 3 | |
| 4 <UsingTask TaskName="NaClVsx.Tasks.NaClExec" AssemblyFile="NaClVsx.Tasks.dll"/
> | |
| 5 | |
| 6 <PropertyGroup Condition="'$(TargetArch)' == 'x86_32'"> | |
| 7 <gcpp>i686-nacl-g++.exe</gcpp> | |
| 8 <gcc>i686-nacl-gcc.exe</gcc> | |
| 9 </PropertyGroup> | |
| 10 | |
| 11 <PropertyGroup Condition="'$(TargetArch)' == 'x86_64'"> | |
| 12 <gcpp>x86_64-nacl-g++.exe</gcpp> | |
| 13 <gcc>x86_64-nacl-gcc.exe</gcc> | |
| 14 </PropertyGroup> | |
| 15 | |
| 16 | |
| 17 <PropertyGroup Condition="'$(TargetArch)' == 'x86_32'"> | |
| 18 <StartProgram>$(NaClSDKRoot)\sel_ldr_x86_32.exe</StartProgram> | |
| 19 <archflag>-m32</archflag> | |
| 20 </PropertyGroup> | |
| 21 | |
| 22 <PropertyGroup Condition="'$(TargetArch)' == 'x86_64'"> | |
| 23 <StartProgram>$(NaClSDKRoot)\sel_ldr_x86_64.exe</StartProgram> | |
| 24 <archflag>-m64</archflag> | |
| 25 </PropertyGroup> | |
| 26 | |
| 27 <PropertyGroup Condition="'$(TargetArch)' == 'x86_32'"> | |
| 28 <StartProgram>$(NaClSDKRoot)\sel_ldr_x86_32.exe</StartProgram> | |
| 29 <archlinkflag>-melf32_nacl</archlinkflag> | |
| 30 </PropertyGroup> | |
| 31 | |
| 32 <PropertyGroup Condition="'$(TargetArch)' == 'x86_64'"> | |
| 33 <StartProgram>$(NaClSDKRoot)\sel_ldr_x86_64.exe</StartProgram> | |
| 34 <archlinkflag>-melf64_nacl</archlinkflag> | |
| 35 </PropertyGroup> | |
| 36 | |
| 37 | |
| 38 <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> | |
| 39 <DebugSymbols>true</DebugSymbols> | |
| 40 <OutputPath>bin\Debug\</OutputPath> | |
| 41 <IntermediatePath>obj\Debug\</IntermediatePath> | |
| 42 <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging> | |
| 43 </PropertyGroup> | |
| 44 <PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | |
| 45 <DebugSymbols>true</DebugSymbols> | |
| 46 <OutputPath>bin\Release\</OutputPath> | |
| 47 <IntermediatePath>obj\Release\</IntermediatePath> | |
| 48 <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging> | |
| 49 </PropertyGroup> | |
| 50 | |
| 51 <PropertyGroup> | |
| 52 <OutputFile>$(MSBuildProjectName)_$(TargetArch).nexe</OutputFile> | |
| 53 <OutputFullPath>$(OutputPath)\$(OutputFile)</OutputFullPath> | |
| 54 </PropertyGroup> | |
| 55 | |
| 56 <ItemGroup> | |
| 57 <Obj Include="@(Compile -> '$(IntermediatePath)\%(filename).o')"/> | |
| 58 </ItemGroup> | |
| 59 | |
| 60 <ItemGroup> | |
| 61 <LinkLibs Include="$(LinkLibs)"/> | |
| 62 </ItemGroup> | |
| 63 | |
| 64 <ItemGroup> | |
| 65 <Lib Include="$(Lib)"/> | |
| 66 </ItemGroup> | |
| 67 | |
| 68 <ItemGroup> | |
| 69 <WebSrcs Include="*.html" /> | |
| 70 <WebSrcs Include="*.js" /> | |
| 71 <WebSrcs Include="*.nmf" /> | |
| 72 </ItemGroup> | |
| 73 | |
| 74 <Target Name="Compile" | |
| 75 Inputs="@(Compile)" | |
| 76 Outputs="@(Obj)"> | |
| 77 <MakeDir Directories="$(IntermediatePath)"/> | |
| 78 <NaClExec Command="$(gcpp)" | |
| 79 C_Command="$(gcc)" | |
| 80 CFlags="$(CFLAGS)" | |
| 81 CCFlags="$(CCFLAGS)" | |
| 82 CXXFlags="$(CXXFLAGS)" | |
| 83 FileExtension="@(Compile -> '%(extension)')" | |
| 84 Arguments="$(INCLUDES) $(OPT_FLAGS) $(archflag) -c '%(FullPath)' -o @(
Compile -> '$(IntermediatePath)%(filename).o')" | |
| 85 ToolPath="$(NaClSDKRoot)\toolchain\$(Toolchain)\bin\"/> | |
| 86 </Target> | |
| 87 | |
| 88 <Target Name="CopyWebFiles"> | |
| 89 <Message Text="Deploying SrcFiles=@(WebSrcs) TO Dest=$(OutputPath)" Importan
ce="high" /> | |
| 90 <Copy SourceFiles="@(WebSrcs)" | |
| 91 DestinationFolder="$(OutputPath)" /> | |
| 92 </Target> | |
| 93 | |
| 94 <Target Name="Link" | |
| 95 DependsOnTargets="Compile" | |
| 96 Inputs="@(Obj)" | |
| 97 Outputs="$(OutputFullPath)"> | |
| 98 <MakeDir Directories="$(OutputPath)"/> | |
| 99 <NaClExec Command="$(gcpp)" | |
| 100 Arguments="@(Lib -> '-L%(FullPath)', ' ') @(Obj, ' ') @(LinkLibs -
> '-l%(Identity)', ' ') $(archlinkflag) $(archflag) -o $(OutputFullPath)" | |
| 101 ToolPath="$(NaClSDKRoot)\toolchain\$(Toolchain)\bin\"/> | |
| 102 </Target> | |
| 103 | |
| 104 <Target Name="Build" | |
| 105 DependsOnTargets="Compile;Link;CopyWebFiles"> | |
| 106 </Target> | |
| 107 | |
| 108 <Target Name="Clean"> | |
| 109 <Delete Files="@(Obj)"/> | |
| 110 <Delete Files="$(OutputFullPath)"/> | |
| 111 </Target> | |
| 112 | |
| 113 <Target Name="ReBuild" | |
| 114 DependsOnTargets="Clean"> | |
| 115 <CallTarget Targets="Build"/> | |
| 116 </Target> | |
| 117 | |
| 118 </Project> | |
| OLD | NEW |