* Made Prebuild actually work.
* Changed the plugin dll names to reflect the new harsh realityzircon
parent
cf164d0fa6
commit
2d373b85d4
|
@ -1,26 +1,23 @@
|
|||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{7896375E-4912-4F9B-872E-AA76E9EF61BC}</ProjectGuid>
|
||||
<ProjectGuid>{036E3EE7-2879-4975-AF77-FE1112ECD3E9}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>
|
||||
</ApplicationIcon>
|
||||
<ApplicationIcon></ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>OpenSim.Config.SimConfigDb4o</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder></AppDesignerFolder>
|
||||
<RootNamespace>OpenSim.Config.SimConfigDb4o</RootNamespace>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<StartupObject></StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
</PropertyGroup>
|
||||
|
@ -31,8 +28,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>True</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>False</Optimize>
|
||||
|
@ -41,8 +37,7 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
|
||||
|
@ -51,8 +46,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>True</Optimize>
|
||||
|
@ -61,48 +55,35 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System.dll">
|
||||
<Name>System.dll</Name>
|
||||
<HintPath>\System.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Reference Include="System" >
|
||||
<HintPath>\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.dll">
|
||||
<Name>System.Data.dll</Name>
|
||||
<Reference Include="System.Data.dll" >
|
||||
<HintPath>\System.Data.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.dll">
|
||||
<Name>System.Xml.dll</Name>
|
||||
<Reference Include="System.Xml.dll" >
|
||||
<HintPath>\System.Xml.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="libsecondlife.dll">
|
||||
<Name>libsecondlife.dll</Name>
|
||||
<Reference Include="libsecondlife.dll" >
|
||||
<HintPath>\libsecondlife.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Db4objects.Db4o.dll">
|
||||
<Name>Db4objects.Db4o.dll</Name>
|
||||
<Reference Include="Db4objects.Db4o.dll" >
|
||||
<HintPath>\Db4objects.Db4o.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\OpenSim.Framework\OpenSim.Framework.csproj">
|
||||
<Name>OpenSim.Framework</Name>
|
||||
<Project>{A3BA45EE-E862-43DA-8FC6-B4A7095232E1}</Project>
|
||||
<Project>{B08C9FD1-28C4-4EA3-8317-7D81564DDC07}</Project>
|
||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
||||
<Private>True</Private>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj">
|
||||
<Name>OpenSim.Framework.Console</Name>
|
||||
<Project>{E6DE88A1-3D78-409A-A3FB-70B3CAD1D7AA}</Project>
|
||||
<Project>{61ED0F60-1E9B-4F1F-B45B-FB6418F92845}</Project>
|
||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
||||
<Private>True</Private>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@ -123,4 +104,4 @@
|
|||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -3,15 +3,22 @@
|
|||
<target name="build">
|
||||
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
|
||||
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
|
||||
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<copy todir="${project::get-base-directory()}/${build.dir}">
|
||||
<fileset basedir="${project::get-base-directory()}">
|
||||
</fileset>
|
||||
</copy>
|
||||
<csc target="library" debug="${build.debug}" unsafe="False" define="TRACE;DEBUG" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<resources prefix="OpenSim.Config.SimConfigDb4o" dynamicprefix="true" >
|
||||
</resources>
|
||||
<sources failonempty="true">
|
||||
<include name="./AssemblyInfo.cs" />
|
||||
<include name="./DbSimConfig.cs" />
|
||||
<include name="./MapStorage.cs" />
|
||||
<include name="AssemblyInfo.cs" />
|
||||
<include name="DbSimConfig.cs" />
|
||||
<include name="MapStorage.cs" />
|
||||
</sources>
|
||||
<references basedir="${project::get-base-directory()}">
|
||||
<lib>
|
||||
<include name="${project::get-base-directory()}" />
|
||||
<include name="${project::get-base-directory()}/${build.dir}" />
|
||||
</lib>
|
||||
<include name="System.dll" />
|
||||
<include name="System.Data.dll.dll" />
|
||||
|
@ -21,8 +28,6 @@
|
|||
<include name="../../OpenSim.Framework/${build.dir}/OpenSim.Framework.dll" />
|
||||
<include name="../../OpenSim.Framework.Console/${build.dir}/OpenSim.Framework.Console.dll" />
|
||||
</references>
|
||||
<resources>
|
||||
</resources>
|
||||
</csc>
|
||||
</target>
|
||||
<target name="clean">
|
||||
|
|
|
@ -1,26 +1,23 @@
|
|||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{5FD3848E-EA2C-4187-95CB-844195E56FBF}</ProjectGuid>
|
||||
<ProjectGuid>{B08C9FD1-28C4-4EA3-8317-7D81564DDC07}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>
|
||||
</ApplicationIcon>
|
||||
<ApplicationIcon></ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>OpenSim.Framework</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder></AppDesignerFolder>
|
||||
<RootNamespace>OpenSim.Framework</RootNamespace>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<StartupObject></StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
</PropertyGroup>
|
||||
|
@ -31,8 +28,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>True</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>False</Optimize>
|
||||
|
@ -41,8 +37,7 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
|
||||
|
@ -51,8 +46,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>True</Optimize>
|
||||
|
@ -61,24 +55,17 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System.dll">
|
||||
<Name>System.dll</Name>
|
||||
<Reference Include="System.dll" >
|
||||
<HintPath>\System.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.dll">
|
||||
<Name>System.Xml.dll</Name>
|
||||
<Reference Include="System.Xml.dll" >
|
||||
<HintPath>\System.Xml.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="libsecondlife.dll">
|
||||
<Name>libsecondlife.dll</Name>
|
||||
<Reference Include="libsecondlife.dll" >
|
||||
<HintPath>\libsecondlife.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@ -161,4 +148,4 @@
|
|||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -3,42 +3,47 @@
|
|||
<target name="build">
|
||||
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
|
||||
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
|
||||
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<copy todir="${project::get-base-directory()}/${build.dir}">
|
||||
<fileset basedir="${project::get-base-directory()}">
|
||||
</fileset>
|
||||
</copy>
|
||||
<csc target="library" debug="${build.debug}" unsafe="False" define="TRACE;DEBUG" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<resources prefix="OpenSim.Framework" dynamicprefix="true" >
|
||||
</resources>
|
||||
<sources failonempty="true">
|
||||
<include name="./AgentCiruitData.cs" />
|
||||
<include name="./AssetBase.cs" />
|
||||
<include name="./BlockingQueue.cs" />
|
||||
<include name="./HeightMapGenHills.cs" />
|
||||
<include name="./IAssetServer.cs" />
|
||||
<include name="./IConfig.cs" />
|
||||
<include name="./IGridServer.cs" />
|
||||
<include name="./ILocalStorage.cs" />
|
||||
<include name="./Inventory.cs" />
|
||||
<include name="./IUserServer.cs" />
|
||||
<include name="./LocalGridBase.cs" />
|
||||
<include name="./Login.cs" />
|
||||
<include name="./LoginService.cs" />
|
||||
<include name="./NeighbourInfo.cs" />
|
||||
<include name="./PrimData.cs" />
|
||||
<include name="./RemoteGridBase.cs" />
|
||||
<include name="./SimProfile.cs" />
|
||||
<include name="./SimProfileBase.cs" />
|
||||
<include name="./UserProfile.cs" />
|
||||
<include name="./UserProfileManager.cs" />
|
||||
<include name="./UserProfileManagerBase.cs" />
|
||||
<include name="./Util.cs" />
|
||||
<include name="./Properties/AssemblyInfo.cs" />
|
||||
<include name="AgentCiruitData.cs" />
|
||||
<include name="AssetBase.cs" />
|
||||
<include name="BlockingQueue.cs" />
|
||||
<include name="HeightMapGenHills.cs" />
|
||||
<include name="IAssetServer.cs" />
|
||||
<include name="IConfig.cs" />
|
||||
<include name="IGridServer.cs" />
|
||||
<include name="ILocalStorage.cs" />
|
||||
<include name="Inventory.cs" />
|
||||
<include name="IUserServer.cs" />
|
||||
<include name="LocalGridBase.cs" />
|
||||
<include name="Login.cs" />
|
||||
<include name="LoginService.cs" />
|
||||
<include name="NeighbourInfo.cs" />
|
||||
<include name="PrimData.cs" />
|
||||
<include name="RemoteGridBase.cs" />
|
||||
<include name="SimProfile.cs" />
|
||||
<include name="SimProfileBase.cs" />
|
||||
<include name="UserProfile.cs" />
|
||||
<include name="UserProfileManager.cs" />
|
||||
<include name="UserProfileManagerBase.cs" />
|
||||
<include name="Util.cs" />
|
||||
<include name="Properties/AssemblyInfo.cs" />
|
||||
</sources>
|
||||
<references basedir="${project::get-base-directory()}">
|
||||
<lib>
|
||||
<include name="${project::get-base-directory()}" />
|
||||
<include name="${project::get-base-directory()}/${build.dir}" />
|
||||
</lib>
|
||||
<include name="System.dll.dll" />
|
||||
<include name="System.Xml.dll.dll" />
|
||||
<include name="../bin/libsecondlife.dll" />
|
||||
</references>
|
||||
<resources>
|
||||
</resources>
|
||||
</csc>
|
||||
</target>
|
||||
<target name="clean">
|
||||
|
|
|
@ -1,26 +1,23 @@
|
|||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{0D23207E-63D6-454C-B892-CAAC6A8ABFD1}</ProjectGuid>
|
||||
<ProjectGuid>{61ED0F60-1E9B-4F1F-B45B-FB6418F92845}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>
|
||||
</ApplicationIcon>
|
||||
<ApplicationIcon></ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>OpenSim.Framework.Console</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder></AppDesignerFolder>
|
||||
<RootNamespace>OpenSim.Framework.Console</RootNamespace>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<StartupObject></StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
</PropertyGroup>
|
||||
|
@ -31,8 +28,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>True</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>False</Optimize>
|
||||
|
@ -41,8 +37,7 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
|
||||
|
@ -51,8 +46,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>True</Optimize>
|
||||
|
@ -61,14 +55,11 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System.dll">
|
||||
<Name>System.dll</Name>
|
||||
<HintPath>\System.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Reference Include="System" >
|
||||
<HintPath>\System.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@ -91,4 +82,4 @@
|
|||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -3,20 +3,25 @@
|
|||
<target name="build">
|
||||
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
|
||||
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
|
||||
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<copy todir="${project::get-base-directory()}/${build.dir}">
|
||||
<fileset basedir="${project::get-base-directory()}">
|
||||
</fileset>
|
||||
</copy>
|
||||
<csc target="library" debug="${build.debug}" unsafe="False" define="TRACE;DEBUG" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<resources prefix="OpenSim.Framework.Console" dynamicprefix="true" >
|
||||
</resources>
|
||||
<sources failonempty="true">
|
||||
<include name="./AssemblyInfo.cs" />
|
||||
<include name="./ConsoleBase.cs" />
|
||||
<include name="./MainConsole.cs" />
|
||||
<include name="AssemblyInfo.cs" />
|
||||
<include name="ConsoleBase.cs" />
|
||||
<include name="MainConsole.cs" />
|
||||
</sources>
|
||||
<references basedir="${project::get-base-directory()}">
|
||||
<lib>
|
||||
<include name="${project::get-base-directory()}" />
|
||||
<include name="${project::get-base-directory()}/${build.dir}" />
|
||||
</lib>
|
||||
<include name="System.dll" />
|
||||
</references>
|
||||
<resources>
|
||||
</resources>
|
||||
</csc>
|
||||
</target>
|
||||
<target name="clean">
|
||||
|
|
|
@ -1,26 +1,23 @@
|
|||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{09A06B98-8566-4992-B8EA-1A1218202122}</ProjectGuid>
|
||||
<ProjectGuid>{13DD8941-91C2-419C-B9EC-56D79EA1B1E2}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>
|
||||
</ApplicationIcon>
|
||||
<ApplicationIcon></ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>OpenSim.GridInterfaces.Local</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder></AppDesignerFolder>
|
||||
<RootNamespace>OpenSim.GridInterfaces.Local</RootNamespace>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<StartupObject></StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
</PropertyGroup>
|
||||
|
@ -31,8 +28,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>True</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>False</Optimize>
|
||||
|
@ -41,8 +37,7 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
|
||||
|
@ -51,8 +46,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>True</Optimize>
|
||||
|
@ -61,43 +55,32 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System.dll">
|
||||
<Name>System.dll</Name>
|
||||
<HintPath>\System.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Reference Include="System" >
|
||||
<HintPath>\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.dll">
|
||||
<Name>System.Xml.dll</Name>
|
||||
<Reference Include="System.Xml.dll" >
|
||||
<HintPath>\System.Xml.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Db4objects.Db4o.dll">
|
||||
<Name>Db4objects.Db4o.dll</Name>
|
||||
<Reference Include="Db4objects.Db4o.dll" >
|
||||
<HintPath>\Db4objects.Db4o.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="libsecondlife.dll">
|
||||
<Name>libsecondlife.dll</Name>
|
||||
<Reference Include="libsecondlife.dll" >
|
||||
<HintPath>\libsecondlife.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\OpenSim.Framework\OpenSim.Framework.csproj">
|
||||
<Name>OpenSim.Framework</Name>
|
||||
<Project>{A3BA45EE-E862-43DA-8FC6-B4A7095232E1}</Project>
|
||||
<Project>{B08C9FD1-28C4-4EA3-8317-7D81564DDC07}</Project>
|
||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
||||
<Private>True</Private>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj">
|
||||
<Name>OpenSim.Framework.Console</Name>
|
||||
<Project>{E6DE88A1-3D78-409A-A3FB-70B3CAD1D7AA}</Project>
|
||||
<Project>{61ED0F60-1E9B-4F1F-B45B-FB6418F92845}</Project>
|
||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
||||
<Private>True</Private>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@ -118,4 +101,4 @@
|
|||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -3,15 +3,22 @@
|
|||
<target name="build">
|
||||
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
|
||||
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
|
||||
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<copy todir="${project::get-base-directory()}/${build.dir}">
|
||||
<fileset basedir="${project::get-base-directory()}">
|
||||
</fileset>
|
||||
</copy>
|
||||
<csc target="library" debug="${build.debug}" unsafe="False" define="TRACE;DEBUG" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<resources prefix="OpenSim.GridInterfaces.Local" dynamicprefix="true" >
|
||||
</resources>
|
||||
<sources failonempty="true">
|
||||
<include name="./AssemblyInfo.cs" />
|
||||
<include name="./LocalAssetServer.cs" />
|
||||
<include name="./LocalGridServer.cs" />
|
||||
<include name="AssemblyInfo.cs" />
|
||||
<include name="LocalAssetServer.cs" />
|
||||
<include name="LocalGridServer.cs" />
|
||||
</sources>
|
||||
<references basedir="${project::get-base-directory()}">
|
||||
<lib>
|
||||
<include name="${project::get-base-directory()}" />
|
||||
<include name="${project::get-base-directory()}/${build.dir}" />
|
||||
</lib>
|
||||
<include name="System.dll" />
|
||||
<include name="System.Xml.dll.dll" />
|
||||
|
@ -20,8 +27,6 @@
|
|||
<include name="../../OpenSim.Framework/${build.dir}/OpenSim.Framework.dll" />
|
||||
<include name="../../OpenSim.Framework.Console/${build.dir}/OpenSim.Framework.Console.dll" />
|
||||
</references>
|
||||
<resources>
|
||||
</resources>
|
||||
</csc>
|
||||
</target>
|
||||
<target name="clean">
|
||||
|
|
|
@ -1,26 +1,23 @@
|
|||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{28479E7D-AB48-4531-966A-1F7F45959280}</ProjectGuid>
|
||||
<ProjectGuid>{20C5B7F5-EBFD-46BD-8F4C-C5FE29D10F92}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>
|
||||
</ApplicationIcon>
|
||||
<ApplicationIcon></ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>OpenSim.GridInterfaces.Remote</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder></AppDesignerFolder>
|
||||
<RootNamespace>OpenSim.GridInterfaces.Remote</RootNamespace>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<StartupObject></StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
</PropertyGroup>
|
||||
|
@ -31,8 +28,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>True</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>False</Optimize>
|
||||
|
@ -41,8 +37,7 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
|
||||
|
@ -51,8 +46,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>True</Optimize>
|
||||
|
@ -61,38 +55,29 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System.dll">
|
||||
<Name>System.dll</Name>
|
||||
<HintPath>\System.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Reference Include="System" >
|
||||
<HintPath>\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.dll">
|
||||
<Name>System.Xml.dll</Name>
|
||||
<Reference Include="System.Xml.dll" >
|
||||
<HintPath>\System.Xml.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="libsecondlife.dll">
|
||||
<Name>libsecondlife.dll</Name>
|
||||
<Reference Include="libsecondlife.dll" >
|
||||
<HintPath>\libsecondlife.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\OpenSim.Framework\OpenSim.Framework.csproj">
|
||||
<Name>OpenSim.Framework</Name>
|
||||
<Project>{A3BA45EE-E862-43DA-8FC6-B4A7095232E1}</Project>
|
||||
<Project>{B08C9FD1-28C4-4EA3-8317-7D81564DDC07}</Project>
|
||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
||||
<Private>True</Private>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj">
|
||||
<Name>OpenSim.Framework.Console</Name>
|
||||
<Project>{E6DE88A1-3D78-409A-A3FB-70B3CAD1D7AA}</Project>
|
||||
<Project>{61ED0F60-1E9B-4F1F-B45B-FB6418F92845}</Project>
|
||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
||||
<Private>True</Private>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@ -113,4 +98,4 @@
|
|||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -3,15 +3,22 @@
|
|||
<target name="build">
|
||||
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
|
||||
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
|
||||
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<copy todir="${project::get-base-directory()}/${build.dir}">
|
||||
<fileset basedir="${project::get-base-directory()}">
|
||||
</fileset>
|
||||
</copy>
|
||||
<csc target="library" debug="${build.debug}" unsafe="False" define="TRACE;DEBUG" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<resources prefix="OpenSim.GridInterfaces.Remote" dynamicprefix="true" >
|
||||
</resources>
|
||||
<sources failonempty="true">
|
||||
<include name="./AssemblyInfo.cs" />
|
||||
<include name="./RemoteAssetServer.cs" />
|
||||
<include name="./RemoteGridServer.cs" />
|
||||
<include name="AssemblyInfo.cs" />
|
||||
<include name="RemoteAssetServer.cs" />
|
||||
<include name="RemoteGridServer.cs" />
|
||||
</sources>
|
||||
<references basedir="${project::get-base-directory()}">
|
||||
<lib>
|
||||
<include name="${project::get-base-directory()}" />
|
||||
<include name="${project::get-base-directory()}/${build.dir}" />
|
||||
</lib>
|
||||
<include name="System.dll" />
|
||||
<include name="System.Xml.dll.dll" />
|
||||
|
@ -19,8 +26,6 @@
|
|||
<include name="../../OpenSim.Framework/${build.dir}/OpenSim.Framework.dll" />
|
||||
<include name="../../OpenSim.Framework.Console/${build.dir}/OpenSim.Framework.Console.dll" />
|
||||
</references>
|
||||
<resources>
|
||||
</resources>
|
||||
</csc>
|
||||
</target>
|
||||
<target name="clean">
|
||||
|
|
|
@ -1,26 +1,23 @@
|
|||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{27E1A9E0-2F17-4624-B623-A5AC54C64CD7}</ProjectGuid>
|
||||
<ProjectGuid>{4E6EF664-0598-4222-9AC8-BD77DDE3E17C}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>
|
||||
</ApplicationIcon>
|
||||
<ApplicationIcon></ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>OpenSim.Physics.BasicPhysicsPlugin</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder></AppDesignerFolder>
|
||||
<RootNamespace>OpenSim.Physics.BasicPhysicsPlugin</RootNamespace>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<StartupObject></StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
</PropertyGroup>
|
||||
|
@ -31,8 +28,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>True</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>False</Optimize>
|
||||
|
@ -41,8 +37,7 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
|
||||
|
@ -51,8 +46,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>True</Optimize>
|
||||
|
@ -61,27 +55,21 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System.dll">
|
||||
<Name>System.dll</Name>
|
||||
<HintPath>\System.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Reference Include="System" >
|
||||
<HintPath>\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Axiom.MathLib.dll">
|
||||
<Name>Axiom.MathLib.dll</Name>
|
||||
<Reference Include="Axiom.MathLib.dll" >
|
||||
<HintPath>\Axiom.MathLib.dll.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Manager\OpenSim.Physics.Manager.csproj">
|
||||
<Name>OpenSim.Physics.Manager</Name>
|
||||
<Project>{90BDBEB8-6FDD-46FC-8C97-B9DF3DDC8ECB}</Project>
|
||||
<Project>{4061B5D6-24D0-4C7A-88D7-B0FE7FAE1774}</Project>
|
||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
||||
<Private>False</Private>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@ -99,4 +87,4 @@
|
|||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ReferencePath>C:\Documents and Settings\Stefan\My Documents\Projects\source\opensim\branches\zircon\bin\</ReferencePath>
|
||||
<LastOpenVersion>8.0.50727</LastOpenVersion>
|
||||
<ProjectView>ProjectFiles</ProjectView>
|
||||
<ProjectTrust>0</ProjectTrust>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition = " '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " />
|
||||
<PropertyGroup Condition = " '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ReferencePath>C:\Documents and Settings\Stefan\My Documents\Projects\source\opensim\branches\zircon\bin\</ReferencePath>
|
||||
<LastOpenVersion>8.0.50727</LastOpenVersion>
|
||||
<ProjectView>ProjectFiles</ProjectView>
|
||||
<ProjectTrust>0</ProjectTrust>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition = " '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " />
|
||||
<PropertyGroup Condition = " '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " />
|
||||
</Project>
|
||||
|
|
|
@ -3,21 +3,26 @@
|
|||
<target name="build">
|
||||
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
|
||||
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
|
||||
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<copy todir="${project::get-base-directory()}/${build.dir}">
|
||||
<fileset basedir="${project::get-base-directory()}">
|
||||
</fileset>
|
||||
</copy>
|
||||
<csc target="library" debug="${build.debug}" unsafe="False" define="TRACE;DEBUG" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<resources prefix="OpenSim.Physics.BasicPhysicsPlugin" dynamicprefix="true" >
|
||||
</resources>
|
||||
<sources failonempty="true">
|
||||
<include name="./AssemblyInfo.cs" />
|
||||
<include name="./BasicPhysicsPlugin.cs" />
|
||||
<include name="AssemblyInfo.cs" />
|
||||
<include name="BasicPhysicsPlugin.cs" />
|
||||
</sources>
|
||||
<references basedir="${project::get-base-directory()}">
|
||||
<lib>
|
||||
<include name="${project::get-base-directory()}" />
|
||||
<include name="${project::get-base-directory()}/${build.dir}" />
|
||||
</lib>
|
||||
<include name="System.dll" />
|
||||
<include name="../../bin/Axiom.MathLib.dll" />
|
||||
<include name="../Manager/${build.dir}/OpenSim.Physics.Manager.dll" />
|
||||
</references>
|
||||
<resources>
|
||||
</resources>
|
||||
</csc>
|
||||
</target>
|
||||
<target name="clean">
|
||||
|
|
|
@ -1,26 +1,23 @@
|
|||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{39C05ABD-FC6C-43C6-9909-C3AC856DC42E}</ProjectGuid>
|
||||
<ProjectGuid>{4061B5D6-24D0-4C7A-88D7-B0FE7FAE1774}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>
|
||||
</ApplicationIcon>
|
||||
<ApplicationIcon></ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>OpenSim.Physics.Manager</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder></AppDesignerFolder>
|
||||
<RootNamespace>OpenSim.Physics.Manager</RootNamespace>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<StartupObject></StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
</PropertyGroup>
|
||||
|
@ -31,8 +28,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>True</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>False</Optimize>
|
||||
|
@ -41,8 +37,7 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
|
||||
|
@ -51,8 +46,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>True</Optimize>
|
||||
|
@ -61,32 +55,24 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System.dll">
|
||||
<Name>System.dll</Name>
|
||||
<HintPath>\System.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Reference Include="System" >
|
||||
<HintPath>\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.dll">
|
||||
<Name>System.Xml.dll</Name>
|
||||
<Reference Include="System.Xml.dll" >
|
||||
<HintPath>\System.Xml.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Axiom.MathLib.dll">
|
||||
<Name>Axiom.MathLib.dll</Name>
|
||||
<Reference Include="Axiom.MathLib.dll" >
|
||||
<HintPath>\Axiom.MathLib.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj">
|
||||
<Name>OpenSim.Framework.Console</Name>
|
||||
<Project>{E6DE88A1-3D78-409A-A3FB-70B3CAD1D7AA}</Project>
|
||||
<Project>{61ED0F60-1E9B-4F1F-B45B-FB6418F92845}</Project>
|
||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
||||
<Private>True</Private>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@ -113,4 +99,4 @@
|
|||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -3,25 +3,30 @@
|
|||
<target name="build">
|
||||
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
|
||||
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
|
||||
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<copy todir="${project::get-base-directory()}/${build.dir}">
|
||||
<fileset basedir="${project::get-base-directory()}">
|
||||
</fileset>
|
||||
</copy>
|
||||
<csc target="library" debug="${build.debug}" unsafe="False" define="TRACE;DEBUG" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<resources prefix="OpenSim.Physics.Manager" dynamicprefix="true" >
|
||||
</resources>
|
||||
<sources failonempty="true">
|
||||
<include name="./AssemblyInfo.cs" />
|
||||
<include name="./PhysicsActor.cs" />
|
||||
<include name="./PhysicsManager.cs" />
|
||||
<include name="./PhysicsScene.cs" />
|
||||
<include name="./PhysicsVector.cs" />
|
||||
<include name="AssemblyInfo.cs" />
|
||||
<include name="PhysicsActor.cs" />
|
||||
<include name="PhysicsManager.cs" />
|
||||
<include name="PhysicsScene.cs" />
|
||||
<include name="PhysicsVector.cs" />
|
||||
</sources>
|
||||
<references basedir="${project::get-base-directory()}">
|
||||
<lib>
|
||||
<include name="${project::get-base-directory()}" />
|
||||
<include name="${project::get-base-directory()}/${build.dir}" />
|
||||
</lib>
|
||||
<include name="System.dll" />
|
||||
<include name="System.Xml.dll.dll" />
|
||||
<include name="../../bin/Axiom.MathLib.dll" />
|
||||
<include name="../../OpenSim.Framework.Console/${build.dir}/OpenSim.Framework.Console.dll" />
|
||||
</references>
|
||||
<resources>
|
||||
</resources>
|
||||
</csc>
|
||||
</target>
|
||||
<target name="clean">
|
||||
|
|
|
@ -1,26 +1,23 @@
|
|||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{2E63C4DE-8803-4EB6-99AA-2DEFE4D5F495}</ProjectGuid>
|
||||
<ProjectGuid>{667016C2-FA4E-410F-8AA2-4FD24F9F8091}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>
|
||||
</ApplicationIcon>
|
||||
<ApplicationIcon></ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>OpenSim.Physics.PhysXplugin</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder></AppDesignerFolder>
|
||||
<RootNamespace>OpenSim.Physics.PhysXplugin</RootNamespace>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<StartupObject></StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
</PropertyGroup>
|
||||
|
@ -31,8 +28,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>True</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>False</Optimize>
|
||||
|
@ -41,8 +37,7 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
|
||||
|
@ -51,8 +46,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>True</Optimize>
|
||||
|
@ -61,32 +55,24 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System.dll">
|
||||
<Name>System.dll</Name>
|
||||
<HintPath>\System.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Reference Include="System" >
|
||||
<HintPath>\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Axiom.MathLib.dll">
|
||||
<Name>Axiom.MathLib.dll</Name>
|
||||
<Reference Include="Axiom.MathLib.dll" >
|
||||
<HintPath>\Axiom.MathLib.dll.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="PhysX_Wrapper_Dotnet.dll">
|
||||
<Name>PhysX_Wrapper_Dotnet.dll</Name>
|
||||
<Reference Include="PhysX_Wrapper_Dotnet.dll" >
|
||||
<HintPath>\PhysX_Wrapper_Dotnet.dll.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Manager\OpenSim.Physics.Manager.csproj">
|
||||
<Name>OpenSim.Physics.Manager</Name>
|
||||
<Project>{90BDBEB8-6FDD-46FC-8C97-B9DF3DDC8ECB}</Project>
|
||||
<Project>{4061B5D6-24D0-4C7A-88D7-B0FE7FAE1774}</Project>
|
||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
||||
<Private>False</Private>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@ -104,4 +90,4 @@
|
|||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -3,22 +3,27 @@
|
|||
<target name="build">
|
||||
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
|
||||
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
|
||||
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<copy todir="${project::get-base-directory()}/${build.dir}">
|
||||
<fileset basedir="${project::get-base-directory()}">
|
||||
</fileset>
|
||||
</copy>
|
||||
<csc target="library" debug="${build.debug}" unsafe="False" define="TRACE;DEBUG" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<resources prefix="OpenSim.Physics.PhysXplugin" dynamicprefix="true" >
|
||||
</resources>
|
||||
<sources failonempty="true">
|
||||
<include name="./AssemblyInfo.cs" />
|
||||
<include name="./PhysXPlugin.cs" />
|
||||
<include name="AssemblyInfo.cs" />
|
||||
<include name="PhysXPlugin.cs" />
|
||||
</sources>
|
||||
<references basedir="${project::get-base-directory()}">
|
||||
<lib>
|
||||
<include name="${project::get-base-directory()}" />
|
||||
<include name="${project::get-base-directory()}/${build.dir}" />
|
||||
</lib>
|
||||
<include name="System.dll" />
|
||||
<include name="../../bin/Axiom.MathLib.dll" />
|
||||
<include name="../../bin/PhysX_Wrapper_Dotnet.dll" />
|
||||
<include name="../Manager/${build.dir}/OpenSim.Physics.Manager.dll" />
|
||||
</references>
|
||||
<resources>
|
||||
</resources>
|
||||
</csc>
|
||||
</target>
|
||||
<target name="clean">
|
||||
|
|
|
@ -1,26 +1,23 @@
|
|||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{1DA613F3-C99E-427E-A9E1-9058BBD2CEE0}</ProjectGuid>
|
||||
<ProjectGuid>{7F3535FA-3EEA-4236-BFB2-5B59CE78F87F}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>
|
||||
</ApplicationIcon>
|
||||
<ApplicationIcon></ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>OpenSim.RegionServer</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder></AppDesignerFolder>
|
||||
<RootNamespace>OpenSim.RegionServer</RootNamespace>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<StartupObject>OpenSim.RegionServer</StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
</PropertyGroup>
|
||||
|
@ -31,8 +28,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>True</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>False</Optimize>
|
||||
|
@ -41,8 +37,7 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
|
||||
|
@ -51,8 +46,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>True</Optimize>
|
||||
|
@ -61,54 +55,40 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System.dll">
|
||||
<Name>System.dll</Name>
|
||||
<HintPath>\System.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Reference Include="System" >
|
||||
<HintPath>\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.dll">
|
||||
<Name>System.Xml.dll</Name>
|
||||
<Reference Include="System.Xml.dll" >
|
||||
<HintPath>\System.Xml.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="libsecondlife.dll">
|
||||
<Name>libsecondlife.dll</Name>
|
||||
<Reference Include="libsecondlife.dll" >
|
||||
<HintPath>\libsecondlife.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Axiom.MathLib.dll">
|
||||
<Name>Axiom.MathLib.dll</Name>
|
||||
<Reference Include="Axiom.MathLib.dll" >
|
||||
<HintPath>\Axiom.MathLib.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Db4objects.Db4o.dll">
|
||||
<Name>Db4objects.Db4o.dll</Name>
|
||||
<Reference Include="Db4objects.Db4o.dll" >
|
||||
<HintPath>\Db4objects.Db4o.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj">
|
||||
<Name>OpenSim.Framework.Console</Name>
|
||||
<Project>{E6DE88A1-3D78-409A-A3FB-70B3CAD1D7AA}</Project>
|
||||
<Project>{61ED0F60-1E9B-4F1F-B45B-FB6418F92845}</Project>
|
||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
||||
<Private>True</Private>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\OpenSim.Physics\Manager\OpenSim.Physics.Manager.csproj">
|
||||
<Name>OpenSim.Physics.Manager</Name>
|
||||
<Project>{90BDBEB8-6FDD-46FC-8C97-B9DF3DDC8ECB}</Project>
|
||||
<Project>{4061B5D6-24D0-4C7A-88D7-B0FE7FAE1774}</Project>
|
||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
||||
<Private>True</Private>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\OpenSim.Framework\OpenSim.Framework.csproj">
|
||||
<Name>OpenSim.Framework</Name>
|
||||
<Project>{A3BA45EE-E862-43DA-8FC6-B4A7095232E1}</Project>
|
||||
<Project>{B08C9FD1-28C4-4EA3-8317-7D81564DDC07}</Project>
|
||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
||||
<Private>True</Private>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@ -186,4 +166,4 @@
|
|||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -3,34 +3,41 @@
|
|||
<target name="build">
|
||||
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
|
||||
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
|
||||
<csc target="exe" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.exe">
|
||||
<copy todir="${project::get-base-directory()}/${build.dir}">
|
||||
<fileset basedir="${project::get-base-directory()}">
|
||||
</fileset>
|
||||
</copy>
|
||||
<csc target="exe" debug="${build.debug}" unsafe="False" define="TRACE;DEBUG" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.exe">
|
||||
<resources prefix="OpenSim.RegionServer" dynamicprefix="true" >
|
||||
</resources>
|
||||
<sources failonempty="true">
|
||||
<include name="./Grid.cs" />
|
||||
<include name="./OpenSimApplication.cs" />
|
||||
<include name="./OpenSimMain.cs" />
|
||||
<include name="./OpenSimRoot.cs" />
|
||||
<include name="./QueItem.cs" />
|
||||
<include name="./SimClient.cs" />
|
||||
<include name="./SimConsole.cs" />
|
||||
<include name="./VersionInfo.cs" />
|
||||
<include name="./Assets/AssetCache.cs" />
|
||||
<include name="./Assets/InventoryCache.cs" />
|
||||
<include name="./CAPS/SimHttp.cs" />
|
||||
<include name="./types/Mesh.cs" />
|
||||
<include name="./types/Triangle.cs" />
|
||||
<include name="./UserServer/LocalUserProfileManager.cs" />
|
||||
<include name="./UserServer/LoginServer.cs" />
|
||||
<include name="./world/Avatar.cs" />
|
||||
<include name="./world/Entity.cs" />
|
||||
<include name="./world/Primitive.cs" />
|
||||
<include name="./world/ScriptEngine.cs" />
|
||||
<include name="./world/SurfacePatch.cs" />
|
||||
<include name="./world/World.cs" />
|
||||
<include name="./world/scripting/IScript.cs" />
|
||||
<include name="Grid.cs" />
|
||||
<include name="OpenSimApplication.cs" />
|
||||
<include name="OpenSimMain.cs" />
|
||||
<include name="OpenSimRoot.cs" />
|
||||
<include name="QueItem.cs" />
|
||||
<include name="SimClient.cs" />
|
||||
<include name="SimConsole.cs" />
|
||||
<include name="VersionInfo.cs" />
|
||||
<include name="Assets/AssetCache.cs" />
|
||||
<include name="Assets/InventoryCache.cs" />
|
||||
<include name="CAPS/SimHttp.cs" />
|
||||
<include name="types/Mesh.cs" />
|
||||
<include name="types/Triangle.cs" />
|
||||
<include name="UserServer/LocalUserProfileManager.cs" />
|
||||
<include name="UserServer/LoginServer.cs" />
|
||||
<include name="world/Avatar.cs" />
|
||||
<include name="world/Entity.cs" />
|
||||
<include name="world/Primitive.cs" />
|
||||
<include name="world/ScriptEngine.cs" />
|
||||
<include name="world/SurfacePatch.cs" />
|
||||
<include name="world/World.cs" />
|
||||
<include name="world/scripting/IScript.cs" />
|
||||
</sources>
|
||||
<references basedir="${project::get-base-directory()}">
|
||||
<lib>
|
||||
<include name="${project::get-base-directory()}" />
|
||||
<include name="${project::get-base-directory()}/${build.dir}" />
|
||||
</lib>
|
||||
<include name="System.dll" />
|
||||
<include name="System.Xml.dll.dll" />
|
||||
|
@ -41,8 +48,6 @@
|
|||
<include name="../OpenSim.Physics/Manager/${build.dir}/OpenSim.Physics.Manager.dll" />
|
||||
<include name="../OpenSim.Framework/${build.dir}/OpenSim.Framework.dll" />
|
||||
</references>
|
||||
<resources>
|
||||
</resources>
|
||||
</csc>
|
||||
</target>
|
||||
<target name="clean">
|
||||
|
|
|
@ -84,7 +84,7 @@ namespace OpenSim
|
|||
private AsyncCallback ReceivedData;
|
||||
|
||||
private System.Timers.Timer timer1 = new System.Timers.Timer();
|
||||
private string ConfigDll = "SimConfig.dll";
|
||||
private string ConfigDll = "OpenSim.Config.SimConfigDb4o.dll";
|
||||
private string _physicsEngine = "basicphysics";
|
||||
public bool sandbox = false;
|
||||
public bool loginserver = false;
|
||||
|
@ -126,15 +126,15 @@ namespace OpenSim
|
|||
OpenSimRoot.Instance.GridServers = new Grid();
|
||||
if (sim.sandbox)
|
||||
{
|
||||
OpenSimRoot.Instance.GridServers.AssetDll = "LocalGridServers.dll";
|
||||
OpenSimRoot.Instance.GridServers.GridDll = "LocalGridServers.dll";
|
||||
OpenSimRoot.Instance.GridServers.AssetDll = "OpenSim.GridInterfaces.Local.dll";
|
||||
OpenSimRoot.Instance.GridServers.GridDll = "OpenSim.GridInterfaces.Local.dll";
|
||||
OpenSimRoot.Instance.GridServers.Initialise();
|
||||
OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Starting in Sandbox mode");
|
||||
}
|
||||
else
|
||||
{
|
||||
OpenSimRoot.Instance.GridServers.AssetDll = "RemoteGridServers.dll";
|
||||
OpenSimRoot.Instance.GridServers.GridDll = "RemoteGridServers.dll";
|
||||
OpenSimRoot.Instance.GridServers.AssetDll = "OpenSim.GridInterfaces.Remote.dll";
|
||||
OpenSimRoot.Instance.GridServers.GridDll = "OpenSim.GridInterfaces.Remote.dll";
|
||||
OpenSimRoot.Instance.GridServers.Initialise();
|
||||
OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Starting in Grid mode");
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ namespace OpenSim
|
|||
OpenSimRoot.Instance.GridServers.AssetServer.SetServerInfo(OpenSimRoot.Instance.Cfg.AssetURL, OpenSimRoot.Instance.Cfg.AssetSendKey);
|
||||
OpenSimRoot.Instance.GridServers.GridServer.SetServerInfo(OpenSimRoot.Instance.Cfg.GridURL, OpenSimRoot.Instance.Cfg.GridSendKey, OpenSimRoot.Instance.Cfg.GridRecvKey);
|
||||
|
||||
OpenSimRoot.Instance.LocalWorld.LoadStorageDLL("Db4LocalStorage.dll"); //all these dll names shouldn't be hard coded.
|
||||
OpenSimRoot.Instance.LocalWorld.LoadStorageDLL("OpenSim.Storage.LocalStorageDb4o.dll"); //all these dll names shouldn't be hard coded.
|
||||
OpenSimRoot.Instance.LocalWorld.LoadPrimsFromStorage();
|
||||
|
||||
if (this.sandbox)
|
||||
|
|
|
@ -1,26 +1,23 @@
|
|||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{77482184-6B4F-4F3C-B4C6-F8B1C256DA72}</ProjectGuid>
|
||||
<ProjectGuid>{C4041B28-BEBA-4171-A64A-8855B612BD7C}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>
|
||||
</ApplicationIcon>
|
||||
<ApplicationIcon></ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>OpenSim.Storage.LocalStorageDb4o</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder></AppDesignerFolder>
|
||||
<RootNamespace>OpenSim.Storage.LocalStorageDb4o</RootNamespace>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<StartupObject></StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
</PropertyGroup>
|
||||
|
@ -31,8 +28,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>True</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>False</Optimize>
|
||||
|
@ -41,8 +37,7 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
|
||||
|
@ -51,8 +46,7 @@
|
|||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>True</Optimize>
|
||||
|
@ -61,43 +55,32 @@
|
|||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<NoWarn></NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System.dll">
|
||||
<Name>System.dll</Name>
|
||||
<HintPath>\System.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Reference Include="System" >
|
||||
<HintPath>\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.dll">
|
||||
<Name>System.Xml.dll</Name>
|
||||
<Reference Include="System.Xml.dll" >
|
||||
<HintPath>\System.Xml.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Db4objects.Db4o.dll">
|
||||
<Name>Db4objects.Db4o.dll</Name>
|
||||
<Reference Include="Db4objects.Db4o.dll" >
|
||||
<HintPath>\Db4objects.Db4o.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="libsecondlife.dll">
|
||||
<Name>libsecondlife.dll</Name>
|
||||
<Reference Include="libsecondlife.dll" >
|
||||
<HintPath>\libsecondlife.dll.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\OpenSim.Framework\OpenSim.Framework.csproj">
|
||||
<Name>OpenSim.Framework</Name>
|
||||
<Project>{A3BA45EE-E862-43DA-8FC6-B4A7095232E1}</Project>
|
||||
<Project>{B08C9FD1-28C4-4EA3-8317-7D81564DDC07}</Project>
|
||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
||||
<Private>True</Private>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj">
|
||||
<Name>OpenSim.Framework.Console</Name>
|
||||
<Project>{E6DE88A1-3D78-409A-A3FB-70B3CAD1D7AA}</Project>
|
||||
<Project>{61ED0F60-1E9B-4F1F-B45B-FB6418F92845}</Project>
|
||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
||||
<Private>True</Private>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@ -118,4 +101,4 @@
|
|||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -3,15 +3,22 @@
|
|||
<target name="build">
|
||||
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
|
||||
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
|
||||
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<copy todir="${project::get-base-directory()}/${build.dir}">
|
||||
<fileset basedir="${project::get-base-directory()}">
|
||||
</fileset>
|
||||
</copy>
|
||||
<csc target="library" debug="${build.debug}" unsafe="False" define="TRACE;DEBUG" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
|
||||
<resources prefix="OpenSim.Storage.LocalStorageDb4o" dynamicprefix="true" >
|
||||
</resources>
|
||||
<sources failonempty="true">
|
||||
<include name="./AssemblyInfo.cs" />
|
||||
<include name="./Db4LocalStorage.cs" />
|
||||
<include name="./UUIDQuery.cs" />
|
||||
<include name="AssemblyInfo.cs" />
|
||||
<include name="Db4LocalStorage.cs" />
|
||||
<include name="UUIDQuery.cs" />
|
||||
</sources>
|
||||
<references basedir="${project::get-base-directory()}">
|
||||
<lib>
|
||||
<include name="${project::get-base-directory()}" />
|
||||
<include name="${project::get-base-directory()}/${build.dir}" />
|
||||
</lib>
|
||||
<include name="System.dll" />
|
||||
<include name="System.Xml.dll.dll" />
|
||||
|
@ -20,8 +27,6 @@
|
|||
<include name="../../OpenSim.Framework/${build.dir}/OpenSim.Framework.dll" />
|
||||
<include name="../../OpenSim.Framework.Console/${build.dir}/OpenSim.Framework.Console.dll" />
|
||||
</references>
|
||||
<resources>
|
||||
</resources>
|
||||
</csc>
|
||||
</target>
|
||||
<target name="clean">
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
<property name="bin.dir" value="bin" />
|
||||
<property name="obj.dir" value="obj" />
|
||||
<property name="doc.dir" value="doc" />
|
||||
<property name="project.main.dir" value="${project::get-base-directory()}" />
|
||||
|
||||
<target name="Debug" description="">
|
||||
|
@ -43,47 +44,51 @@
|
|||
|
||||
<target name="clean" description="">
|
||||
<echo message="Deleting all builds from all configurations" />
|
||||
<nant buildfile="../zircon/OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.dll.build" target="clean" />
|
||||
<nant buildfile="../zircon/OpenSim.Framework.Console/OpenSim.Framework.Console.dll.build" target="clean" />
|
||||
<nant buildfile="../zircon/OpenSim.Config/SimConfigDb4o/OpenSim.Config.SimConfigDb4o.dll.build" target="clean" />
|
||||
<nant buildfile="../zircon/OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.dll.build" target="clean" />
|
||||
<nant buildfile="../zircon/OpenSim.GridInterfaces/Remote/OpenSim.GridInterfaces.Remote.dll.build" target="clean" />
|
||||
<nant buildfile="../zircon/OpenSim.Framework/OpenSim.Framework.dll.build" target="clean" />
|
||||
<nant buildfile="../zircon/OpenSim.Physics/PhysXplugin/OpenSim.Physics.PhysXplugin.dll.build" target="clean" />
|
||||
<nant buildfile="../zircon/OpenSim.RegionServer/OpenSim.RegionServer.exe.build" target="clean" />
|
||||
<nant buildfile="../zircon/OpenSim.Physics/Manager/OpenSim.Physics.Manager.dll.build" target="clean" />
|
||||
<nant buildfile="../zircon/OpenSim.GridInterfaces/Local/OpenSim.GridInterfaces.Local.dll.build" target="clean" />
|
||||
<delete dir="${bin.dir}" failonerror="false" />
|
||||
<delete dir="${obj.dir}" failonerror="false" />
|
||||
<nant buildfile="OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.dll.build" target="clean" />
|
||||
<nant buildfile="OpenSim.Framework.Console/OpenSim.Framework.Console.dll.build" target="clean" />
|
||||
<nant buildfile="OpenSim.Config/SimConfigDb4o/OpenSim.Config.SimConfigDb4o.dll.build" target="clean" />
|
||||
<nant buildfile="OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.dll.build" target="clean" />
|
||||
<nant buildfile="OpenSim.GridInterfaces/Remote/OpenSim.GridInterfaces.Remote.dll.build" target="clean" />
|
||||
<nant buildfile="OpenSim.Framework/OpenSim.Framework.dll.build" target="clean" />
|
||||
<nant buildfile="OpenSim.Physics/PhysXplugin/OpenSim.Physics.PhysXplugin.dll.build" target="clean" />
|
||||
<nant buildfile="OpenSim.RegionServer/OpenSim.RegionServer.exe.build" target="clean" />
|
||||
<nant buildfile="OpenSim.Physics/Manager/OpenSim.Physics.Manager.dll.build" target="clean" />
|
||||
<nant buildfile="OpenSim.GridInterfaces/Local/OpenSim.GridInterfaces.Local.dll.build" target="clean" />
|
||||
</target>
|
||||
|
||||
<target name="build" depends="init" description="">
|
||||
<nant buildfile="../zircon/OpenSim.Framework/OpenSim.Framework.dll.build" target="build" />
|
||||
<nant buildfile="../zircon/OpenSim.Framework.Console/OpenSim.Framework.Console.dll.build" target="build" />
|
||||
<nant buildfile="../zircon/OpenSim.Physics/Manager/OpenSim.Physics.Manager.dll.build" target="build" />
|
||||
<nant buildfile="../zircon/OpenSim.Config/SimConfigDb4o/OpenSim.Config.SimConfigDb4o.dll.build" target="build" />
|
||||
<nant buildfile="../zircon/OpenSim.GridInterfaces/Local/OpenSim.GridInterfaces.Local.dll.build" target="build" />
|
||||
<nant buildfile="../zircon/OpenSim.GridInterfaces/Remote/OpenSim.GridInterfaces.Remote.dll.build" target="build" />
|
||||
<nant buildfile="../zircon/OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.dll.build" target="build" />
|
||||
<nant buildfile="../zircon/OpenSim.Physics/PhysXplugin/OpenSim.Physics.PhysXplugin.dll.build" target="build" />
|
||||
<nant buildfile="../zircon/OpenSim.RegionServer/OpenSim.RegionServer.exe.build" target="build" />
|
||||
<nant buildfile="../zircon/OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.dll.build" target="build" />
|
||||
<nant buildfile="OpenSim.Framework/OpenSim.Framework.dll.build" target="build" />
|
||||
<nant buildfile="OpenSim.Framework.Console/OpenSim.Framework.Console.dll.build" target="build" />
|
||||
<nant buildfile="OpenSim.Physics/Manager/OpenSim.Physics.Manager.dll.build" target="build" />
|
||||
<nant buildfile="OpenSim.Config/SimConfigDb4o/OpenSim.Config.SimConfigDb4o.dll.build" target="build" />
|
||||
<nant buildfile="OpenSim.GridInterfaces/Local/OpenSim.GridInterfaces.Local.dll.build" target="build" />
|
||||
<nant buildfile="OpenSim.GridInterfaces/Remote/OpenSim.GridInterfaces.Remote.dll.build" target="build" />
|
||||
<nant buildfile="OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.dll.build" target="build" />
|
||||
<nant buildfile="OpenSim.Physics/PhysXplugin/OpenSim.Physics.PhysXplugin.dll.build" target="build" />
|
||||
<nant buildfile="OpenSim.RegionServer/OpenSim.RegionServer.exe.build" target="build" />
|
||||
<nant buildfile="OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.dll.build" target="build" />
|
||||
</target>
|
||||
|
||||
<target name="build-release" depends="Release, init, build" description="Builds in Release mode" />
|
||||
|
||||
<target name="build-debug" depends="Debug, init, build" description="Builds in Debug mode" />
|
||||
|
||||
<target name="package" depends="clean, doc" description="Builds all" />
|
||||
|
||||
<target name="doc" depends="build-release">
|
||||
<foreach item="File" property="filename">
|
||||
<in>
|
||||
<items>
|
||||
<include name="**/*.build" />
|
||||
<exclude name="${project::get-buildfile-path()}" />
|
||||
</items>
|
||||
</in>
|
||||
<do>
|
||||
<echo message="${filename}" />
|
||||
<nant buildfile="${filename}" target="doc" />
|
||||
</do>
|
||||
</foreach>
|
||||
<echo message="Generating all documentation from all builds" />
|
||||
<nant buildfile="OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.dll.build" target="doc" />
|
||||
<nant buildfile="OpenSim.Framework.Console/OpenSim.Framework.Console.dll.build" target="doc" />
|
||||
<nant buildfile="OpenSim.Config/SimConfigDb4o/OpenSim.Config.SimConfigDb4o.dll.build" target="doc" />
|
||||
<nant buildfile="OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.dll.build" target="doc" />
|
||||
<nant buildfile="OpenSim.GridInterfaces/Remote/OpenSim.GridInterfaces.Remote.dll.build" target="doc" />
|
||||
<nant buildfile="OpenSim.Framework/OpenSim.Framework.dll.build" target="doc" />
|
||||
<nant buildfile="OpenSim.Physics/PhysXplugin/OpenSim.Physics.PhysXplugin.dll.build" target="doc" />
|
||||
<nant buildfile="OpenSim.RegionServer/OpenSim.RegionServer.exe.build" target="doc" />
|
||||
<nant buildfile="OpenSim.Physics/Manager/OpenSim.Physics.Manager.dll.build" target="doc" />
|
||||
<nant buildfile="OpenSim.GridInterfaces/Local/OpenSim.GridInterfaces.Local.dll.build" target="doc" />
|
||||
</target>
|
||||
|
||||
</project>
|
||||
|
|
150
OpenSim.sln
150
OpenSim.sln
|
@ -1,89 +1,89 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Storage.LocalStorageDb4o", "..\zircon\OpenSim.Storage\LocalStorageDb4o\OpenSim.Storage.LocalStorageDb4o.csproj", "{147B65A0-BDD0-4569-86E8-B04A3120FB62}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Storage.LocalStorageDb4o", "OpenSim.Storage\LocalStorageDb4o\OpenSim.Storage.LocalStorageDb4o.csproj", "{C4041B28-BEBA-4171-A64A-8855B612BD7C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Framework.Console", "..\zircon\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj", "{F1B7CF0A-F6CA-419F-AC2E-95FFF2CAE7B7}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Framework.Console", "OpenSim.Framework.Console\OpenSim.Framework.Console.csproj", "{61ED0F60-1E9B-4F1F-B45B-FB6418F92845}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Config.SimConfigDb4o", "..\zircon\OpenSim.Config\SimConfigDb4o\OpenSim.Config.SimConfigDb4o.csproj", "{B4011E4F-E363-48C0-9B99-D65B8E6E67BA}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Config.SimConfigDb4o", "OpenSim.Config\SimConfigDb4o\OpenSim.Config.SimConfigDb4o.csproj", "{036E3EE7-2879-4975-AF77-FE1112ECD3E9}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Physics.BasicPhysicsPlugin", "..\zircon\OpenSim.Physics\BasicPhysicsPlugin\OpenSim.Physics.BasicPhysicsPlugin.csproj", "{93756CDD-663B-48F6-8B72-0B730773DC82}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Physics.BasicPhysicsPlugin", "OpenSim.Physics\BasicPhysicsPlugin\OpenSim.Physics.BasicPhysicsPlugin.csproj", "{4E6EF664-0598-4222-9AC8-BD77DDE3E17C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.GridInterfaces.Remote", "..\zircon\OpenSim.GridInterfaces\Remote\OpenSim.GridInterfaces.Remote.csproj", "{7E55E413-3E75-4FF0-8322-6D179A49C5BF}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.GridInterfaces.Remote", "OpenSim.GridInterfaces\Remote\OpenSim.GridInterfaces.Remote.csproj", "{20C5B7F5-EBFD-46BD-8F4C-C5FE29D10F92}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Framework", "..\zircon\OpenSim.Framework\OpenSim.Framework.csproj", "{15BCBDD6-3591-4443-B060-C34B46E719D4}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Framework", "OpenSim.Framework\OpenSim.Framework.csproj", "{B08C9FD1-28C4-4EA3-8317-7D81564DDC07}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Physics.PhysXplugin", "..\zircon\OpenSim.Physics\PhysXplugin\OpenSim.Physics.PhysXplugin.csproj", "{65AD77F6-5E41-42CB-A6C9-D88009A5159B}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Physics.PhysXplugin", "OpenSim.Physics\PhysXplugin\OpenSim.Physics.PhysXplugin.csproj", "{667016C2-FA4E-410F-8AA2-4FD24F9F8091}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.RegionServer", "..\zircon\OpenSim.RegionServer\OpenSim.RegionServer.csproj", "{E02DFEDE-1F61-470C-8556-6EE467C2884E}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.RegionServer", "OpenSim.RegionServer\OpenSim.RegionServer.csproj", "{7F3535FA-3EEA-4236-BFB2-5B59CE78F87F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Physics.Manager", "..\zircon\OpenSim.Physics\Manager\OpenSim.Physics.Manager.csproj", "{47EF519F-E5E1-4520-9EC4-2FAEB4CA44FB}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Physics.Manager", "OpenSim.Physics\Manager\OpenSim.Physics.Manager.csproj", "{4061B5D6-24D0-4C7A-88D7-B0FE7FAE1774}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.GridInterfaces.Local", "..\zircon\OpenSim.GridInterfaces\Local\OpenSim.GridInterfaces.Local.csproj", "{536BD9EC-9F5D-4D96-B6D5-883D5B7E0DAE}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.GridInterfaces.Local", "OpenSim.GridInterfaces\Local\OpenSim.GridInterfaces.Local.csproj", "{13DD8941-91C2-419C-B9EC-56D79EA1B1E2}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectDependencies) = postSolution
|
||||
({147B65A0-BDD0-4569-86E8-B04A3120FB62}).4 = ({15BCBDD6-3591-4443-B060-C34B46E719D4})
|
||||
({147B65A0-BDD0-4569-86E8-B04A3120FB62}).5 = ({F1B7CF0A-F6CA-419F-AC2E-95FFF2CAE7B7})
|
||||
({B4011E4F-E363-48C0-9B99-D65B8E6E67BA}).5 = ({15BCBDD6-3591-4443-B060-C34B46E719D4})
|
||||
({B4011E4F-E363-48C0-9B99-D65B8E6E67BA}).6 = ({F1B7CF0A-F6CA-419F-AC2E-95FFF2CAE7B7})
|
||||
({93756CDD-663B-48F6-8B72-0B730773DC82}).2 = ({47EF519F-E5E1-4520-9EC4-2FAEB4CA44FB})
|
||||
({7E55E413-3E75-4FF0-8322-6D179A49C5BF}).3 = ({15BCBDD6-3591-4443-B060-C34B46E719D4})
|
||||
({7E55E413-3E75-4FF0-8322-6D179A49C5BF}).4 = ({F1B7CF0A-F6CA-419F-AC2E-95FFF2CAE7B7})
|
||||
({65AD77F6-5E41-42CB-A6C9-D88009A5159B}).3 = ({47EF519F-E5E1-4520-9EC4-2FAEB4CA44FB})
|
||||
({E02DFEDE-1F61-470C-8556-6EE467C2884E}).5 = ({F1B7CF0A-F6CA-419F-AC2E-95FFF2CAE7B7})
|
||||
({E02DFEDE-1F61-470C-8556-6EE467C2884E}).6 = ({47EF519F-E5E1-4520-9EC4-2FAEB4CA44FB})
|
||||
({E02DFEDE-1F61-470C-8556-6EE467C2884E}).7 = ({15BCBDD6-3591-4443-B060-C34B46E719D4})
|
||||
({47EF519F-E5E1-4520-9EC4-2FAEB4CA44FB}).3 = ({F1B7CF0A-F6CA-419F-AC2E-95FFF2CAE7B7})
|
||||
({536BD9EC-9F5D-4D96-B6D5-883D5B7E0DAE}).4 = ({15BCBDD6-3591-4443-B060-C34B46E719D4})
|
||||
({536BD9EC-9F5D-4D96-B6D5-883D5B7E0DAE}).5 = ({F1B7CF0A-F6CA-419F-AC2E-95FFF2CAE7B7})
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{147B65A0-BDD0-4569-86E8-B04A3120FB62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{147B65A0-BDD0-4569-86E8-B04A3120FB62}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{147B65A0-BDD0-4569-86E8-B04A3120FB62}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{147B65A0-BDD0-4569-86E8-B04A3120FB62}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F1B7CF0A-F6CA-419F-AC2E-95FFF2CAE7B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F1B7CF0A-F6CA-419F-AC2E-95FFF2CAE7B7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F1B7CF0A-F6CA-419F-AC2E-95FFF2CAE7B7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F1B7CF0A-F6CA-419F-AC2E-95FFF2CAE7B7}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{B4011E4F-E363-48C0-9B99-D65B8E6E67BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B4011E4F-E363-48C0-9B99-D65B8E6E67BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B4011E4F-E363-48C0-9B99-D65B8E6E67BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B4011E4F-E363-48C0-9B99-D65B8E6E67BA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{93756CDD-663B-48F6-8B72-0B730773DC82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{93756CDD-663B-48F6-8B72-0B730773DC82}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{93756CDD-663B-48F6-8B72-0B730773DC82}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{93756CDD-663B-48F6-8B72-0B730773DC82}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{7E55E413-3E75-4FF0-8322-6D179A49C5BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7E55E413-3E75-4FF0-8322-6D179A49C5BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7E55E413-3E75-4FF0-8322-6D179A49C5BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7E55E413-3E75-4FF0-8322-6D179A49C5BF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{15BCBDD6-3591-4443-B060-C34B46E719D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{15BCBDD6-3591-4443-B060-C34B46E719D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{15BCBDD6-3591-4443-B060-C34B46E719D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{15BCBDD6-3591-4443-B060-C34B46E719D4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{65AD77F6-5E41-42CB-A6C9-D88009A5159B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{65AD77F6-5E41-42CB-A6C9-D88009A5159B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{65AD77F6-5E41-42CB-A6C9-D88009A5159B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{65AD77F6-5E41-42CB-A6C9-D88009A5159B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{E02DFEDE-1F61-470C-8556-6EE467C2884E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E02DFEDE-1F61-470C-8556-6EE467C2884E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E02DFEDE-1F61-470C-8556-6EE467C2884E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E02DFEDE-1F61-470C-8556-6EE467C2884E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{47EF519F-E5E1-4520-9EC4-2FAEB4CA44FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{47EF519F-E5E1-4520-9EC4-2FAEB4CA44FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{47EF519F-E5E1-4520-9EC4-2FAEB4CA44FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{47EF519F-E5E1-4520-9EC4-2FAEB4CA44FB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{536BD9EC-9F5D-4D96-B6D5-883D5B7E0DAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{536BD9EC-9F5D-4D96-B6D5-883D5B7E0DAE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{536BD9EC-9F5D-4D96-B6D5-883D5B7E0DAE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{536BD9EC-9F5D-4D96-B6D5-883D5B7E0DAE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectDependencies) = postSolution
|
||||
({C4041B28-BEBA-4171-A64A-8855B612BD7C}).4 = ({B08C9FD1-28C4-4EA3-8317-7D81564DDC07})
|
||||
({C4041B28-BEBA-4171-A64A-8855B612BD7C}).5 = ({61ED0F60-1E9B-4F1F-B45B-FB6418F92845})
|
||||
({036E3EE7-2879-4975-AF77-FE1112ECD3E9}).5 = ({B08C9FD1-28C4-4EA3-8317-7D81564DDC07})
|
||||
({036E3EE7-2879-4975-AF77-FE1112ECD3E9}).6 = ({61ED0F60-1E9B-4F1F-B45B-FB6418F92845})
|
||||
({4E6EF664-0598-4222-9AC8-BD77DDE3E17C}).2 = ({4061B5D6-24D0-4C7A-88D7-B0FE7FAE1774})
|
||||
({20C5B7F5-EBFD-46BD-8F4C-C5FE29D10F92}).3 = ({B08C9FD1-28C4-4EA3-8317-7D81564DDC07})
|
||||
({20C5B7F5-EBFD-46BD-8F4C-C5FE29D10F92}).4 = ({61ED0F60-1E9B-4F1F-B45B-FB6418F92845})
|
||||
({667016C2-FA4E-410F-8AA2-4FD24F9F8091}).3 = ({4061B5D6-24D0-4C7A-88D7-B0FE7FAE1774})
|
||||
({7F3535FA-3EEA-4236-BFB2-5B59CE78F87F}).5 = ({61ED0F60-1E9B-4F1F-B45B-FB6418F92845})
|
||||
({7F3535FA-3EEA-4236-BFB2-5B59CE78F87F}).6 = ({4061B5D6-24D0-4C7A-88D7-B0FE7FAE1774})
|
||||
({7F3535FA-3EEA-4236-BFB2-5B59CE78F87F}).7 = ({B08C9FD1-28C4-4EA3-8317-7D81564DDC07})
|
||||
({4061B5D6-24D0-4C7A-88D7-B0FE7FAE1774}).3 = ({61ED0F60-1E9B-4F1F-B45B-FB6418F92845})
|
||||
({13DD8941-91C2-419C-B9EC-56D79EA1B1E2}).4 = ({B08C9FD1-28C4-4EA3-8317-7D81564DDC07})
|
||||
({13DD8941-91C2-419C-B9EC-56D79EA1B1E2}).5 = ({61ED0F60-1E9B-4F1F-B45B-FB6418F92845})
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C4041B28-BEBA-4171-A64A-8855B612BD7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{C4041B28-BEBA-4171-A64A-8855B612BD7C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C4041B28-BEBA-4171-A64A-8855B612BD7C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C4041B28-BEBA-4171-A64A-8855B612BD7C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{61ED0F60-1E9B-4F1F-B45B-FB6418F92845}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{61ED0F60-1E9B-4F1F-B45B-FB6418F92845}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{61ED0F60-1E9B-4F1F-B45B-FB6418F92845}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{61ED0F60-1E9B-4F1F-B45B-FB6418F92845}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{036E3EE7-2879-4975-AF77-FE1112ECD3E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{036E3EE7-2879-4975-AF77-FE1112ECD3E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{036E3EE7-2879-4975-AF77-FE1112ECD3E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{036E3EE7-2879-4975-AF77-FE1112ECD3E9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{4E6EF664-0598-4222-9AC8-BD77DDE3E17C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4E6EF664-0598-4222-9AC8-BD77DDE3E17C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4E6EF664-0598-4222-9AC8-BD77DDE3E17C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4E6EF664-0598-4222-9AC8-BD77DDE3E17C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{20C5B7F5-EBFD-46BD-8F4C-C5FE29D10F92}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{20C5B7F5-EBFD-46BD-8F4C-C5FE29D10F92}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{20C5B7F5-EBFD-46BD-8F4C-C5FE29D10F92}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{20C5B7F5-EBFD-46BD-8F4C-C5FE29D10F92}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{B08C9FD1-28C4-4EA3-8317-7D81564DDC07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B08C9FD1-28C4-4EA3-8317-7D81564DDC07}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B08C9FD1-28C4-4EA3-8317-7D81564DDC07}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B08C9FD1-28C4-4EA3-8317-7D81564DDC07}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{667016C2-FA4E-410F-8AA2-4FD24F9F8091}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{667016C2-FA4E-410F-8AA2-4FD24F9F8091}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{667016C2-FA4E-410F-8AA2-4FD24F9F8091}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{667016C2-FA4E-410F-8AA2-4FD24F9F8091}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{7F3535FA-3EEA-4236-BFB2-5B59CE78F87F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7F3535FA-3EEA-4236-BFB2-5B59CE78F87F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7F3535FA-3EEA-4236-BFB2-5B59CE78F87F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7F3535FA-3EEA-4236-BFB2-5B59CE78F87F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{4061B5D6-24D0-4C7A-88D7-B0FE7FAE1774}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4061B5D6-24D0-4C7A-88D7-B0FE7FAE1774}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4061B5D6-24D0-4C7A-88D7-B0FE7FAE1774}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4061B5D6-24D0-4C7A-88D7-B0FE7FAE1774}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{13DD8941-91C2-419C-B9EC-56D79EA1B1E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{13DD8941-91C2-419C-B9EC-56D79EA1B1E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{13DD8941-91C2-419C-B9EC-56D79EA1B1E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{13DD8941-91C2-419C-B9EC-56D79EA1B1E2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
|
|
@ -0,0 +1,67 @@
|
|||
<?xml version="1.0" ?>
|
||||
<project name="Prebuild" default="build">
|
||||
<echo message="Using '${nant.settings.currentframework}' Framework"/>
|
||||
|
||||
<property name="bin.dir" value="bin" />
|
||||
<property name="obj.dir" value="obj" />
|
||||
<property name="doc.dir" value="doc" />
|
||||
<property name="project.main.dir" value="${project::get-base-directory()}" />
|
||||
|
||||
<target name="Debug" description="">
|
||||
<property name="project.config" value="Debug" />
|
||||
<property name="build.debug" value="true" />
|
||||
</target>
|
||||
|
||||
<property name="project.config" value="Release" />
|
||||
|
||||
<target name="Release" description="">
|
||||
<property name="project.config" value="Release" />
|
||||
<property name="build.debug" value="false" />
|
||||
</target>
|
||||
|
||||
<target name="net-1.1" description="Sets framework to .NET 1.1">
|
||||
<property name="nant.settings.currentframework" value="net-1.1" />
|
||||
</target>
|
||||
|
||||
<target name="net-2.0" description="Sets framework to .NET 2.0">
|
||||
<property name="nant.settings.currentframework" value="net-2.0" />
|
||||
</target>
|
||||
|
||||
<target name="mono-2.0" description="Sets framework to mono 2.0">
|
||||
<property name="nant.settings.currentframework" value="mono-2.0" />
|
||||
</target>
|
||||
|
||||
<target name="mono-1.0" description="Sets framework to mono 1.0">
|
||||
<property name="nant.settings.currentframework" value="mono-1.0" />
|
||||
</target>
|
||||
|
||||
<target name="init" description="">
|
||||
<call target="${project.config}" />
|
||||
<sysinfo />
|
||||
<echo message="Platform ${sys.os.platform}" />
|
||||
<property name="build.dir" value="${bin.dir}/${project.config}" />
|
||||
</target>
|
||||
|
||||
<target name="clean" description="">
|
||||
<echo message="Deleting all builds from all configurations" />
|
||||
<delete dir="${bin.dir}" failonerror="false" />
|
||||
<delete dir="${obj.dir}" failonerror="false" />
|
||||
<nant buildfile="src/Prebuild.exe.build" target="clean" />
|
||||
</target>
|
||||
|
||||
<target name="build" depends="init" description="">
|
||||
<nant buildfile="src/Prebuild.exe.build" target="build" />
|
||||
</target>
|
||||
|
||||
<target name="build-release" depends="Release, init, build" description="Builds in Release mode" />
|
||||
|
||||
<target name="build-debug" depends="Debug, init, build" description="Builds in Debug mode" />
|
||||
|
||||
<target name="package" depends="clean, doc" description="Builds all" />
|
||||
|
||||
<target name="doc" depends="build-release">
|
||||
<echo message="Generating all documentation from all builds" />
|
||||
<nant buildfile="src/Prebuild.exe.build" target="doc" />
|
||||
</target>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,25 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Prebuild", "src\Prebuild.csproj", "{0E325E61-D8C0-4AC6-BE7D-8D6EBF49FDC6}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{468F1D07-AD17-4CC3-ABD0-2CA268E4E1A6}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
prebuild = prebuild
|
||||
prebuild.xml = prebuild.xml
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{0E325E61-D8C0-4AC6-BE7D-8D6EBF49FDC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0E325E61-D8C0-4AC6-BE7D-8D6EBF49FDC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0E325E61-D8C0-4AC6-BE7D-8D6EBF49FDC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0E325E61-D8C0-4AC6-BE7D-8D6EBF49FDC6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -0,0 +1,230 @@
|
|||
Prebuild Instructions
|
||||
|
||||
Prebuild is an XML-driven pre-build tool allowing developers to easily generate project or make files for major IDE's and .NET development tools including: Visual Studio 2005, Visual Studio 2003, Visual Studio 2002, SharpDevelop, SharpDevelop2, MonoDevelop, and NAnt.
|
||||
|
||||
_________________________________________________________________________________
|
||||
Overview
|
||||
|
||||
Prebuild can be either be run from the command line to generate the project and make files or you can execute the included batch (*.bat) and Unix Shell script (*.sh) files.
|
||||
The Prebuild file
|
||||
|
||||
_________________________________________________________________________________
|
||||
The currently supported developement tools and their associated batch and shell script files.
|
||||
|
||||
Visual Studio .NET 2005 (VS2005.bat)
|
||||
Visual Studio .NET 2003 (VS2003.bat)
|
||||
Visual Studio .NET 2002 (VS2002.bat)
|
||||
SharpDevelop (SharpDevelop.bat) - http://www.icsharpcode.net/OpenSource/SD/
|
||||
SharpDevelop2 (SharpDevelop.bat) - http://www.icsharpcode.net/OpenSource/SD/
|
||||
MonoDevelop (MonoDevelop.sh) - http://www.monodevelop.com/
|
||||
NAnt (nant.sh and nant.bat) - http://nant.sourceforge.net/
|
||||
Autotools (autotools.bat and autotools.sh) http://www.gnu.org. Only partial support
|
||||
|
||||
Notes:
|
||||
A Unix Shell script is provided for MonoDevelop, as this is more appropriate than a windows batch file.
|
||||
Visual Studio .NET 2005 and the Visual Express IDE's can import solutions from older versions of Visual Studio .NET.
|
||||
Makefiles are not currently supported.
|
||||
|
||||
_________________________________________________________________________________
|
||||
Command Line Syntax:
|
||||
|
||||
Example:
|
||||
>Prebuild /target vs2003
|
||||
|
||||
This will generate the project files for Visual Studio.NET 2003 and place the redirect the log to a file named PrebuildLog.txt in the parent directory
|
||||
|
||||
|
||||
The syntax structure is as below, where commandParameter is optional depending on the command and you can provide several option-value pairs.
|
||||
Note: The '>' signified the command line, do not actually enter this manually
|
||||
|
||||
>Prebuild /<option> <commandParameter>
|
||||
|
||||
>Prebuild /target vs2003 /pause
|
||||
|
||||
>Prebuild /target vs2003 /log ../Log.txt /pause /ppo /file ProjectConfig.xml
|
||||
|
||||
>Prebuild /target sharpdev /log
|
||||
|
||||
>Prebuild /removedir obj|bin
|
||||
|
||||
>Prebuild /target vs2003 /allowedgroups Group1|Group2
|
||||
|
||||
>Prebuild /clean
|
||||
|
||||
>Prebuild /clean /yes
|
||||
|
||||
>Prebuild /clean vs2003
|
||||
|
||||
_________________________________________________________________________________
|
||||
Command Line Options:
|
||||
|
||||
/usage - Shows the help information on how to use Prebuild and what the different options are and what they do
|
||||
|
||||
/clean - The project files generated for the target type specified as a parameter for this option will be deleted. If no value is specified or if 'all' is specified, then project files for all the target types will be deleted.
|
||||
|
||||
/target - Specified the name of the development tool for which project or make files will be generated. Possible parameter values include: vs2003, vs2002, sharpdev
|
||||
|
||||
/file - Specifies the name of the XML which defines what files are to be referenced by the generated project files as well as configures the options for them. If not specified, prebuild.xml will be used as the default.
|
||||
|
||||
/log - Specified the log file that should be written to for build errors. If this option is not specified, no log file is generated, but if just no value is specified, then the defaul filename will be used for the log (Prebuild.log).
|
||||
|
||||
/ppo - Preprocesses the xml file to test for syntax errors or problems but doesn't generate the files
|
||||
|
||||
/pause - Shows the console until you press a key so that you can view the messages written while performing the specified actions.
|
||||
This allows you to check if an errors occurred and - if so - what it was.
|
||||
|
||||
/showtargets - Shows a list of all the targets that can be specified as values for the /clean and /target commands.
|
||||
|
||||
/allowedgroups - This is followed by a pipe-delimited list of project group filter flags (eg. Group1|Group2) allow optional filtering of all projects that dont have at least one of these flags
|
||||
|
||||
/removedir - This is followed by a pipe-delimited list of directory names that will be deleted while recursivly searching the directory of the prebuild application and its child directories (eg. use obj|bin to delete all output and temporary directories before file releases)
|
||||
|
||||
/yes - Answer yes to any warnings (e.g. when cleaning all projects).
|
||||
|
||||
_________________________________________________________________________________
|
||||
Example Batch Files and Shell Scripts
|
||||
|
||||
NOTE: Common batch and shell script files are included with Prebuild source and file releases.
|
||||
______________________________
|
||||
MonoDevelop
|
||||
|
||||
#!/bin/sh
|
||||
# Generates a combine (.cmbx) and a set of project files (.prjx)
|
||||
# for MonoDevelop, a Mono port of SharpDevelop (http://icsharpcode.net/OpenSource/SD/Default.aspx)
|
||||
./Prebuild /target sharpdev /pause
|
||||
|
||||
______________________________
|
||||
Visual Studio .NET 2003
|
||||
|
||||
@rem Generates a solution (.sln) and a set of project files (.csproj)
|
||||
@rem for Microsoft Visual Studio .NET 2002
|
||||
Prebuild /target vs2003 /pause
|
||||
|
||||
Notes:
|
||||
Text after lines that start with @rem are comments and are not evaluated
|
||||
You can also place pause on the last line instead of specifing the /pause command.
|
||||
|
||||
________________________________________________________________________________
|
||||
Example XML Configuration File
|
||||
|
||||
Note:
|
||||
XML Comments (<!-- Comment -->) are used to markup the prebuild.xml file with notes
|
||||
The below file may be out-of-date, however the RealmForge Prebuild file serves as an up-to-date and extensive example.
|
||||
It can be viewed using Tigris.org's WebSVN (http://realmforge.tigris.org/source/browse/realmforge/trunk/src/prebuild.xml) by just clicking on the "view file" link for the latest revision.
|
||||
|
||||
_________________________________
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--The version of the XML schema specified in the version and xmlns attributes should match the one for which the version of Prebuild.exe used was compiled for. In this example it is the version 1.3 schema, you can find the XSD schema file at the url specified in the xmlns attribute. -->
|
||||
<Prebuild version="1.6" xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.6.xsd">
|
||||
<Solution name="RealmForge"> <!--The title and file name for the solution, combine, workspace, or project group (depending on what development tool you are using)-->
|
||||
<!--Configurations found as children of Solution are used as templates for the configurations found in the project, this allows you to avoid writing the same options in each project (and maintaining each of these). You can provide defaults and then override them in the configurations defined for each project. All options are optional.-->
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<!-- simple logically expressions can be evaluated, if, else, elseif, and endif are valid statements. Note that it is not neccisary to define POSIX or WIN32 -->
|
||||
<?if OS = "Win32" ?>
|
||||
<CompilerDefines>DEBUG;TRACE;WIN32</CompilerDefines>
|
||||
<?else ?>
|
||||
<CompilerDefines>DEBUG;TRACE;POSIX</CompilerDefines>
|
||||
<?endif ?>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<CheckUnderflowOverflow>false</CheckUnderflowOverflow>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<!-The filter for the number of warnings or errors shown and the tolerance level as to what is an error. This is value from 0 to 4 where 4 is the most strict (least tolerent).-->
|
||||
|
||||
<WarningsAsErrors>false</WarningsAsErrors>
|
||||
<SuppressWarnings>1591;219;1573;1572;168</SuppressWarnings>
|
||||
<!-- A semicolon ';' delimited list of the warnings that are filtered and not shown in the output window during compiling a project. Only include the number portion of the warning codes that are shown in output during compilation (eg CS1591, should be entered as 1591)-->
|
||||
|
||||
<OutputPath>..\bin</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<RegisterComInterop>false</RegisterComInterop>
|
||||
<IncrementalBuild>true</IncrementalBuild>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<NoStdLib>false</NoStdLib>
|
||||
<XmlDocFile>Docs.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release"> <!-- You can define multple configurations that projects can have, but there is no way to define which one is selected by default as this is a part of the user preferences for a project, not the solution or project files -->
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<CheckUnderflowOverflow>false</CheckUnderflowOverflow>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<WarningsAsErrors>false</WarningsAsErrors>
|
||||
<SuppressWarnings>1591;219;1573;1572;168</SuppressWarnings>
|
||||
<OutputPath>..\bin</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<RegisterComInterop>false</RegisterComInterop>
|
||||
<IncrementalBuild>true</IncrementalBuild>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<NoStdLib>false</NoStdLib>
|
||||
<GenerateXmlDocFile>true</GenerateXmlDocFile>
|
||||
<XmlDocFile>Docs.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<!-- One of the projects that is included in the Solution -->
|
||||
<Project name="RealmForge.Utility" Language="VisualBasic" path="Utility" type="Library" assemblyName="RealmForge.Utility" rootNamespace="RealmForge">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\Utility</OutputPath>
|
||||
<XmlDocFile>RealmForge.Utility.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\Utility</OutputPath>
|
||||
<XmlDocFile>RealmForge.Utility.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<ReferencePath>../bin</ReferencePath>
|
||||
<Reference name="System"/>
|
||||
<Reference name="System.Data"/>
|
||||
<Reference name="System.Drawing"/>
|
||||
<Reference name="System.Xml"/>
|
||||
<Reference name="System.Runtime.Serialization.Formatters.Soap"/>
|
||||
<Reference name="ICSharpCode.SharpZipLib"/>
|
||||
<Files>
|
||||
<Match path="." pattern="*.vb" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
|
||||
<!-- Another projects that is included in the Solution -->
|
||||
<Project name="DemoGame" Language="C#" path="DemoGame" type="WinExe" icon="..\bin\RealmForge.ico" assemblyName="DemoGame" rootNamespace="RealmForge">
|
||||
<!-- icon is used to define the location of the .ico file that is embeeded in the assembly when the project is compiled. This is relative to the project path -->
|
||||
<!--type defines the type of project, valid types are Library (.dll), WinExe (.exe), and Exe (.exe). WinExe is not windows specific, it just defines that it is a GUI application and that no Console or Command window will show when it is started-->
|
||||
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>..\bin</OutputPath>
|
||||
<XmlDocFile>DemoGame.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>..\bin</OutputPath>
|
||||
<XmlDocFile>DemoGame.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<ReferencePath>../bin</ReferencePath>
|
||||
<Reference name="System"/> <!-- Assemblies that are located in the GAC (installed, global) can be referenced-->
|
||||
<Reference name="ode"/> <!-- Assemblies that are located in the output directory to which the file is built can be referenced -->
|
||||
<Reference name="RealmForge.Utility"/> <!-- When you reference the name of another project, then that project (and it's output) will be referenced instead of looking for a pre-built assembly-->
|
||||
<Files>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
<Match path="." pattern="*.bmp" recurse="true" buildAction="EmbeddedResource"/>
|
||||
<Match path="." pattern="[^a]*\.(png|jpg)" useRegex="true" buildAction="EmbeddedResource"/>
|
||||
|
||||
<!-- Uses a regex or regular expression to find all files that end with .png or .jpg but dont have the letter 'a' in their name and add them to the project as EmbeddedResource's. Because recurse enabled (default is false), only the values in the files in that are directly in the project directory (not child directories) are checked.-->
|
||||
<!--EmbeddedResource, Content, and Compile are valid buildAction's-->
|
||||
</Files>
|
||||
</Project>
|
||||
|
||||
</Solution>
|
||||
</Prebuild>
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
* monodev target should be able to detect whether the project is 1.x
|
||||
or 2.x runtime
|
||||
|
||||
* make an autotools install target for .exe files
|
||||
|
||||
* Fix the autotools target so that
|
||||
|
||||
if(numProjects == 1){
|
||||
for($projectDir){
|
||||
generate_a_project_configure_dot_ac()
|
||||
}
|
||||
}else{
|
||||
generate_a_solution_configure_dot_ac()
|
||||
|
||||
foreach($project in $projectsList){
|
||||
mkdir $project/
|
||||
cd $project/
|
||||
generate_a_project_configure_dot_ac
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,300 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Prebuild version="1.6" xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.6.xsd">
|
||||
<Solution name="RealmForge">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE;DEBUG</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<CheckUnderflowOverflow>false</CheckUnderflowOverflow>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<WarningsAsErrors>false</WarningsAsErrors>
|
||||
<SuppressWarnings>1591;219;1573;1572;168</SuppressWarnings>
|
||||
<OutputPath>..\bin</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<RegisterComInterop>false</RegisterComInterop>
|
||||
<IncrementalBuild>true</IncrementalBuild>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<NoStdLib>false</NoStdLib>
|
||||
<XmlDocFile>Docs.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<CheckUnderflowOverflow>false</CheckUnderflowOverflow>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<WarningsAsErrors>false</WarningsAsErrors>
|
||||
<SuppressWarnings>1591;219;1573;1572;168</SuppressWarnings>
|
||||
<OutputPath>..\bin</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<RegisterComInterop>false</RegisterComInterop>
|
||||
<IncrementalBuild>true</IncrementalBuild>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<NoStdLib>false</NoStdLib>
|
||||
<XmlDocFile>Docs.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Project name="RealmForge.Utility" path="Utility" type="Library" assemblyName="RealmForge.Utility" rootNamespace="RealmForge">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\Utility</OutputPath>
|
||||
<XmlDocFile>RealmForge.Utility.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\Utility</OutputPath>
|
||||
<XmlDocFile>RealmForge.Utility.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<ReferencePath>../bin</ReferencePath>
|
||||
<Reference name="System"/>
|
||||
<Reference name="System.Data"/>
|
||||
<Reference name="System.Drawing"/>
|
||||
<Reference name="System.Xml"/>
|
||||
<Reference name="System.Runtime.Serialization.Formatters.Soap"/>
|
||||
<Reference name="ICSharpCode.SharpZipLib"/>
|
||||
<Files>
|
||||
<Match pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
|
||||
<Project name="RealmForge.Framework" path="Framework" type="Library" assemblyName="RealmForge.Framework" rootNamespace="RealmForge">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\Framework</OutputPath>
|
||||
<XmlDocFile>RealmForge.Framework.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\Framework</OutputPath>
|
||||
<XmlDocFile>RealmForge.Framework.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<ReferencePath>../bin</ReferencePath>
|
||||
<Reference name="System"/>
|
||||
<Reference name="System.Data"/>
|
||||
<Reference name="System.Xml"/>
|
||||
<Reference name="System.Windows.Forms"/>
|
||||
<Reference name="System.Drawing"/>
|
||||
<Reference name="Axiom.MathLib"/>
|
||||
<Reference name="RealmForge.Utility"/>
|
||||
<Reference name="Tao.OpenAl"/>
|
||||
<Reference name="ICSharpCode.SharpZipLib"/>
|
||||
<Reference name="csogg"/>
|
||||
<Reference name="csvorbis"/>
|
||||
<Files>
|
||||
<Match pattern="*.cs" recurse="true"/>
|
||||
<Match pattern="*.txt" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
|
||||
<Project name="RealmForge.Genres" path="Genres" type="Library" assemblyName="RealmForge.Genres" rootNamespace="RealmForge">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\Genres</OutputPath>
|
||||
<XmlDocFile>RealmForge.Genres.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\Genres</OutputPath>
|
||||
<XmlDocFile>RealmForge.Genres.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<ReferencePath>../bin</ReferencePath>
|
||||
<Reference name="System"/>
|
||||
<Reference name="System.Data"/>
|
||||
<Reference name="System.Xml"/>
|
||||
<Reference name="System.Windows.Forms"/>
|
||||
<Reference name="System.Drawing"/>
|
||||
<Reference name="Axiom.MathLib"/>
|
||||
<Reference name="RealmForge.Utility"/>
|
||||
<Reference name="RealmForge.Framework"/>
|
||||
<Files>
|
||||
<Match pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
|
||||
<Project name="RealmForge.UI.Forms" path="Forms" type="Library" assemblyName="RealmForge.UI.Forms" rootNamespace="RealmForge">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\Forms</OutputPath>
|
||||
<XmlDocFile>RealmForge.UI.Forms.xml</XmlDocFile>
|
||||
<AllowUnsafe>true</AllowUnsafe>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\Forms</OutputPath>
|
||||
<XmlDocFile>RealmForge.UI.Forms.xml</XmlDocFile>
|
||||
<AllowUnsafe>true</AllowUnsafe>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<ReferencePath>../bin</ReferencePath>
|
||||
<Reference name="System"/>
|
||||
<Reference name="System.Drawing"/>
|
||||
<Reference name="System.Data"/>
|
||||
<Reference name="System.Design"/>
|
||||
<Reference name="System.Windows.Forms"/>
|
||||
<Reference name="System.Xml"/>
|
||||
<Reference name="Axiom.MathLib"/>
|
||||
<Reference name="wx.NET"/>
|
||||
<Reference name="RealmForge.Framework"/>
|
||||
<Reference name="RealmForge.Utility"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">IDE\Resources\ImagesCaptionIDE.bmp</File>
|
||||
<File buildAction="EmbeddedResource">IDE\Resources\ImagesCaptionPlain.bmp</File>
|
||||
<File buildAction="EmbeddedResource">IDE\Resources\ImagesMenuControl.bmp</File>
|
||||
<File buildAction="EmbeddedResource">IDE\Resources\ImagesPopupMenu.bmp</File>
|
||||
<File buildAction="EmbeddedResource">IDE\Resources\ImagesTabbedGroups.bmp</File>
|
||||
<File buildAction="EmbeddedResource">IDE\Resources\ImagesTabControl.bmp</File>
|
||||
<File buildAction="EmbeddedResource">IDE\Resources\LibraryIcon.ico</File>
|
||||
<File buildAction="EmbeddedResource">IDE\Resources\TabbedInvalid.cur</File>
|
||||
<File buildAction="EmbeddedResource">IDE\Resources\TabbedValid.cur</File>
|
||||
<File buildAction="EmbeddedResource">IDE\Resources\WizardPicture.bmp</File>
|
||||
<File buildAction="EmbeddedResource">Controls\Trees\tv_minus.bmp</File>
|
||||
<File buildAction="EmbeddedResource">Controls\Trees\tv_plus.bmp</File>
|
||||
<File buildAction="EmbeddedResource">Controls\Trees\treeview.bmp</File>
|
||||
<File buildAction="EmbeddedResource">Controls\Trees\listview.bmp</File>
|
||||
<File buildAction="EmbeddedResource">IDE\Menus\MenuControl.bmp</File>
|
||||
<File buildAction="EmbeddedResource">IDE\Controls\InertButton.bmp</File>
|
||||
<File buildAction="EmbeddedResource">IDE\Controls\TabbedGroups.bmp</File>
|
||||
<File buildAction="EmbeddedResource">IDE\Controls\TabCOntrol.bmp</File>
|
||||
<File buildAction="EmbeddedResource">IDE\Controls\WizardControl.bmp</File>
|
||||
<File buildAction="EmbeddedResource">Forms\IDETest.resx</File>
|
||||
<File buildAction="EmbeddedResource">Forms\IDEWindow.resx</File>
|
||||
<File buildAction="EmbeddedResource">Forms\Launcher.resx</File>
|
||||
<File buildAction="EmbeddedResource">Forms\MainRenderFrame.resx</File>
|
||||
<Match pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
|
||||
<Project name="RealmForge.RAGE" path="RAGE" type="Library" assemblyName="RealmForge.RAGE" rootNamespace="RealmForge">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\RAGE</OutputPath>
|
||||
<XmlDocFile>RealmForge.RAGE.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\RAGE</OutputPath>
|
||||
<XmlDocFile>RealmForge.RAGE.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<ReferencePath>../bin</ReferencePath>
|
||||
<ReferencePath>../bin</ReferencePath>
|
||||
<Reference name="System"/>
|
||||
<Reference name="System.XML"/>
|
||||
<Reference name="System.Windows.Forms"/>
|
||||
<Reference name="System.Drawing"/>
|
||||
<Reference name="Axiom.Plugins.CgProgramManager"/>
|
||||
<Reference name="Axiom.Engine"/>
|
||||
<Reference name="Axiom.MathLib"/>
|
||||
<Reference name="Axiom.Plugins.ParticleFX"/>
|
||||
<Reference name="Axiom.Platforms.Win32"/>
|
||||
<Reference name="Axiom.RenderSystems.DirectX9"/>
|
||||
<Reference localCopy="false" name="Axiom.RenderSystems.OpenGL"/>
|
||||
<Reference name="Axiom.SceneManagers.Octree"/>
|
||||
<Reference name="ICSharpCode.SharpZipLib"/>
|
||||
<Reference name="System.Data"/>
|
||||
<Reference name="RealmForge.Framework"/>
|
||||
<Reference name="RealmForge.Utility"/>
|
||||
<Reference name="ode"/>
|
||||
<Files>
|
||||
<Match pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
|
||||
|
||||
<Project name="RealmForge.ScriptLibrary" path="ScriptLibrary" type="Library" assemblyName="RealmForge.ScriptLibrary" rootNamespace="RSL">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>..\bin\ScriptLibrary</OutputPath>
|
||||
<XmlDocFile>RealmForge.ScriptLibrary.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>..\bin\ScriptLibrary</OutputPath>
|
||||
<XmlDocFile>RealmForge.ScriptLibrary.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<ReferencePath>../bin</ReferencePath>
|
||||
<Reference name="System"/>
|
||||
<Reference name="System.XML"/>
|
||||
<Reference name="System.Windows.Forms"/>
|
||||
<Reference name="System.Drawing"/>
|
||||
<Reference name="Axiom.MathLib"/>
|
||||
<Reference name="wx.NET"/>
|
||||
<Reference name="RealmForge.UI.Forms"/>
|
||||
<Reference name="RealmForge.RAGE"/>
|
||||
<Reference name="RealmForge.Framework"/>
|
||||
<Reference name="RealmForge.Utility"/>
|
||||
<Files>
|
||||
<Match pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
|
||||
|
||||
<Project name="Updater" path="Updater" type="WinExe" icon="..\bin\Updater.ico" assemblyName="Updater" rootNamespace="RealmForge">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\Updater</OutputPath>
|
||||
<XmlDocFile>Updater.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\Updater</OutputPath>
|
||||
<XmlDocFile>Updater.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<ReferencePath>../bin</ReferencePath>
|
||||
<Reference name="System"/>
|
||||
<Reference name="RealmForge.UI.Forms"/>
|
||||
<Reference name="RealmForge.Framework"/>
|
||||
<Reference name="RealmForge.Utility"/>
|
||||
<Files>
|
||||
<Match pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
|
||||
|
||||
<Project name="DemoGame" path="DemoGame" type="WinExe" icon="..\bin\RealmForge.ico" assemblyName="DemoGame" rootNamespace="RealmForge">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>..\bin</OutputPath>
|
||||
<XmlDocFile>DemoGame.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>..\bin</OutputPath>
|
||||
<XmlDocFile>DemoGame.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<ReferencePath>../bin</ReferencePath>
|
||||
<Reference name="System"/>
|
||||
<Reference name="RealmForge.UI.Forms"/>
|
||||
<Reference name="RealmForge.ScriptLibrary"/>
|
||||
<Reference name="RealmForge.RAGE"/>
|
||||
<Reference name="RealmForge.Framework"/>
|
||||
<Reference name="RealmForge.Utility"/>
|
||||
<Files>
|
||||
<Match pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
|
||||
</Solution>
|
||||
</Prebuild>
|
||||
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.6.xsd">
|
||||
<Solution name="Prebuild">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<?if OS = "Win32" ?>
|
||||
<CompilerDefines>DEBUG;TRACE;WIN32;NET</CompilerDefines>
|
||||
<?else ?>
|
||||
<CompilerDefines>DEBUG;TRACE;POSIX</CompilerDefines>
|
||||
<?endif ?>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<?if OS = "Win32" ?>
|
||||
<CompilerDefines>TRACE;WIN32;NET</CompilerDefines>
|
||||
<?else ?>
|
||||
<CompilerDefines>TRACE;POSIX</CompilerDefines>
|
||||
<?endif ?>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Files>
|
||||
<File>prebuild.xml</File>
|
||||
<Match path="doc" pattern="*.txt"/>
|
||||
</Files>
|
||||
<Project name="Prebuild" path="src" language="C#" assemblyName="Prebuild" icon="App.ico" type="Exe" rootNamespace="Prebuild" startupObject="Prebuild.Prebuild">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<?if OS = "Win32" ?>
|
||||
<CompilerDefines>DEBUG;TRACE;WIN32;NET</CompilerDefines>
|
||||
<?else ?>
|
||||
<CompilerDefines>DEBUG;TRACE;POSIX</CompilerDefines>
|
||||
<?endif ?>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>Prebuild.xml</XmlDocFile>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<?if OS = "Win32" ?>
|
||||
<CompilerDefines>TRACE;WIN32;NET</CompilerDefines>
|
||||
<?else ?>
|
||||
<CompilerDefines>TRACE;POSIX</CompilerDefines>
|
||||
<?endif ?>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>Prebuild.xml</XmlDocFile>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System.Xml" />
|
||||
<Reference name="System" />
|
||||
<Files>
|
||||
<Match pattern="App.ico" buildAction="EmbeddedResource"/>
|
||||
<Match path="data" pattern="prebuild-1.6.xsd" buildAction="EmbeddedResource"/>
|
||||
<Match pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
</Solution>
|
||||
</Prebuild>
|
|
@ -0,0 +1,113 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--The version of the XML schema specified in the version and xmlns attributes should match the one for which the version of Prebuild.exe used was compiled for. In this example it is the version 1.6 schema, you can find the XSD schema file at the url specified in the xmlns attribute. -->
|
||||
<Prebuild version="1.6" xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.6.xsd">
|
||||
<Solution name="RealmForge"> <!--The title and file name for the solution, combine, workspace, or project group (depending on what development tool you are using)-->
|
||||
<!--Configurations found as children of Solution are used as templates for the configurations found in the project, this allows you to avoid writing the same options in each project (and maintaining each of these). You can provide defaults and then override them in the configurations defined for each project. All options are optional.-->
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<!-- simple logically expressions can be evaluated, if, else, elseif, and endif are valid statements. Note that it is not neccisary to define POSIX or WIN32 -->
|
||||
<?if OS = "Win32" ?>
|
||||
<CompilerDefines>DEBUG;TRACE;WIN32</CompilerDefines>
|
||||
<?else ?>
|
||||
<CompilerDefines>DEBUG;TRACE;POSIX</CompilerDefines>
|
||||
<?endif ?>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<CheckUnderflowOverflow>false</CheckUnderflowOverflow>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<!--The filter for the number of warnings or errors shown and the tolerance level as to what is an error. This is value from 0 to 4 where 4 is the most strict (least tolerent).-->
|
||||
|
||||
<WarningsAsErrors>false</WarningsAsErrors>
|
||||
<SuppressWarnings>1591;219;1573;1572;168</SuppressWarnings>
|
||||
<!-- A semicolon ';' delimited list of the warnings that are filtered and not shown in the output window during compiling a project. Only include the number portion of the warning codes that are shown in output during compilation (eg CS1591, should be entered as 1591)-->
|
||||
|
||||
<OutputPath>..\bin</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<RegisterComInterop>false</RegisterComInterop>
|
||||
<IncrementalBuild>true</IncrementalBuild>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<NoStdLib>false</NoStdLib>
|
||||
<XmlDocFile>Docs.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release"> <!-- You can define multple configurations that projects can have, but there is no way to define which one is selected by default as this is a part of the user preferences for a project, not the solution or project files -->
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<CheckUnderflowOverflow>false</CheckUnderflowOverflow>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<WarningsAsErrors>false</WarningsAsErrors>
|
||||
<SuppressWarnings>1591;219;1573;1572;168</SuppressWarnings>
|
||||
<OutputPath>..\bin</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<RegisterComInterop>false</RegisterComInterop>
|
||||
<IncrementalBuild>true</IncrementalBuild>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<NoStdLib>false</NoStdLib>
|
||||
<XmlDocFile>Docs.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<!-- One of the projects that is included in the Solution -->
|
||||
<Project name="RealmForge.Utility" path="Utility" type="Library" assemblyName="RealmForge.Utility" rootNamespace="RealmForge">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\Utility</OutputPath>
|
||||
<XmlDocFile>RealmForge.Utility.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>..\bin\lib\Utility</OutputPath>
|
||||
<XmlDocFile>RealmForge.Utility.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<ReferencePath>../bin</ReferencePath>
|
||||
<Reference name="System"/>
|
||||
<Reference name="System.Data"/>
|
||||
<Reference name="System.Drawing"/>
|
||||
<Reference name="System.Xml"/>
|
||||
<Reference name="System.Runtime.Serialization.Formatters.Soap"/>
|
||||
<Reference name="ICSharpCode.SharpZipLib"/>
|
||||
<Files>
|
||||
<Match pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
|
||||
<!-- Another projects that is included in the Solution -->
|
||||
<Project name="DemoGame" path="DemoGame" type="WinExe" icon="..\bin\RealmForge.ico" assemblyName="DemoGame" rootNamespace="RealmForge">
|
||||
<!-- icon is used to define the location of the .ico file that is embeeded in the assembly when the project is compiled. This is relative to the project path -->
|
||||
<!--type defines the type of project, valid types are Library (.dll), WinExe (.exe), and Exe (.exe). WinExe is not windows specific, it just defines that it is a GUI application and that no Console or Command window will show when it is started-->
|
||||
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>..\bin</OutputPath>
|
||||
<XmlDocFile>DemoGame.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>..\bin</OutputPath>
|
||||
<XmlDocFile>DemoGame.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<ReferencePath>../bin</ReferencePath>
|
||||
<Reference name="System"/> <!-- Assemblies that are located in the GAC (installed, global) can be referenced-->
|
||||
<Reference name="ode"/> <!-- Assemblies that are located in the output directory to which the file is built can be referenced -->
|
||||
<Reference name="RealmForge.Utility"/> <!-- When you reference the name of another project, then that project (and it's output) will be referenced instead of looking for a pre-built assembly-->
|
||||
<Files>
|
||||
<!-- path defaults to . or the directory that prebuild.exe resides in -->
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
<Match pattern="*.bmp" recurse="true" buildAction="EmbeddedResource"/>
|
||||
<Match pattern="[^a]*\.(png|jpg)" useRegex="true" buildAction="EmbeddedResource"/>
|
||||
|
||||
<!-- Uses a regex or regular expression to find all files that end with .png or .jpg but dont have the letter 'a' in their name and add them to the project as EmbeddedResource's. Because recurse enabled (default is false), only the values in the files in that are directly in the project directory (not child directories) are checked.-->
|
||||
<!--EmbeddedResource, Content, and Compile are valid buildAction's-->
|
||||
</Files>
|
||||
</Project>
|
||||
|
||||
</Solution>
|
||||
</Prebuild>
|
|
@ -0,0 +1,715 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.6.xsd" version="1.6">
|
||||
<Solution name="SdlDotNet">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Files>
|
||||
<File buildAction="Content">SdlDotNet.build</File>
|
||||
<File buildAction="Content">prebuild.xml</File>
|
||||
</Files>
|
||||
<Project name="SdlDotNet" path="src" language="C#" type="Library" assemblyName="SdlDotNet" rootNamespace="SdlDotNet">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>SdlDotNet.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<XmlDocFile>SdlDotNet.xml</XmlDocFile>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Windows.Forms" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="Tao.Sdl" localCopy="true" path="..\\lib"/>
|
||||
<Files>
|
||||
<Match path="." pattern="SurfaceControl.cs" subType="Component" recurse="true"/>
|
||||
<Match path="." pattern="*.bmp" buildAction="EmbeddedResource" recurse="true"/>
|
||||
<Match path="." pattern="*.cs" recurse="true">
|
||||
<Exclude name="SurfaceControl.cs"/>
|
||||
</Match>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="Rectangles" path="examples\\Rectangles" language="C#" type="WinExe" startupObject="SdlDotNet.Examples.Rectangles.Rectangles" assemblyName="Rectangles" rootNamespace="SdlDotNet.Examples.Rectangles" icon="App.ico">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>Rectangles.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>Rectangles.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">App.ico</File>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="Gears" path="examples\\Gears" language="C#" type="WinExe" startupObject="SdlDotNet.Examples.Gears.Gears" assemblyName="Gears" rootNamespace="SdlDotNet.Examples.Gears" icon="App.ico">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>Gears.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>Gears.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Reference name="Tao.OpenGl" localCopy="true" path="..\\..\\lib"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">App.ico</File>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="CDPlayer" path="examples\\CDPlayer" language="C#" type="WinExe" startupObject="SdlDotNet.Examples.CDPlayer.CDPlayer" assemblyName="CDPlayer" rootNamespace="SdlDotNet.Examples.CDPlayer" icon="App.ico">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>CDPlayer.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>CDPlayer.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="System.Windows.Forms" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">App.ico</File>
|
||||
<File subType="Form">CDPlayer.cs</File>
|
||||
<Match path="." pattern="*.cs" recurse="true">
|
||||
<Exclude name="CDPlayer.cs"/>
|
||||
</Match>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="MoviePlayer" path="examples\\MoviePlayer" language="C#" type="WinExe" startupObject="SdlDotNet.Examples.MoviePlayer.MoviePlayer" assemblyName="MoviePlayer" rootNamespace="SdlDotNet.Examples.MoviePlayer" icon="App.ico">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>MoviePlayer.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>MoviePlayer.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">App.ico</File>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="SimpleGame" path="examples\\SimpleGame" language="C#" type="WinExe" startupObject="SdlDotNet.Examples.SimpleGame.GameMain" assemblyName="SimpleGame" rootNamespace="SdlDotNet.Examples.SimpleGame" icon="App.ico">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>SimpleGame.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>SimpleGame.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">App.ico</File>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="BombRun" path="examples\\BombRun" language="C#" type="WinExe" startupObject="SdlDotNet.Examples.BombRun.BombRun" assemblyName="BombRun" rootNamespace="SdlDotNet.Examples.BombRun" icon="App.ico">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>BombRun.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>BombRun.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">App.ico</File>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="SnowDemo" path="examples\\SnowDemo" language="C#" type="WinExe" startupObject="SdlDotNet.Examples.SnowDemo.SnowDemo" assemblyName="SnowDemo" rootNamespace="SdlDotNet.Examples.SnowDemo" icon="App.ico">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>SnowDemo.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>SnowDemo.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">App.ico</File>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="BounceSprites" path="examples\\BounceSprites" language="C#" type="WinExe" startupObject="SdlDotNet.Examples.BounceSprites.BounceSprites" assemblyName="BounceSprites" rootNamespace="SdlDotNet.Examples.BounceSprites" icon="App.ico">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>BounceSprites.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>BounceSprites.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">App.ico</File>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="Triad" path="examples\\Triad" language="C#" type="WinExe" startupObject="SdlDotNet.Examples.Triad.MainObject" assemblyName="Triad" rootNamespace="SdlDotNet.Examples.Triad" icon="App.ico">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>Triad.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>Triad.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Reference name="nunit.framework" localCopy="true" path="..\\..\\lib"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">App.ico</File>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="GuiExample" path="examples\\GuiExample" language="C#" type="Library" assemblyName="GuiExample" rootNamespace="SdlDotNet.Examples.GuiExample">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>GuiExample.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>GuiExample.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Files>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="SpriteGuiDemos" path="examples\\SpriteGuiDemos" language="C#" type="WinExe" startupObject="SdlDotNet.Examples.SpriteGuiDemos.SdlDemo" assemblyName="SpriteGuiDemo" rootNamespace="SdlDotNet.Examples.SpriteGuiDemos" icon="App.ico">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>SpriteGuiDemos.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>SpriteGuiDemos.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Reference name="GuiExample" localCopy="true"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">App.ico</File>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="Tests" path="tests" language="C#" type="Library" assemblyName="SdlDotNet.Tests" rootNamespace="SdlDotNet.Tests">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>SdlDotNet.Tests.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>SdlDotNet.Tests.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Reference name="Tao.Sdl" localCopy="true" path="..\\lib"/>
|
||||
<Reference name="GuiExample" localCopy="true"/>
|
||||
<Reference name="nunit.framework" localCopy="true" path="..\\lib"/>
|
||||
<Files>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="AudioExample" path="examples\\AudioExample" language="C#" type="WinExe" startupObject="SdlDotNet.Examples.AudioExample.AudioExample" assemblyName="AudioExample" rootNamespace="SdlDotNet.Examples.AudioExample" icon="App.ico">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>AudioExample.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>AudioExample.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">App.ico</File>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="SdlDotNet.Particles" path="extras\\Particles" language="C#" type="Library" assemblyName="SdlDotNet.Particles" rootNamespace="SdlDotNet.Particles">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>SdlDotNet.Particles.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>SdlDotNet.Particles.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Files>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="ParticlesExample" path="examples\\ParticlesExample" language="C#" type="WinExe" startupObject="SdlDotNet.Examples.ParticlesExample.ParticlesExample" assemblyName="ParticlesExample" rootNamespace="SdlDotNet.Examples.ParticlesExample" icon="App.ico">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>ParticlesExample.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>ParticlesExample.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Reference name="SdlDotNet.Particles" localCopy="true"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">App.ico</File>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
<!--<Project name="SdlDotNet.Gui" path="extras\\Gui" language="C#" type="Library" assemblyName="SdlDotNet.Gui" rootNamespace="SdlDotNet.Gui">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>SdlDotNet.Gui.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>SdlDotNet.Gui.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Files>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>-->
|
||||
<Project name="NeHe" path="examples\\NeHe" language="C#" type="WinExe" startupObject="SdlDotNet.Examples.NeHe.NeHe" assemblyName="NeHe" rootNamespace="SdlDotNet.Examples.NeHe" icon="App.ico">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>NeHe.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>NeHe.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="System.Windows.Forms" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Reference name="Tao.OpenGl" localCopy="true" path="..\\..\\lib"/>
|
||||
<Reference name="Tao.OpenGl.Glu" localCopy="true" path="..\\..\\lib"/>
|
||||
<Reference name="Tao.Platform.Windows" localCopy="true" path="..\\..\\lib"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">App.ico</File>
|
||||
<File subType="Form">NeHe.cs</File>
|
||||
<Match path="." pattern="*.cs" recurse="true">
|
||||
<Exclude name="NeHe.cs"/>
|
||||
</Match>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="RedBook" path="examples\\RedBook" language="C#" type="WinExe" startupObject="SdlDotNet.Examples.RedBook.RedBook" assemblyName="RedBook" rootNamespace="SdlDotNet.Examples.RedBook" icon="App.ico">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>RedBook.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>RedBook.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="System.Windows.Forms" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Reference name="Tao.OpenGl" localCopy="true" path="..\\..\\lib"/>
|
||||
<Reference name="Tao.OpenGl.Glu" localCopy="true" path="..\\..\\lib"/>
|
||||
<Reference name="Tao.FreeGlut" localCopy="true" path="..\\..\\lib"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">App.ico</File>
|
||||
<File subType="Form">RedBook.cs</File>
|
||||
<Match path="." pattern="*.cs" recurse="true">
|
||||
<Exclude name="RedBook.cs" />
|
||||
</Match>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="PhysFsTest" path="examples\\PhysFsTest" language="C#" type="WinExe" startupObject="SdlDotNet.Examples.PhysFsTest.PhysFsTest" assemblyName="PhysFsTest" rootNamespace="SdlDotNet.Examples.PhysFsTest" icon="App.ico">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<XmlDocFile>PhysFsTest.xml</XmlDocFile>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<XmlDocFile>PhysFsTest.xml</XmlDocFile>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="System.Drawing" />
|
||||
<Reference name="SdlDotNet" localCopy="true"/>
|
||||
<Reference name="Tao.PhysFs" localCopy="true" path="..\\..\\lib"/>
|
||||
<Files>
|
||||
<File buildAction="EmbeddedResource">App.ico</File>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
</Solution>
|
||||
</Prebuild>
|
|
@ -0,0 +1,187 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.6.xsd" version="1.6">
|
||||
<Solution name="Tao.Sdl">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE;WIN32</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>true</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<XmlDocFile>Tao.Sdl.xml</XmlDocFile>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE;WIN32</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>true</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<XmlDocFile>Tao.Sdl.xml</XmlDocFile>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Files>
|
||||
<File>Tao.Sdl.License.txt</File>
|
||||
<File>Tao.Sdl.Readme.txt</File>
|
||||
<File>Tao.Sdl.snk</File>
|
||||
<File>Tao.Sdl.dll.config</File>
|
||||
</Files>
|
||||
<Project name="Tao.Sdl" path="." language="C#" type="Library">
|
||||
<Reference name="System" />
|
||||
<Files>
|
||||
<File>AssemblyInfo.cs</File>
|
||||
<File>Sdl.cs</File>
|
||||
<File>SdlImage.cs</File>
|
||||
<File>SdlMixer.cs</File>
|
||||
<File>SdlTtf.cs</File>
|
||||
<File>SdlNet.cs</File>
|
||||
<File>SdlGfx.cs</File>
|
||||
<File>Smpeg.cs</File>
|
||||
<File>DelegateCallingConventionCdeclAttribute.cs</File>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="Tao.Sdl.Tests" path="..\\..\\tests\\Sdl\\" language="C#" type="Library">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE;WIN32</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<XmlDocFile>Tao.Sdl.Tests.xml</XmlDocFile>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE;WIN32</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<XmlDocFile>Tao.Sdl.Tests.xml</XmlDocFile>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="nunit.framework.dll"/>
|
||||
<Reference name="Tao.Sdl" />
|
||||
<Files>
|
||||
<File>AssemblyInfo.cs</File>
|
||||
<File>SdlTest.cs</File>
|
||||
<File>SdlTestVideo.cs</File>
|
||||
<File>SdlTestImage.cs</File>
|
||||
<File>SdlTestTtf.cs</File>
|
||||
<File>SdlTestMixer.cs</File>
|
||||
<File>SdlTestGfx.cs</File>
|
||||
<File>SmpegTest.cs</File>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="SdlExamples.Rectangles" path="..\\..\\examples\\SdlExamples\\Rectangles" language="C#" type="WinExe" startupObject="SdlExamples.Rectangles">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE;WIN32</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE;WIN32</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="Tao.Sdl" />
|
||||
<Files>
|
||||
<File>AssemblyInfo.cs</File>
|
||||
<File>Rectangles.cs</File>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="SdlExamples.SmpegPlayer" path="..\\..\\examples\\SdlExamples\\SmpegPlayer" language="C#" type="WinExe" startupObject="SdlExamples.SmpegPlayer">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE;WIN32</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE;WIN32</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="Tao.Sdl" />
|
||||
<Files>
|
||||
<File>AssemblyInfo.cs</File>
|
||||
<File>SmpegPlayer.cs</File>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="SdlExamples.GfxPrimitives" path="..\\..\\examples\\SdlExamples\\GfxPrimitives" language="C#" type="WinExe" startupObject="SdlExamples.GfxPrimitives">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE;WIN32</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE;WIN32</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Reference name="Tao.Sdl" />
|
||||
<Files>
|
||||
<File>AssemblyInfo.cs</File>
|
||||
<File>GfxPrimitives.cs</File>
|
||||
</Files>
|
||||
</Project>
|
||||
<Project name="Tao.PostProcess" path="..\\Tao.PostProcess\\" language="C#" type="Exe">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE;WIN32</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE;WIN32</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<AllowUnsafe>false</AllowUnsafe>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System" />
|
||||
<Files>
|
||||
<File>AssemblyInfo.cs</File>
|
||||
<File>AppMain.cs</File>
|
||||
<File>BuildProcessor.cs</File>
|
||||
<File>Options.cs</File>
|
||||
<File>ReleaseBuildProcessor.cs</File>
|
||||
<File>UsageHelp.cs</File>
|
||||
</Files>
|
||||
</Project>
|
||||
</Solution>
|
||||
</Prebuild>
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec mono [PREFIX]/prebuild.exe "$@"
|
|
@ -0,0 +1,57 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd" version="1.7">
|
||||
<Solution name="Prebuild">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<OutputPath>bin/Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OutputPath>bin/Release</OutputPath>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Files>
|
||||
<File>prebuild.xml</File>
|
||||
<File>prebuild</File>
|
||||
</Files>
|
||||
<Project name="Prebuild" path="src" language="C#" assemblyName="prebuild" icon="App.ico" type="Exe" rootNamespace="Prebuild" startupObject="Prebuild.Prebuild">
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<OutputPath>bin/Debug</OutputPath>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
<KeyFile>Prebuild.snk</KeyFile>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE</CompilerDefines>
|
||||
<OutputPath>bin/Release</OutputPath>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
<KeyFile>Prebuild.snk</KeyFile>
|
||||
<SuppressWarnings>1595</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
<Reference name="System.EnterpriseServices" />
|
||||
<Reference name="System.Xml" />
|
||||
<Reference name="System" />
|
||||
<Files>
|
||||
<Match pattern="App.ico" buildAction="EmbeddedResource"/>
|
||||
<Match path="data" pattern="prebuild-1.7.xsd" buildAction="EmbeddedResource"/>
|
||||
<Match pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
</Project>
|
||||
</Solution>
|
||||
</Prebuild>
|
|
@ -0,0 +1,2 @@
|
|||
cd ..
|
||||
Prebuild.exe /clean /yes /removedir obj /file prebuild.xml /build NET_2_0 /pause
|
|
@ -0,0 +1,2 @@
|
|||
cd ..
|
||||
Prebuild.exe /usage /pause
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
prebuild /target monodev /file ../prebuild.xml /build NET_1_1 /pause
|
|
@ -0,0 +1,231 @@
|
|||
!verbose 3
|
||||
|
||||
!define PRODUCT_NAME "Prebuild"
|
||||
!define PRODUCT_VERSION "1.3.1"
|
||||
!define PRODUCT_PUBLISHER "Prebuild"
|
||||
!define PRODUCT_PACKAGE "prebuild"
|
||||
!define PRODUCT_WEB_SITE "http://dnpb.sourceforge.net"
|
||||
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Prebuild"
|
||||
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\Prebuild"
|
||||
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
|
||||
!define PRODUCT_PATH ".."
|
||||
|
||||
;!define MUI_WELCOMEFINISHPAGE_BITMAP "PrebuildLogo.bmp"
|
||||
;!define MUI_WELCOMEFINISHPAGE_BITMAP_NOSTRETCH
|
||||
;!define MUI_UNWELCOMEFINISHPAGE_BITMAP "PrebuildLogo.bmp"
|
||||
;!define MUI_UNWELCOMEFINISHPAGE_BITMAP_NOSTRETCH
|
||||
|
||||
BrandingText "© 2003-2006 David Hudson, http://dnpb.sourceforge.net/"
|
||||
SetCompressor lzma
|
||||
CRCCheck on
|
||||
|
||||
; File Association defines
|
||||
;!include "fileassoc.nsh"
|
||||
|
||||
; MUI 1.67 compatible ------
|
||||
!include "MUI.nsh"
|
||||
|
||||
; MUI Settings
|
||||
!define MUI_ABORTWARNING
|
||||
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
|
||||
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
|
||||
|
||||
;--------------------------------
|
||||
;Variables
|
||||
|
||||
;--------------------------------
|
||||
;Installer Pages
|
||||
|
||||
; Welcome page
|
||||
!insertmacro MUI_PAGE_WELCOME
|
||||
; License page
|
||||
!insertmacro MUI_PAGE_LICENSE "..\doc\license.txt"
|
||||
; Directory page
|
||||
!insertmacro MUI_PAGE_DIRECTORY
|
||||
|
||||
; Instfiles page
|
||||
!insertmacro MUI_PAGE_INSTFILES
|
||||
|
||||
; Finish page
|
||||
!insertmacro MUI_PAGE_FINISH
|
||||
|
||||
;------------------------------------
|
||||
; Uninstaller pages
|
||||
!insertmacro MUI_UNPAGE_CONFIRM
|
||||
!insertmacro MUI_UNPAGE_INSTFILES
|
||||
!insertmacro MUI_UNPAGE_FINISH
|
||||
;------------------------------------
|
||||
|
||||
; Language files
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
|
||||
; Reserve files
|
||||
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
|
||||
|
||||
; MUI end ------
|
||||
|
||||
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
|
||||
OutFile "..\${PRODUCT_PACKAGE}-${PRODUCT_VERSION}-setup.exe"
|
||||
InstallDir "$PROGRAMFILES\Prebuild"
|
||||
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
|
||||
ShowInstDetails show
|
||||
ShowUnInstDetails show
|
||||
|
||||
; .NET Framework check
|
||||
; http://msdn.microsoft.com/netframework/default.aspx?pull=/library/en-us/dnnetdep/html/redistdeploy1_1.asp
|
||||
; Section "Detecting that the .NET Framework 1.1 is installed"
|
||||
Function .onInit
|
||||
ReadRegDWORD $R0 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v1.1.4322" Install
|
||||
StrCmp $R0 "" 0 CheckPreviousVersion
|
||||
MessageBox MB_OK "Microsoft .NET Framework 1.1 was not found on this system.$\r$\n$\r$\nUnable to continue this installation."
|
||||
Abort
|
||||
|
||||
CheckPreviousVersion:
|
||||
ReadRegStr $R0 ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName"
|
||||
StrCmp $R0 "" CheckOSVersion 0
|
||||
MessageBox MB_OK "An old version of Prebuild is installed on this computer, please uninstall first.$\r$\n$\r$\nUnable to continue this installation."
|
||||
Abort
|
||||
|
||||
CheckOSVersion:
|
||||
Call IsSupportedWindowsVersion
|
||||
Pop $R0
|
||||
StrCmp $R0 "False" NoAbort 0
|
||||
MessageBox MB_OK "The operating system you are using is not supported by Prebuild (95/98/ME/NT3.x/NT4.x)."
|
||||
Abort
|
||||
|
||||
NoAbort:
|
||||
FunctionEnd
|
||||
|
||||
Section "Source" SecSource
|
||||
SetOverwrite ifnewer
|
||||
SetOutPath "$INSTDIR\src"
|
||||
File /r /x *.swp /x .svn /x *.xml /x *.csproj /x *.user /x *.build /x *.prjx /x *.mdp /x bin /x obj /x *.nsi ${PRODUCT_PATH}\src\*.*
|
||||
|
||||
;Store installation folder
|
||||
WriteRegStr HKCU "Software\Prebuild" "" $INSTDIR
|
||||
|
||||
SectionEnd
|
||||
|
||||
Section "Runtime" SecRuntime
|
||||
SetOverwrite ifnewer
|
||||
SetOutPath "$INSTDIR"
|
||||
File /r /x *.swp /x .svn /x *.nsi /x src /x *.sln /x *.cmbx /x *.mds ${PRODUCT_PATH}\Prebuild.exe ${PRODUCT_PATH}\prebuild.xml
|
||||
|
||||
;Store installation folder
|
||||
WriteRegStr HKCU "Software\Prebuild" "" $INSTDIR
|
||||
|
||||
SectionEnd
|
||||
|
||||
Section "Documentation" SecDocs
|
||||
SetOverwrite ifnewer
|
||||
SetOutPath "$INSTDIR\doc"
|
||||
File /r /x *.swp /x .svn /x *.exe ${PRODUCT_PATH}\doc\*.*
|
||||
|
||||
;Store installation folder
|
||||
WriteRegStr HKCU "Software\Prebuild" "" $INSTDIR
|
||||
SectionEnd
|
||||
|
||||
Section "Scripts" SecScripts
|
||||
SetOverwrite ifnewer
|
||||
SetOutPath "$INSTDIR\scripts"
|
||||
File /r /x *.swp /x .svn /x *.nsi /x *.exe ${PRODUCT_PATH}\scripts\*.*
|
||||
|
||||
;Store installation folder
|
||||
WriteRegStr HKCU "Software\Prebuild" "" $INSTDIR
|
||||
SectionEnd
|
||||
|
||||
;Language strings
|
||||
|
||||
Section -AdditionalIcons
|
||||
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
|
||||
SectionEnd
|
||||
|
||||
Section -Post
|
||||
WriteUninstaller "$INSTDIR\uninst.exe"
|
||||
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
|
||||
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
|
||||
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
|
||||
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
|
||||
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
|
||||
SectionEnd
|
||||
|
||||
Section Uninstall
|
||||
|
||||
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
|
||||
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
|
||||
RMDir /r "$INSTDIR"
|
||||
|
||||
SectionEnd
|
||||
|
||||
; GetWindowsVersion, taken from NSIS help, modified for our purposes
|
||||
Function IsSupportedWindowsVersion
|
||||
|
||||
Push $R0
|
||||
Push $R1
|
||||
|
||||
ReadRegStr $R0 HKLM \
|
||||
"SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
|
||||
|
||||
IfErrors 0 lbl_winnt
|
||||
|
||||
; we are not NT
|
||||
ReadRegStr $R0 HKLM \
|
||||
"SOFTWARE\Microsoft\Windows\CurrentVersion" VersionNumber
|
||||
|
||||
StrCpy $R1 $R0 1
|
||||
StrCmp $R1 '4' 0 lbl_error
|
||||
|
||||
StrCpy $R1 $R0 3
|
||||
|
||||
StrCmp $R1 '4.0' lbl_win32_95
|
||||
StrCmp $R1 '4.9' lbl_win32_ME lbl_win32_98
|
||||
|
||||
lbl_win32_95:
|
||||
StrCpy $R0 'False'
|
||||
Goto lbl_done
|
||||
|
||||
lbl_win32_98:
|
||||
StrCpy $R0 'False'
|
||||
Goto lbl_done
|
||||
|
||||
lbl_win32_ME:
|
||||
StrCpy $R0 'False'
|
||||
Goto lbl_done
|
||||
|
||||
lbl_winnt:
|
||||
|
||||
StrCpy $R1 $R0 1
|
||||
|
||||
StrCmp $R1 '3' lbl_winnt_x
|
||||
StrCmp $R1 '4' lbl_winnt_x
|
||||
|
||||
StrCpy $R1 $R0 3
|
||||
|
||||
StrCmp $R1 '5.0' lbl_winnt_2000
|
||||
StrCmp $R1 '5.1' lbl_winnt_XP
|
||||
StrCmp $R1 '5.2' lbl_winnt_2003 lbl_error
|
||||
|
||||
lbl_winnt_x:
|
||||
StrCpy $R0 'False'
|
||||
Goto lbl_done
|
||||
|
||||
lbl_winnt_2000:
|
||||
Strcpy $R0 'True'
|
||||
Goto lbl_done
|
||||
|
||||
lbl_winnt_XP:
|
||||
Strcpy $R0 'True'
|
||||
Goto lbl_done
|
||||
|
||||
lbl_winnt_2003:
|
||||
Strcpy $R0 'True'
|
||||
Goto lbl_done
|
||||
|
||||
lbl_error:
|
||||
Strcpy $R0 'False'
|
||||
lbl_done:
|
||||
|
||||
Pop $R1
|
||||
Exch $R0
|
||||
|
||||
FunctionEnd
|
|
@ -0,0 +1,4 @@
|
|||
@rem Generates a combine (.cmbx) and a set of project files (.prjx)
|
||||
@rem for SharpDevelop (http://icsharpcode.net/OpenSource/SD/Default.aspx)
|
||||
cd ..
|
||||
Prebuild.exe /target sharpdev /file prebuild.xml /build NET_1_1 /pause
|
|
@ -0,0 +1,4 @@
|
|||
@rem Generates a combine (.cmbx) and a set of project files (.prjx)
|
||||
@rem for SharpDevelop (http://icsharpcode.net/OpenSource/SD/Default.aspx)
|
||||
cd ..
|
||||
Prebuild.exe /target sharpdev2 /file prebuild.xml /pause
|
|
@ -0,0 +1,4 @@
|
|||
@rem Generates a solution (.sln) and a set of project files (.csproj)
|
||||
@rem for Microsoft Visual Studio .NET 2002
|
||||
cd ..
|
||||
Prebuild.exe /target vs2002 /file prebuild.xml /build NET_1_1 /pause
|
|
@ -0,0 +1,4 @@
|
|||
@rem Generates a solution (.sln) and a set of project files (.csproj)
|
||||
@rem for Microsoft Visual Studio .NET 2002
|
||||
cd ..
|
||||
Prebuild.exe /target vs2003 /file prebuild.xml /build NET_1_1 /pause
|
|
@ -0,0 +1,4 @@
|
|||
@rem Generates a solution (.sln) and a set of project files (.csproj, .vbproj, etc.)
|
||||
@rem for Microsoft Visual Studio .NET 2005
|
||||
cd ..
|
||||
Prebuild.exe /target vs2005 /file prebuild.xml /build NET_2_0 /pause
|
|
@ -0,0 +1,4 @@
|
|||
@rem Generates Makefiles
|
||||
@rem for autotools
|
||||
cd ..
|
||||
Prebuild.exe /target autotools /file prebuild.xml /pause
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
prebuild /target autotools /file ../prebuild.xml /build NET_2_0 /pause
|
|
@ -0,0 +1,4 @@
|
|||
@rem Generates a .build files
|
||||
@rem for NAnt
|
||||
cd ..
|
||||
Prebuild.exe /target nant /file prebuild.xml /pause
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
prebuild /target nant /file ../prebuild.xml /pause
|
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
|
@ -0,0 +1,81 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-28 01:49:58 +0100 (lö, 28 jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections.Specialized;
|
||||
|
||||
namespace Prebuild.Core.Attributes
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
|
||||
public sealed class DataNodeAttribute : Attribute
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private string m_Name = "unknown";
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DataNodeAttribute"/> class.
|
||||
/// </summary>
|
||||
/// <param name="name">The name.</param>
|
||||
public DataNodeAttribute(string name)
|
||||
{
|
||||
m_Name = name;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Name;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,80 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-28 01:49:58 +0100 (lö, 28 jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
namespace Prebuild.Core.Attributes
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public sealed class OptionNodeAttribute : Attribute
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private string m_NodeName;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OptionNodeAttribute"/> class.
|
||||
/// </summary>
|
||||
/// <param name="nodeName">Name of the node.</param>
|
||||
public OptionNodeAttribute(string nodeName)
|
||||
{
|
||||
m_NodeName = nodeName;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the node.
|
||||
/// </summary>
|
||||
/// <value>The name of the node.</value>
|
||||
public string NodeName
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_NodeName;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,80 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-28 01:49:58 +0100 (lö, 28 jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
namespace Prebuild.Core.Attributes
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
|
||||
public sealed class TargetAttribute : Attribute
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private string m_Name;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TargetAttribute"/> class.
|
||||
/// </summary>
|
||||
/// <param name="name">The name.</param>
|
||||
public TargetAttribute(string name)
|
||||
{
|
||||
m_Name = name;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Name;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,94 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-28 01:49:58 +0100 (lö, 28 jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Prebuild.Core
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Serializable()]
|
||||
public class FatalException : Exception
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FatalException"/> class.
|
||||
/// </summary>
|
||||
public FatalException()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FatalException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="format">The format.</param>
|
||||
/// <param name="args">The args.</param>
|
||||
public FatalException(string format, params object[] args)
|
||||
: base(String.Format(format, args))
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Exception with specified string
|
||||
/// </summary>
|
||||
/// <param name="message">Exception message</param>
|
||||
public FatalException(string message): base(message)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
/// <param name="exception"></param>
|
||||
public FatalException(string message, Exception exception) : base(message, exception)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="info"></param>
|
||||
/// <param name="context"></param>
|
||||
protected FatalException(SerializationInfo info, StreamingContext context) : base( info, context )
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-28 01:49:58 +0100 (lö, 28 jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Xml;
|
||||
|
||||
namespace Prebuild.Core.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public interface IDataNode
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the parent.
|
||||
/// </summary>
|
||||
/// <value>The parent.</value>
|
||||
IDataNode Parent { get; set; }
|
||||
/// <summary>
|
||||
/// Parses the specified node.
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
void Parse(XmlNode node);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,60 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-28 01:49:58 +0100 (lö, 28 jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
namespace Prebuild.Core.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public interface ITarget
|
||||
{
|
||||
/// <summary>
|
||||
/// Writes the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
void Write(Kernel kern);
|
||||
/// <summary>
|
||||
/// Cleans the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
void Clean(Kernel kern);
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
string Name { get; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,758 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: robloach $
|
||||
* $Date: 2006-09-26 00:30:53 +0200 (ti, 26 sep 2006) $
|
||||
* $Revision: 165 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Xml;
|
||||
using System.Xml.Schema;
|
||||
using System.Text;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Nodes;
|
||||
using Prebuild.Core.Parse;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class Kernel : IDisposable
|
||||
{
|
||||
#region Inner Classes
|
||||
|
||||
private struct NodeEntry
|
||||
{
|
||||
public Type Type;
|
||||
public DataNodeAttribute Attribute;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Fields
|
||||
|
||||
private static Kernel m_Instance = new Kernel();
|
||||
|
||||
/// <summary>
|
||||
/// This must match the version of the schema that is embeeded
|
||||
/// </summary>
|
||||
private static string m_SchemaVersion = "1.7";
|
||||
private static string m_Schema = "prebuild-" + m_SchemaVersion + ".xsd";
|
||||
private static string m_SchemaURI = "http://dnpb.sourceforge.net/schemas/" + m_Schema;
|
||||
bool disposed;
|
||||
private Version m_Version;
|
||||
private string m_Revision = "";
|
||||
private CommandLineCollection m_CommandLine;
|
||||
private Log m_Log;
|
||||
private CurrentDirectory m_CurrentWorkingDirectory;
|
||||
private XmlSchemaCollection m_Schemas;
|
||||
|
||||
private Hashtable m_Targets;
|
||||
private Hashtable m_Nodes;
|
||||
|
||||
ArrayList m_Solutions;
|
||||
string m_Target;
|
||||
string m_Clean;
|
||||
string[] m_RemoveDirectories;
|
||||
string m_CurrentFile;
|
||||
bool m_PauseAfterFinish;
|
||||
string[] m_ProjectGroups;
|
||||
StringCollection m_Refs;
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
private Kernel()
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether [pause after finish].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [pause after finish]; otherwise, <c>false</c>.</value>
|
||||
public bool PauseAfterFinish
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_PauseAfterFinish;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the instance.
|
||||
/// </summary>
|
||||
/// <value>The instance.</value>
|
||||
public static Kernel Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Instance;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the version.
|
||||
/// </summary>
|
||||
/// <value>The version.</value>
|
||||
public string Version
|
||||
{
|
||||
get
|
||||
{
|
||||
return String.Format("{0}.{1}.{2}{3}", m_Version.Major, m_Version.Minor, m_Version.Build, m_Revision);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the command line.
|
||||
/// </summary>
|
||||
/// <value>The command line.</value>
|
||||
public CommandLineCollection CommandLine
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_CommandLine;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the targets.
|
||||
/// </summary>
|
||||
/// <value>The targets.</value>
|
||||
public Hashtable Targets
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Targets;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the log.
|
||||
/// </summary>
|
||||
/// <value>The log.</value>
|
||||
public Log Log
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Log;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current working directory.
|
||||
/// </summary>
|
||||
/// <value>The current working directory.</value>
|
||||
public CurrentDirectory CurrentWorkingDirectory
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_CurrentWorkingDirectory;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the solutions.
|
||||
/// </summary>
|
||||
/// <value>The solutions.</value>
|
||||
public ArrayList Solutions
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Solutions;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void RemoveDirectories(string rootDir, string[] dirNames)
|
||||
{
|
||||
foreach(string dir in Directory.GetDirectories(rootDir))
|
||||
{
|
||||
string simpleName = Path.GetFileName(dir);
|
||||
|
||||
if(Array.IndexOf(dirNames, simpleName) != -1)
|
||||
{
|
||||
//delete if the name matches one of the directory names to delete
|
||||
string fullDirPath = Path.GetFullPath(dir);
|
||||
Directory.Delete(fullDirPath,true);
|
||||
}
|
||||
else//not a match, so check children
|
||||
{
|
||||
RemoveDirectories(dir,dirNames);
|
||||
//recurse, checking children for them
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// private void RemoveDirectoryMatches(string rootDir, string dirPattern)
|
||||
// {
|
||||
// foreach(string dir in Directory.GetDirectories(rootDir))
|
||||
// {
|
||||
// foreach(string match in Directory.GetDirectories(dir))
|
||||
// {//delete all child directories that match
|
||||
// Directory.Delete(Path.GetFullPath(match),true);
|
||||
// }
|
||||
// //recure through the rest checking for nested matches to delete
|
||||
// RemoveDirectoryMatches(dir,dirPattern);
|
||||
// }
|
||||
// }
|
||||
|
||||
private void LoadSchema()
|
||||
{
|
||||
Assembly assembly = this.GetType().Assembly;
|
||||
Stream stream = assembly.GetManifestResourceStream("Prebuild.data." + m_Schema);
|
||||
if(stream == null)
|
||||
{
|
||||
//try without the default namespace prepending to it in case was compiled with SharpDevelop or MonoDevelop instead of Visual Studio .NET
|
||||
stream = assembly.GetManifestResourceStream(m_Schema);
|
||||
if(stream == null)
|
||||
{
|
||||
throw new System.Reflection.TargetException(string.Format("Could not find the scheme embedded resource file '{0}'.", m_Schema));
|
||||
}
|
||||
}
|
||||
XmlReader schema = new XmlTextReader(stream);
|
||||
|
||||
m_Schemas = new XmlSchemaCollection();
|
||||
m_Schemas.Add(m_SchemaURI, schema);
|
||||
}
|
||||
|
||||
private void CacheVersion()
|
||||
{
|
||||
m_Version = Assembly.GetEntryAssembly().GetName().Version;
|
||||
}
|
||||
|
||||
private void CacheTargets(Assembly assm)
|
||||
{
|
||||
foreach(Type t in assm.GetTypes())
|
||||
{
|
||||
TargetAttribute ta = (TargetAttribute)Helper.CheckType(t, typeof(TargetAttribute), typeof(ITarget));
|
||||
if(ta == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
ITarget target = (ITarget)assm.CreateInstance(t.FullName);
|
||||
if(target == null)
|
||||
{
|
||||
throw new MissingMethodException("Could not create ITarget instance");
|
||||
}
|
||||
|
||||
m_Targets[ta.Name] = target;
|
||||
}
|
||||
}
|
||||
|
||||
private void CacheNodeTypes(Assembly assm)
|
||||
{
|
||||
foreach(Type t in assm.GetTypes())
|
||||
{
|
||||
DataNodeAttribute dna = (DataNodeAttribute)Helper.CheckType(t, typeof(DataNodeAttribute), typeof(IDataNode));
|
||||
if(dna == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
NodeEntry ne = new NodeEntry();
|
||||
ne.Type = t;
|
||||
ne.Attribute = dna;
|
||||
m_Nodes[dna.Name] = ne;
|
||||
}
|
||||
}
|
||||
|
||||
private void LogBanner()
|
||||
{
|
||||
m_Log.Write("Prebuild v" + this.Version);
|
||||
m_Log.Write("Copyright (c) Matthew Holmes, Dan Moorehead and David Hudson");
|
||||
m_Log.Write("See 'prebuild /usage' for help");
|
||||
m_Log.Write();
|
||||
}
|
||||
|
||||
private void ProcessFile(string file)
|
||||
{
|
||||
m_CurrentWorkingDirectory.Push();
|
||||
|
||||
string path = file;
|
||||
try
|
||||
{
|
||||
try
|
||||
{
|
||||
path = Helper.ResolvePath(path);
|
||||
}
|
||||
catch(ArgumentException)
|
||||
{
|
||||
m_Log.Write("Could not open Prebuild file: " + path);
|
||||
m_CurrentWorkingDirectory.Pop();
|
||||
return;
|
||||
}
|
||||
|
||||
m_CurrentFile = path;
|
||||
Helper.SetCurrentDir(Path.GetDirectoryName(path));
|
||||
|
||||
|
||||
XmlTextReader reader = new XmlTextReader(path);
|
||||
|
||||
Core.Parse.Preprocessor pre = new Core.Parse.Preprocessor();
|
||||
|
||||
//register command line arguments as XML variables
|
||||
IDictionaryEnumerator dict = m_CommandLine.GetEnumerator();
|
||||
while (dict.MoveNext())
|
||||
{
|
||||
string name = dict.Key.ToString().Trim();
|
||||
if (name.Length > 0)
|
||||
pre.RegisterVariable(name, dict.Value.ToString());
|
||||
}
|
||||
|
||||
string xml = pre.Process(reader);//remove script and evaulate pre-proccessing to get schema-conforming XML
|
||||
|
||||
|
||||
XmlDocument doc = new XmlDocument();
|
||||
try
|
||||
{
|
||||
XmlValidatingReader validator = new XmlValidatingReader(new XmlTextReader(new StringReader(xml)));
|
||||
|
||||
//validate while reading from string into XmlDocument DOM structure in memory
|
||||
foreach(XmlSchema schema in m_Schemas)
|
||||
{
|
||||
validator.Schemas.Add(schema);
|
||||
}
|
||||
doc.Load(validator);
|
||||
}
|
||||
catch(XmlException e)
|
||||
{
|
||||
throw new XmlException(e.ToString());
|
||||
}
|
||||
|
||||
//is there a purpose to writing it? An syntax/schema problem would have been found during pre.Process() and reported with details
|
||||
if(m_CommandLine.WasPassed("ppo"))
|
||||
{
|
||||
string ppoFile = m_CommandLine["ppo"];
|
||||
if(ppoFile == null || ppoFile.Trim().Length < 1)
|
||||
{
|
||||
ppoFile = "preprocessed.xml";
|
||||
}
|
||||
|
||||
StreamWriter writer = null;
|
||||
try
|
||||
{
|
||||
writer = new StreamWriter(ppoFile);
|
||||
writer.Write(xml);
|
||||
}
|
||||
catch(IOException ex)
|
||||
{
|
||||
Console.WriteLine("Could not write PPO file '{0}': {1}", ppoFile, ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if(writer != null)
|
||||
{
|
||||
writer.Close();
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
//start reading the xml config file
|
||||
XmlElement rootNode = doc.DocumentElement;
|
||||
//string suggestedVersion = Helper.AttributeValue(rootNode,"version","1.0");
|
||||
Helper.CheckForOSVariables = Helper.ParseBoolean(rootNode,"checkOsVars",false);
|
||||
|
||||
foreach(XmlNode node in rootNode.ChildNodes)//solutions or if pre-proc instructions
|
||||
{
|
||||
IDataNode dataNode = ParseNode(node, null);
|
||||
if(dataNode is ProcessNode)
|
||||
{
|
||||
ProcessNode proc = (ProcessNode)dataNode;
|
||||
if(proc.IsValid)
|
||||
{
|
||||
ProcessFile(proc.Path);
|
||||
}
|
||||
}
|
||||
else if(dataNode is SolutionNode)
|
||||
{
|
||||
m_Solutions.Add(dataNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(XmlSchemaException xse)
|
||||
{
|
||||
m_Log.Write("XML validation error at line {0} in {1}:\n\n{2}",
|
||||
xse.LineNumber, path, xse.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
m_CurrentWorkingDirectory.Pop();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Allows the project.
|
||||
/// </summary>
|
||||
/// <param name="projectGroupsFlags">The project groups flags.</param>
|
||||
/// <returns></returns>
|
||||
public bool AllowProject(string projectGroupsFlags)
|
||||
{
|
||||
if(m_ProjectGroups != null && m_ProjectGroups.Length > 0)
|
||||
{
|
||||
if(projectGroupsFlags != null && projectGroupsFlags.Length == 0)
|
||||
{
|
||||
foreach(string group in projectGroupsFlags.Split('|'))
|
||||
{
|
||||
if(Array.IndexOf(m_ProjectGroups, group) != -1) //if included in the filter list
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;//not included in the list or no groups specified for the project
|
||||
}
|
||||
return true;//no filter specified in the command line args
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type of the node.
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
/// <returns></returns>
|
||||
public Type GetNodeType(XmlNode node)
|
||||
{
|
||||
if( node == null )
|
||||
{
|
||||
throw new ArgumentNullException("node");
|
||||
}
|
||||
if(!m_Nodes.ContainsKey(node.Name))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
NodeEntry ne = (NodeEntry)m_Nodes[node.Name];
|
||||
return ne.Type;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="node"></param>
|
||||
/// <param name="parent"></param>
|
||||
/// <returns></returns>
|
||||
public IDataNode ParseNode(XmlNode node, IDataNode parent)
|
||||
{
|
||||
return ParseNode(node, parent, null);
|
||||
}
|
||||
|
||||
//Create an instance of the data node type that is mapped to the name of the xml DOM node
|
||||
/// <summary>
|
||||
/// Parses the node.
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
/// <param name="parent">The parent.</param>
|
||||
/// <param name="preNode">The pre node.</param>
|
||||
/// <returns></returns>
|
||||
public IDataNode ParseNode(XmlNode node, IDataNode parent, IDataNode preNode)
|
||||
{
|
||||
IDataNode dataNode = null;
|
||||
|
||||
try
|
||||
{
|
||||
if( node == null )
|
||||
{
|
||||
throw new ArgumentNullException("node");
|
||||
}
|
||||
if(preNode == null)
|
||||
{
|
||||
if(!m_Nodes.ContainsKey(node.Name))
|
||||
{
|
||||
//throw new XmlException("Unknown XML node: " + node.Name);
|
||||
return null;
|
||||
}
|
||||
|
||||
NodeEntry ne = (NodeEntry)m_Nodes[node.Name];
|
||||
Type type = ne.Type;
|
||||
//DataNodeAttribute dna = ne.Attribute;
|
||||
|
||||
dataNode = (IDataNode)type.Assembly.CreateInstance(type.FullName);
|
||||
if(dataNode == null)
|
||||
{
|
||||
throw new System.Reflection.TargetException("Could not create new parser instance: " + type.FullName);
|
||||
}
|
||||
}
|
||||
else
|
||||
dataNode = preNode;
|
||||
|
||||
dataNode.Parent = parent;
|
||||
dataNode.Parse(node);
|
||||
}
|
||||
catch(WarningException wex)
|
||||
{
|
||||
m_Log.Write(LogType.Warning, wex.Message);
|
||||
return null;
|
||||
}
|
||||
catch(FatalException fex)
|
||||
{
|
||||
m_Log.WriteException(LogType.Error, fex);
|
||||
throw;
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
m_Log.WriteException(LogType.Error, ex);
|
||||
throw;
|
||||
}
|
||||
|
||||
return dataNode;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes the specified target.
|
||||
/// </summary>
|
||||
/// <param name="target">The target.</param>
|
||||
/// <param name="args">The args.</param>
|
||||
public void Initialize(LogTargets target, string[] args)
|
||||
{
|
||||
m_Targets = new Hashtable();
|
||||
CacheTargets(this.GetType().Assembly);
|
||||
m_Nodes = new Hashtable();
|
||||
CacheNodeTypes(this.GetType().Assembly);
|
||||
CacheVersion();
|
||||
|
||||
m_CommandLine = new CommandLineCollection(args);
|
||||
|
||||
string logFile = null;
|
||||
if(m_CommandLine.WasPassed("log"))
|
||||
{
|
||||
logFile = m_CommandLine["log"];
|
||||
|
||||
if(logFile != null && logFile.Length == 0)
|
||||
{
|
||||
logFile = "Prebuild.log";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
target = target & ~LogTargets.File; //dont output to a file
|
||||
}
|
||||
|
||||
m_Log = new Log(target, logFile);
|
||||
LogBanner();
|
||||
|
||||
m_CurrentWorkingDirectory = new CurrentDirectory();
|
||||
|
||||
m_Target = m_CommandLine["target"];
|
||||
m_Clean = m_CommandLine["clean"];
|
||||
string removeDirs = m_CommandLine["removedir"];
|
||||
if(removeDirs != null && removeDirs.Length == 0)
|
||||
{
|
||||
m_RemoveDirectories = removeDirs.Split('|');
|
||||
}
|
||||
|
||||
string flags = m_CommandLine["allowedgroups"];//allows filtering by specifying a pipe-delimited list of groups to include
|
||||
if(flags != null && flags.Length == 0)
|
||||
{
|
||||
m_ProjectGroups = flags.Split('|');
|
||||
}
|
||||
m_PauseAfterFinish = m_CommandLine.WasPassed("pause");
|
||||
|
||||
LoadSchema();
|
||||
|
||||
m_Solutions = new ArrayList();
|
||||
m_Refs = new StringCollection();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Processes this instance.
|
||||
/// </summary>
|
||||
public void Process()
|
||||
{
|
||||
bool perfomedOtherTask = false;
|
||||
if(m_RemoveDirectories != null && m_RemoveDirectories.Length > 0)
|
||||
{
|
||||
try
|
||||
{
|
||||
RemoveDirectories(".",m_RemoveDirectories);
|
||||
}
|
||||
catch(IOException e)
|
||||
{
|
||||
m_Log.Write("Failed to remove directories named {0}",m_RemoveDirectories);
|
||||
m_Log.WriteException(LogType.Error,e);
|
||||
}
|
||||
catch(UnauthorizedAccessException e)
|
||||
{
|
||||
m_Log.Write("Failed to remove directories named {0}",m_RemoveDirectories);
|
||||
m_Log.WriteException(LogType.Error,e);
|
||||
}
|
||||
perfomedOtherTask = true;
|
||||
}
|
||||
|
||||
if(m_Target != null && m_Clean != null)
|
||||
{
|
||||
m_Log.Write(LogType.Error, "The options /target and /clean cannot be passed together");
|
||||
return;
|
||||
}
|
||||
else if(m_Target == null && m_Clean == null)
|
||||
{
|
||||
if(perfomedOtherTask) //finished
|
||||
{
|
||||
return;
|
||||
}
|
||||
m_Log.Write(LogType.Error, "Must pass either /target or /clean to process a Prebuild file");
|
||||
return;
|
||||
}
|
||||
|
||||
string file = "./prebuild.xml";
|
||||
if(m_CommandLine.WasPassed("file"))
|
||||
{
|
||||
file = m_CommandLine["file"];
|
||||
}
|
||||
|
||||
ProcessFile(file);
|
||||
|
||||
string target = (m_Target != null ? m_Target.ToLower() : m_Clean.ToLower());
|
||||
bool clean = (m_Target == null);
|
||||
if(clean && target != null && target.Length == 0)
|
||||
{
|
||||
target = "all";
|
||||
}
|
||||
if(clean && target == "all")//default to all if no target was specified for clean
|
||||
{
|
||||
//check if they passed yes
|
||||
if (!m_CommandLine.WasPassed("yes"))
|
||||
{
|
||||
Console.WriteLine("WARNING: This operation will clean ALL project files for all targets, are you sure? (y/n):");
|
||||
string ret = Console.ReadLine();
|
||||
if(ret == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
ret = ret.Trim().ToLower();
|
||||
if((ret.ToLower() != "y" && ret.ToLower() != "yes"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
//clean all targets (just cleaning vs2002 target didn't clean nant)
|
||||
foreach(ITarget targ in m_Targets.Values)
|
||||
{
|
||||
targ.Clean(this);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ITarget targ = (ITarget)m_Targets[target];
|
||||
|
||||
if(clean)
|
||||
{
|
||||
targ.Clean(this);
|
||||
}
|
||||
else
|
||||
{
|
||||
targ.Write(this);
|
||||
}
|
||||
}
|
||||
|
||||
m_Log.Flush();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IDisposable Members
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Dispose objects
|
||||
/// </summary>
|
||||
/// <param name="disposing">
|
||||
/// If true, it will dispose close the handle
|
||||
/// </param>
|
||||
/// <remarks>
|
||||
/// Will dispose managed and unmanaged resources.
|
||||
/// </remarks>
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if (!this.disposed)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
if (this.m_Log != null)
|
||||
{
|
||||
this.m_Log.Close();
|
||||
this.m_Log = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.disposed = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
~Kernel()
|
||||
{
|
||||
this.Dispose(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Closes and destroys this object
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Same as Dispose(true)
|
||||
/// </remarks>
|
||||
public void Close()
|
||||
{
|
||||
Dispose();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,177 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-28 01:49:58 +0100 (lö, 28 jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Xml;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Nodes
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[DataNode("Configuration")]
|
||||
public class ConfigurationNode : DataNode, ICloneable
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private string m_Name = "unknown";
|
||||
private OptionsNode m_Options;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ConfigurationNode"/> class.
|
||||
/// </summary>
|
||||
public ConfigurationNode()
|
||||
{
|
||||
m_Options = new OptionsNode();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the parent.
|
||||
/// </summary>
|
||||
/// <value>The parent.</value>
|
||||
public override IDataNode Parent
|
||||
{
|
||||
get
|
||||
{
|
||||
return base.Parent;
|
||||
}
|
||||
set
|
||||
{
|
||||
base.Parent = value;
|
||||
if(base.Parent is SolutionNode)
|
||||
{
|
||||
SolutionNode node = (SolutionNode)base.Parent;
|
||||
if(node != null && node.Options != null)
|
||||
{
|
||||
node.Options.CopyTo(m_Options);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Name;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the options.
|
||||
/// </summary>
|
||||
/// <value>The options.</value>
|
||||
public OptionsNode Options
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Options;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_Options = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Parses the specified node.
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
public override void Parse(XmlNode node)
|
||||
{
|
||||
m_Name = Helper.AttributeValue(node, "name", m_Name);
|
||||
if( node == null )
|
||||
{
|
||||
throw new ArgumentNullException("node");
|
||||
}
|
||||
foreach(XmlNode child in node.ChildNodes)
|
||||
{
|
||||
IDataNode dataNode = Kernel.Instance.ParseNode(child, this);
|
||||
if(dataNode is OptionsNode)
|
||||
{
|
||||
((OptionsNode)dataNode).CopyTo(m_Options);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Copies to.
|
||||
/// </summary>
|
||||
/// <param name="conf">The conf.</param>
|
||||
public void CopyTo(ConfigurationNode conf)
|
||||
{
|
||||
m_Options.CopyTo(conf.m_Options);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ICloneable Members
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new object that is a copy of the current instance.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// A new object that is a copy of this instance.
|
||||
/// </returns>
|
||||
public object Clone()
|
||||
{
|
||||
ConfigurationNode ret = new ConfigurationNode();
|
||||
ret.m_Name = m_Name;
|
||||
m_Options.CopyTo(ret.m_Options);
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,82 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-28 01:49:58 +0100 (lö, 28 jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Xml;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
|
||||
namespace Prebuild.Core.Nodes
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class DataNode : IDataNode
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private IDataNode parent;
|
||||
|
||||
#endregion
|
||||
|
||||
#region IDataNode Members
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the parent.
|
||||
/// </summary>
|
||||
/// <value>The parent.</value>
|
||||
public virtual IDataNode Parent
|
||||
{
|
||||
get
|
||||
{
|
||||
return parent;
|
||||
}
|
||||
set
|
||||
{
|
||||
parent = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Parses the specified node.
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
public virtual void Parse(XmlNode node)
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,85 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-31 16:35:39 +0100 (ti, 31 jan 2006) $
|
||||
* $Revision: 74 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Xml;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Nodes
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[DataNode("Exclude")]
|
||||
public class ExcludeNode : DataNode
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private string m_Name = "unknown";
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Name;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Parses the specified node.
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
public override void Parse(XmlNode node)
|
||||
{
|
||||
m_Name = Helper.AttributeValue(node, "name", m_Name);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,238 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2007-01-08 17:55:40 +0100 (må, 08 jan 2007) $
|
||||
* $Revision: 197 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Nodes
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public enum BuildAction
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
None,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Compile,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Content,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
EmbeddedResource
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public enum SubType
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Code,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Component,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Designer,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Form,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Settings,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
UserControl
|
||||
}
|
||||
|
||||
public enum CopyToOutput
|
||||
{
|
||||
Never,
|
||||
Always,
|
||||
PreserveNewest
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[DataNode("File")]
|
||||
public class FileNode : DataNode
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private string m_Path;
|
||||
private string m_ResourceName = "";
|
||||
private BuildAction m_BuildAction = BuildAction.Compile;
|
||||
private bool m_Valid;
|
||||
private SubType m_SubType = SubType.Code;
|
||||
private CopyToOutput m_CopyToOutput = CopyToOutput.Never;
|
||||
private bool m_Link = false;
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Path
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Path;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ResourceName
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_ResourceName;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public BuildAction BuildAction
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_BuildAction;
|
||||
}
|
||||
}
|
||||
|
||||
public CopyToOutput CopyToOutput
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_CopyToOutput;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsLink
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_Link;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public SubType SubType
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_SubType;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool IsValid
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Valid;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="node"></param>
|
||||
public override void Parse(XmlNode node)
|
||||
{
|
||||
m_BuildAction = (BuildAction)Enum.Parse(typeof(BuildAction),
|
||||
Helper.AttributeValue(node, "buildAction", m_BuildAction.ToString()));
|
||||
m_SubType = (SubType)Enum.Parse(typeof(SubType),
|
||||
Helper.AttributeValue(node, "subType", m_SubType.ToString()));
|
||||
m_ResourceName = Helper.AttributeValue(node, "resourceName", m_ResourceName.ToString());
|
||||
this.m_Link = bool.Parse(Helper.AttributeValue(node, "link", bool.FalseString));
|
||||
this.m_CopyToOutput = (CopyToOutput) Enum.Parse(typeof(CopyToOutput), Helper.AttributeValue(node, "copyToOutput", this.m_CopyToOutput.ToString()));
|
||||
|
||||
if( node == null )
|
||||
{
|
||||
throw new ArgumentNullException("node");
|
||||
}
|
||||
|
||||
m_Path = Helper.InterpolateForEnvironmentVariables(node.InnerText);
|
||||
if(m_Path == null)
|
||||
{
|
||||
m_Path = "";
|
||||
}
|
||||
|
||||
m_Path = m_Path.Trim();
|
||||
m_Valid = true;
|
||||
if(!File.Exists(m_Path))
|
||||
{
|
||||
m_Valid = false;
|
||||
Kernel.Instance.Log.Write(LogType.Warning, "File does not exist: {0}", m_Path);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,222 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-09-20 09:42:51 +0200 (on, 20 sep 2006) $
|
||||
* $Revision: 164 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.Xml;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
|
||||
namespace Prebuild.Core.Nodes
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[DataNode("Files")]
|
||||
public class FilesNode : DataNode
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private StringCollection m_Files;
|
||||
private Hashtable m_BuildActions;
|
||||
private Hashtable m_SubTypes;
|
||||
private Hashtable m_ResourceNames;
|
||||
private Hashtable m_CopyToOutputs;
|
||||
private Hashtable m_Links;
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public FilesNode()
|
||||
{
|
||||
m_Files = new StringCollection();
|
||||
m_BuildActions = new Hashtable();
|
||||
m_SubTypes = new Hashtable();
|
||||
m_ResourceNames = new Hashtable();
|
||||
m_CopyToOutputs = new Hashtable();
|
||||
m_Links = new Hashtable();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int Count
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Files.Count;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="file"></param>
|
||||
/// <returns></returns>
|
||||
public BuildAction GetBuildAction(string file)
|
||||
{
|
||||
if(!m_BuildActions.ContainsKey(file))
|
||||
{
|
||||
return BuildAction.Compile;
|
||||
}
|
||||
|
||||
return (BuildAction)m_BuildActions[file];
|
||||
}
|
||||
|
||||
public CopyToOutput GetCopyToOutput(string file)
|
||||
{
|
||||
if (!this.m_CopyToOutputs.ContainsKey(file))
|
||||
{
|
||||
return CopyToOutput.Never;
|
||||
}
|
||||
return (CopyToOutput) this.m_CopyToOutputs[file];
|
||||
}
|
||||
|
||||
public bool GetIsLink(string file)
|
||||
{
|
||||
if (!this.m_Links.ContainsKey(file))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return (bool) this.m_Links[file];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="file"></param>
|
||||
/// <returns></returns>
|
||||
public SubType GetSubType(string file)
|
||||
{
|
||||
if(!m_SubTypes.ContainsKey(file))
|
||||
{
|
||||
return SubType.Code;
|
||||
}
|
||||
|
||||
return (SubType)m_SubTypes[file];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="file"></param>
|
||||
/// <returns></returns>
|
||||
public string GetResourceName(string file)
|
||||
{
|
||||
if(!m_ResourceNames.ContainsKey(file))
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
return (string)m_ResourceNames[file];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="node"></param>
|
||||
public override void Parse(XmlNode node)
|
||||
{
|
||||
if( node == null )
|
||||
{
|
||||
throw new ArgumentNullException("node");
|
||||
}
|
||||
foreach(XmlNode child in node.ChildNodes)
|
||||
{
|
||||
IDataNode dataNode = Kernel.Instance.ParseNode(child, this);
|
||||
if(dataNode is FileNode)
|
||||
{
|
||||
FileNode fileNode = (FileNode)dataNode;
|
||||
if(fileNode.IsValid)
|
||||
{
|
||||
if (!m_Files.Contains(fileNode.Path))
|
||||
{
|
||||
m_Files.Add(fileNode.Path);
|
||||
m_BuildActions[fileNode.Path] = fileNode.BuildAction;
|
||||
m_SubTypes[fileNode.Path] = fileNode.SubType;
|
||||
m_ResourceNames[fileNode.Path] = fileNode.ResourceName;
|
||||
this.m_Links[fileNode.Path] = fileNode.IsLink;
|
||||
this.m_CopyToOutputs[fileNode.Path] = fileNode.CopyToOutput;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(dataNode is MatchNode)
|
||||
{
|
||||
foreach(string file in ((MatchNode)dataNode).Files)
|
||||
{
|
||||
if (!m_Files.Contains(file))
|
||||
{
|
||||
m_Files.Add(file);
|
||||
m_BuildActions[file] = ((MatchNode)dataNode).BuildAction;
|
||||
m_SubTypes[file] = ((MatchNode)dataNode).SubType;
|
||||
m_ResourceNames[file] = ((MatchNode)dataNode).ResourceName;
|
||||
this.m_Links[file] = ((MatchNode) dataNode).IsLink;
|
||||
this.m_CopyToOutputs[file] = ((MatchNode) dataNode).CopyToOutput;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Check in to why StringCollection's enumerator doesn't implement
|
||||
// IEnumerator?
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public StringEnumerator GetEnumerator()
|
||||
{
|
||||
return m_Files.GetEnumerator();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,299 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-09-20 09:42:51 +0200 (on, 20 sep 2006) $
|
||||
* $Revision: 164 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections.Specialized;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Xml;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Nodes
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[DataNode("Match")]
|
||||
public class MatchNode : DataNode
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private StringCollection m_Files;
|
||||
private Regex m_Regex;
|
||||
private BuildAction m_BuildAction = BuildAction.Compile;
|
||||
private SubType m_SubType = SubType.Code;
|
||||
string m_ResourceName = "";
|
||||
private CopyToOutput m_CopyToOutput;
|
||||
private bool m_Link;
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public MatchNode()
|
||||
{
|
||||
m_Files = new StringCollection();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public StringCollection Files
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Files;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public BuildAction BuildAction
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_BuildAction;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public SubType SubType
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_SubType;
|
||||
}
|
||||
}
|
||||
|
||||
public CopyToOutput CopyToOutput
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_CopyToOutput;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsLink
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_Link;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ResourceName
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_ResourceName;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
/// <summary>
|
||||
/// Recurses the directories.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
/// <param name="pattern">The pattern.</param>
|
||||
/// <param name="recurse">if set to <c>true</c> [recurse].</param>
|
||||
/// <param name="useRegex">if set to <c>true</c> [use regex].</param>
|
||||
private void RecurseDirectories(string path, string pattern, bool recurse, bool useRegex)
|
||||
{
|
||||
try
|
||||
{
|
||||
string[] files;
|
||||
|
||||
if(!useRegex)
|
||||
{
|
||||
files = Directory.GetFiles(path, pattern);
|
||||
if(files != null)
|
||||
{
|
||||
string fileTemp;
|
||||
foreach (string file in files)
|
||||
{
|
||||
if (file.Substring(0,2) == "./" || file.Substring(0,2) == ".\\")
|
||||
{
|
||||
fileTemp = file.Substring(2);
|
||||
}
|
||||
else
|
||||
{
|
||||
fileTemp = file;
|
||||
}
|
||||
|
||||
m_Files.Add(fileTemp);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Match match;
|
||||
files = Directory.GetFiles(path);
|
||||
foreach(string file in files)
|
||||
{
|
||||
match = m_Regex.Match(file);
|
||||
if(match.Success)
|
||||
{
|
||||
m_Files.Add(file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(recurse)
|
||||
{
|
||||
string[] dirs = Directory.GetDirectories(path);
|
||||
if(dirs != null && dirs.Length > 0)
|
||||
{
|
||||
foreach(string str in dirs)
|
||||
{
|
||||
RecurseDirectories(Helper.NormalizePath(str), pattern, recurse, useRegex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(DirectoryNotFoundException)
|
||||
{
|
||||
return;
|
||||
}
|
||||
catch(ArgumentException)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="node"></param>
|
||||
public override void Parse(XmlNode node)
|
||||
{
|
||||
if( node == null )
|
||||
{
|
||||
throw new ArgumentNullException("node");
|
||||
}
|
||||
string path = Helper.AttributeValue(node, "path", ".");
|
||||
string pattern = Helper.AttributeValue(node, "pattern", "*");
|
||||
bool recurse = (bool)Helper.TranslateValue(typeof(bool), Helper.AttributeValue(node, "recurse", "false"));
|
||||
bool useRegex = (bool)Helper.TranslateValue(typeof(bool), Helper.AttributeValue(node, "useRegex", "false"));
|
||||
m_BuildAction = (BuildAction)Enum.Parse(typeof(BuildAction),
|
||||
Helper.AttributeValue(node, "buildAction", m_BuildAction.ToString()));
|
||||
m_SubType = (SubType)Enum.Parse(typeof(SubType),
|
||||
Helper.AttributeValue(node, "subType", m_SubType.ToString()));
|
||||
m_ResourceName = Helper.AttributeValue(node, "resourceName", m_ResourceName.ToString());
|
||||
this.m_CopyToOutput = (CopyToOutput) Enum.Parse(typeof(CopyToOutput), Helper.AttributeValue(node, "copyToOutput", this.m_CopyToOutput.ToString()));
|
||||
this.m_Link = bool.Parse(Helper.AttributeValue(node, "link", bool.FalseString));
|
||||
|
||||
|
||||
if(path != null && path.Length == 0)
|
||||
{
|
||||
path = ".";//use current directory
|
||||
}
|
||||
//throw new WarningException("Match must have a 'path' attribute");
|
||||
|
||||
if(pattern == null)
|
||||
{
|
||||
throw new WarningException("Match must have a 'pattern' attribute");
|
||||
}
|
||||
|
||||
path = Helper.NormalizePath(path);
|
||||
if(!Directory.Exists(path))
|
||||
{
|
||||
throw new WarningException("Match path does not exist: {0}", path);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
if(useRegex)
|
||||
{
|
||||
m_Regex = new Regex(pattern);
|
||||
}
|
||||
}
|
||||
catch(ArgumentException ex)
|
||||
{
|
||||
throw new WarningException("Could not compile regex pattern: {0}", ex.Message);
|
||||
}
|
||||
|
||||
RecurseDirectories(path, pattern, recurse, useRegex);
|
||||
|
||||
foreach(XmlNode child in node.ChildNodes)
|
||||
{
|
||||
IDataNode dataNode = Kernel.Instance.ParseNode(child, this);
|
||||
if(dataNode is ExcludeNode)
|
||||
{
|
||||
ExcludeNode excludeNode = (ExcludeNode)dataNode;
|
||||
if (m_Files.Contains(Helper.NormalizePath(excludeNode.Name)))
|
||||
{
|
||||
m_Files.Remove(Helper.NormalizePath(excludeNode.Name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(m_Files.Count < 1)
|
||||
{
|
||||
throw new WarningException("Match returned no files: {0}{1}", Helper.EndPath(path), pattern);
|
||||
}
|
||||
m_Regex = null;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,655 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2007-01-08 17:55:40 +0100 (må, 08 jan 2007) $
|
||||
* $Revision: 197 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.Reflection;
|
||||
using System.Xml;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Nodes
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[DataNode("Options")]
|
||||
public class OptionsNode : DataNode
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private static Hashtable m_OptionFields;
|
||||
|
||||
[OptionNode("CompilerDefines")]
|
||||
private string m_CompilerDefines = "";
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CompilerDefines
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_CompilerDefines;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_CompilerDefines = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("OptimizeCode")]
|
||||
private bool m_OptimizeCode;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool OptimizeCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_OptimizeCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_OptimizeCode = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("CheckUnderflowOverflow")]
|
||||
private bool m_CheckUnderflowOverflow;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool CheckUnderflowOverflow
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_CheckUnderflowOverflow;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_CheckUnderflowOverflow = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("AllowUnsafe")]
|
||||
private bool m_AllowUnsafe;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool AllowUnsafe
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_AllowUnsafe;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_AllowUnsafe = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("PreBuildEvent")]
|
||||
private string m_PreBuildEvent;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PreBuildEvent
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_PreBuildEvent;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_PreBuildEvent = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("PostBuildEvent")]
|
||||
private string m_PostBuildEvent;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PostBuildEvent
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_PostBuildEvent;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_PostBuildEvent = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("PreBuildEventArgs")]
|
||||
private string m_PreBuildEventArgs;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PreBuildEventArgs
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_PreBuildEventArgs;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_PreBuildEventArgs = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("PostBuildEventArgs")]
|
||||
private string m_PostBuildEventArgs;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PostBuildEventArgs
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_PostBuildEventArgs;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_PostBuildEventArgs = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("RunPostBuildEvent")]
|
||||
private string m_RunPostBuildEvent;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string RunPostBuildEvent
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_RunPostBuildEvent;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_RunPostBuildEvent = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("RunScript")]
|
||||
private string m_RunScript;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string RunScript
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_RunScript;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_RunScript = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("WarningLevel")]
|
||||
private int m_WarningLevel = 4;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int WarningLevel
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_WarningLevel;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_WarningLevel = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("WarningsAsErrors")]
|
||||
private bool m_WarningsAsErrors;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool WarningsAsErrors
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_WarningsAsErrors;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_WarningsAsErrors = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("SuppressWarnings")]
|
||||
private string m_SuppressWarnings = "";
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SuppressWarnings
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_SuppressWarnings;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_SuppressWarnings = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("OutputPath")]
|
||||
private string m_OutputPath = "bin/";
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string OutputPath
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_OutputPath;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_OutputPath = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("GenerateDocumentation")]
|
||||
private bool m_GenerateDocumentation;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool GenerateDocumentation
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_GenerateDocumentation;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_GenerateDocumentation = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("GenerateXmlDocFile")]
|
||||
private bool m_GenerateXmlDocFile;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool GenerateXmlDocFile
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_GenerateXmlDocFile;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_GenerateXmlDocFile = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("XmlDocFile")]
|
||||
private string m_XmlDocFile = "";
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string XmlDocFile
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_XmlDocFile;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_XmlDocFile = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("KeyFile")]
|
||||
private string m_KeyFile = "";
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string KeyFile
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_KeyFile;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_KeyFile = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("DebugInformation")]
|
||||
private bool m_DebugInformation;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool DebugInformation
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_DebugInformation;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_DebugInformation = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("RegisterComInterop")]
|
||||
private bool m_RegisterComInterop;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool RegisterComInterop
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_RegisterComInterop;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_RegisterComInterop = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("RemoveIntegerChecks")]
|
||||
private bool m_RemoveIntegerChecks;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool RemoveIntegerChecks
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_RemoveIntegerChecks;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_RemoveIntegerChecks = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("IncrementalBuild")]
|
||||
private bool m_IncrementalBuild;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool IncrementalBuild
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_IncrementalBuild;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_IncrementalBuild = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("BaseAddress")]
|
||||
private string m_BaseAddress = "285212672";
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string BaseAddress
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_BaseAddress;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_BaseAddress = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("FileAlignment")]
|
||||
private int m_FileAlignment = 4096;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int FileAlignment
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_FileAlignment;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_FileAlignment = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OptionNode("NoStdLib")]
|
||||
private bool m_NoStdLib;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool NoStdLib
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_NoStdLib;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_NoStdLib = value;
|
||||
}
|
||||
}
|
||||
|
||||
private StringCollection m_FieldsDefined;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes the <see cref="OptionsNode"/> class.
|
||||
/// </summary>
|
||||
static OptionsNode()
|
||||
{
|
||||
Type t = typeof(OptionsNode);
|
||||
|
||||
m_OptionFields = new Hashtable();
|
||||
foreach(FieldInfo f in t.GetFields(BindingFlags.NonPublic | BindingFlags.Instance))
|
||||
{
|
||||
object[] attrs = f.GetCustomAttributes(typeof(OptionNodeAttribute), false);
|
||||
if(attrs == null || attrs.Length < 1)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
OptionNodeAttribute ona = (OptionNodeAttribute)attrs[0];
|
||||
m_OptionFields[ona.NodeName] = f;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OptionsNode"/> class.
|
||||
/// </summary>
|
||||
public OptionsNode()
|
||||
{
|
||||
m_FieldsDefined = new StringCollection();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="Object"/> at the specified index.
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public object this[string index]
|
||||
{
|
||||
get
|
||||
{
|
||||
if(!m_OptionFields.ContainsKey(index))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
FieldInfo f = (FieldInfo)m_OptionFields[index];
|
||||
return f.GetValue(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="Object"/> at the specified index.
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public object this[string index, object defaultValue]
|
||||
{
|
||||
get
|
||||
{
|
||||
object valueObject = this[index];
|
||||
if(valueObject != null && valueObject is string && ((string)valueObject).Length == 0)
|
||||
{
|
||||
return defaultValue;
|
||||
}
|
||||
return valueObject;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void FlagDefined(string name)
|
||||
{
|
||||
if(!m_FieldsDefined.Contains(name))
|
||||
{
|
||||
m_FieldsDefined.Add(name);
|
||||
}
|
||||
}
|
||||
|
||||
private void SetOption(string nodeName, string val)
|
||||
{
|
||||
lock(m_OptionFields)
|
||||
{
|
||||
if(!m_OptionFields.ContainsKey(nodeName))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
FieldInfo f = (FieldInfo)m_OptionFields[nodeName];
|
||||
f.SetValue(this, Helper.TranslateValue(f.FieldType, val));
|
||||
FlagDefined(f.Name);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Parses the specified node.
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
public override void Parse(XmlNode node)
|
||||
{
|
||||
if( node == null )
|
||||
{
|
||||
throw new ArgumentNullException("node");
|
||||
}
|
||||
|
||||
foreach(XmlNode child in node.ChildNodes)
|
||||
{
|
||||
SetOption(child.Name, Helper.InterpolateForEnvironmentVariables(child.InnerText));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Copies to.
|
||||
/// </summary>
|
||||
/// <param name="opt">The opt.</param>
|
||||
public void CopyTo(OptionsNode opt)
|
||||
{
|
||||
if(opt == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
foreach(FieldInfo f in m_OptionFields.Values)
|
||||
{
|
||||
if(m_FieldsDefined.Contains(f.Name))
|
||||
{
|
||||
f.SetValue(opt, f.GetValue(this));
|
||||
opt.m_FieldsDefined.Add(f.Name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,119 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-28 01:49:58 +0100 (lö, 28 jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.Xml;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Nodes
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[DataNode("Process")]
|
||||
public class ProcessNode : DataNode
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private string m_Path;
|
||||
private bool m_IsValid = true;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the path.
|
||||
/// </summary>
|
||||
/// <value>The path.</value>
|
||||
public string Path
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Path;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this instance is valid.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance is valid; otherwise, <c>false</c>.</value>
|
||||
public bool IsValid
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_IsValid;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Parses the specified node.
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
public override void Parse(XmlNode node)
|
||||
{
|
||||
if( node == null )
|
||||
{
|
||||
throw new ArgumentNullException("node");
|
||||
}
|
||||
|
||||
m_Path = Helper.InterpolateForEnvironmentVariables(node.InnerText);
|
||||
if(m_Path == null)
|
||||
{
|
||||
m_Path = "";
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
m_Path = Helper.ResolvePath(m_Path);
|
||||
}
|
||||
catch(ArgumentException)
|
||||
{
|
||||
Kernel.Instance.Log.Write(LogType.Warning, "Could not find prebuild file for processing: {0}", m_Path);
|
||||
m_IsValid = false;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,490 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-11-11 05:43:20 +0100 (lö, 11 nov 2006) $
|
||||
* $Revision: 192 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Nodes
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public enum ProjectType
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Exe,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
WinExe,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Library
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public enum ClrRuntime
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Microsoft,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Mono
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[DataNode("Project")]
|
||||
public class ProjectNode : DataNode
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private string m_Name = "unknown";
|
||||
private string m_Path = "";
|
||||
private string m_FullPath = "";
|
||||
private string m_AssemblyName;
|
||||
private string m_AppIcon = "";
|
||||
private string m_DesignerFolder = "";
|
||||
private string m_Language = "C#";
|
||||
private ProjectType m_Type = ProjectType.Exe;
|
||||
private ClrRuntime m_Runtime = ClrRuntime.Microsoft;
|
||||
private string m_StartupObject = "";
|
||||
private string m_RootNamespace;
|
||||
private string m_FilterGroups = "";
|
||||
private Guid m_Guid;
|
||||
|
||||
private Hashtable m_Configurations;
|
||||
private ArrayList m_ReferencePaths;
|
||||
private ArrayList m_References;
|
||||
private FilesNode m_Files;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ProjectNode"/> class.
|
||||
/// </summary>
|
||||
public ProjectNode()
|
||||
{
|
||||
m_Configurations = new Hashtable();
|
||||
m_ReferencePaths = new ArrayList();
|
||||
m_References = new ArrayList();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Name;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the path.
|
||||
/// </summary>
|
||||
/// <value>The path.</value>
|
||||
public string Path
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Path;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the filter groups.
|
||||
/// </summary>
|
||||
/// <value>The filter groups.</value>
|
||||
public string FilterGroups
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_FilterGroups;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the full path.
|
||||
/// </summary>
|
||||
/// <value>The full path.</value>
|
||||
public string FullPath
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_FullPath;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the assembly.
|
||||
/// </summary>
|
||||
/// <value>The name of the assembly.</value>
|
||||
public string AssemblyName
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_AssemblyName;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the app icon.
|
||||
/// </summary>
|
||||
/// <value>The app icon.</value>
|
||||
public string AppIcon
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_AppIcon;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string DesignerFolder
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_DesignerFolder;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the language.
|
||||
/// </summary>
|
||||
/// <value>The language.</value>
|
||||
public string Language
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Language;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type.
|
||||
/// </summary>
|
||||
/// <value>The type.</value>
|
||||
public ProjectType Type
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Type;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the runtime.
|
||||
/// </summary>
|
||||
/// <value>The runtime.</value>
|
||||
public ClrRuntime Runtime
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Runtime;
|
||||
}
|
||||
}
|
||||
|
||||
private bool m_GenerateAssemblyInfoFile = false;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool GenerateAssemblyInfoFile
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_GenerateAssemblyInfoFile;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_GenerateAssemblyInfoFile = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the startup object.
|
||||
/// </summary>
|
||||
/// <value>The startup object.</value>
|
||||
public string StartupObject
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_StartupObject;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the root namespace.
|
||||
/// </summary>
|
||||
/// <value>The root namespace.</value>
|
||||
public string RootNamespace
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_RootNamespace;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the configurations.
|
||||
/// </summary>
|
||||
/// <value>The configurations.</value>
|
||||
public ICollection Configurations
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Configurations.Values;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the configurations table.
|
||||
/// </summary>
|
||||
/// <value>The configurations table.</value>
|
||||
public Hashtable ConfigurationsTable
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Configurations;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the reference paths.
|
||||
/// </summary>
|
||||
/// <value>The reference paths.</value>
|
||||
public ArrayList ReferencePaths
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_ReferencePaths;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the references.
|
||||
/// </summary>
|
||||
/// <value>The references.</value>
|
||||
public ArrayList References
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_References;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the files.
|
||||
/// </summary>
|
||||
/// <value>The files.</value>
|
||||
public FilesNode Files
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Files;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the parent.
|
||||
/// </summary>
|
||||
/// <value>The parent.</value>
|
||||
public override IDataNode Parent
|
||||
{
|
||||
get
|
||||
{
|
||||
return base.Parent;
|
||||
}
|
||||
set
|
||||
{
|
||||
base.Parent = value;
|
||||
if(base.Parent is SolutionNode && m_Configurations.Count < 1)
|
||||
{
|
||||
SolutionNode parent = (SolutionNode)base.Parent;
|
||||
foreach(ConfigurationNode conf in parent.Configurations)
|
||||
{
|
||||
m_Configurations[conf.Name] = conf.Clone();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the GUID.
|
||||
/// </summary>
|
||||
/// <value>The GUID.</value>
|
||||
public Guid Guid
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Guid;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void HandleConfiguration(ConfigurationNode conf)
|
||||
{
|
||||
if(String.Compare(conf.Name, "all", true) == 0) //apply changes to all, this may not always be applied first,
|
||||
//so it *may* override changes to the same properties for configurations defines at the project level
|
||||
{
|
||||
foreach(ConfigurationNode confNode in this.m_Configurations.Values)
|
||||
{
|
||||
conf.CopyTo(confNode);//update the config templates defines at the project level with the overrides
|
||||
}
|
||||
}
|
||||
if(m_Configurations.ContainsKey(conf.Name))
|
||||
{
|
||||
ConfigurationNode parentConf = (ConfigurationNode)m_Configurations[conf.Name];
|
||||
conf.CopyTo(parentConf);//update the config templates defines at the project level with the overrides
|
||||
}
|
||||
else
|
||||
{
|
||||
m_Configurations[conf.Name] = conf;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Parses the specified node.
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
public override void Parse(XmlNode node)
|
||||
{
|
||||
m_Name = Helper.AttributeValue(node, "name", m_Name);
|
||||
m_Path = Helper.AttributeValue(node, "path", m_Path);
|
||||
m_FilterGroups = Helper.AttributeValue(node, "filterGroups", m_FilterGroups);
|
||||
m_AppIcon = Helper.AttributeValue(node, "icon", m_AppIcon);
|
||||
m_DesignerFolder = Helper.AttributeValue(node, "designerFolder", m_DesignerFolder);
|
||||
m_AssemblyName = Helper.AttributeValue(node, "assemblyName", m_AssemblyName);
|
||||
m_Language = Helper.AttributeValue(node, "language", m_Language);
|
||||
m_Type = (ProjectType)Helper.EnumAttributeValue(node, "type", typeof(ProjectType), m_Type);
|
||||
m_Runtime = (ClrRuntime)Helper.EnumAttributeValue(node, "runtime", typeof(ClrRuntime), m_Runtime);
|
||||
m_StartupObject = Helper.AttributeValue(node, "startupObject", m_StartupObject);
|
||||
m_RootNamespace = Helper.AttributeValue(node, "rootNamespace", m_RootNamespace);
|
||||
m_Guid = Guid.NewGuid();
|
||||
m_GenerateAssemblyInfoFile = Helper.ParseBoolean(node, "generateAssemblyInfoFile", false);
|
||||
|
||||
if(m_AssemblyName == null || m_AssemblyName.Length < 1)
|
||||
{
|
||||
m_AssemblyName = m_Name;
|
||||
}
|
||||
|
||||
if(m_RootNamespace == null || m_RootNamespace.Length < 1)
|
||||
{
|
||||
m_RootNamespace = m_Name;
|
||||
}
|
||||
|
||||
m_FullPath = m_Path;
|
||||
try
|
||||
{
|
||||
m_FullPath = Helper.ResolvePath(m_FullPath);
|
||||
}
|
||||
catch
|
||||
{
|
||||
throw new WarningException("Could not resolve Solution path: {0}", m_Path);
|
||||
}
|
||||
|
||||
Kernel.Instance.CurrentWorkingDirectory.Push();
|
||||
try
|
||||
{
|
||||
Helper.SetCurrentDir(m_FullPath);
|
||||
|
||||
if( node == null )
|
||||
{
|
||||
throw new ArgumentNullException("node");
|
||||
}
|
||||
|
||||
foreach(XmlNode child in node.ChildNodes)
|
||||
{
|
||||
IDataNode dataNode = Kernel.Instance.ParseNode(child, this);
|
||||
if(dataNode is ConfigurationNode)
|
||||
{
|
||||
HandleConfiguration((ConfigurationNode)dataNode);
|
||||
}
|
||||
else if(dataNode is ReferencePathNode)
|
||||
{
|
||||
m_ReferencePaths.Add(dataNode);
|
||||
}
|
||||
else if(dataNode is ReferenceNode)
|
||||
{
|
||||
m_References.Add(dataNode);
|
||||
}
|
||||
else if(dataNode is FilesNode)
|
||||
{
|
||||
m_Files = (FilesNode)dataNode;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Kernel.Instance.CurrentWorkingDirectory.Pop();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,143 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-07-25 18:56:49 +0200 (ti, 25 jul 2006) $
|
||||
* $Revision: 132 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Xml;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Nodes
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[DataNode("Reference")]
|
||||
public class ReferenceNode : DataNode
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private string m_Name = "unknown";
|
||||
private string m_Path;
|
||||
private string m_LocalCopy;
|
||||
private string m_Version;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Name;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the path.
|
||||
/// </summary>
|
||||
/// <value>The path.</value>
|
||||
public string Path
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Path;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether [local copy specified].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [local copy specified]; otherwise, <c>false</c>.</value>
|
||||
public bool LocalCopySpecified
|
||||
{
|
||||
get
|
||||
{
|
||||
return ( m_LocalCopy != null && m_LocalCopy.Length == 0);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether [local copy].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [local copy]; otherwise, <c>false</c>.</value>
|
||||
public bool LocalCopy
|
||||
{
|
||||
get
|
||||
{
|
||||
if( m_LocalCopy == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return bool.Parse(m_LocalCopy);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the version.
|
||||
/// </summary>
|
||||
/// <value>The version.</value>
|
||||
public string Version
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Version;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Parses the specified node.
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
public override void Parse(XmlNode node)
|
||||
{
|
||||
m_Name = Helper.AttributeValue(node, "name", m_Name);
|
||||
m_Path = Helper.AttributeValue(node, "path", m_Path);
|
||||
m_LocalCopy = Helper.AttributeValue(node, "localCopy", m_LocalCopy);
|
||||
m_Version = Helper.AttributeValue(node, "version", m_Version);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-28 01:49:58 +0100 (lö, 28 jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.Xml;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Nodes
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[DataNode("ReferencePath")]
|
||||
public class ReferencePathNode : DataNode
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private string m_Path;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the path.
|
||||
/// </summary>
|
||||
/// <value>The path.</value>
|
||||
public string Path
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Path;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Parses the specified node.
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
public override void Parse(XmlNode node)
|
||||
{
|
||||
if( node == null )
|
||||
{
|
||||
throw new ArgumentNullException("node");
|
||||
}
|
||||
|
||||
m_Path = Helper.InterpolateForEnvironmentVariables(node.InnerText);
|
||||
if(m_Path == null)
|
||||
{
|
||||
m_Path = "";
|
||||
}
|
||||
|
||||
m_Path = m_Path.Trim();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,284 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-02-28 17:15:42 +0100 (ti, 28 feb 2006) $
|
||||
* $Revision: 92 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Nodes
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[DataNode("Solution")]
|
||||
public class SolutionNode : DataNode
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private string m_Name = "unknown";
|
||||
private string m_Path = "";
|
||||
private string m_FullPath = "";
|
||||
private string m_ActiveConfig = "Debug";
|
||||
|
||||
private OptionsNode m_Options;
|
||||
private FilesNode m_Files;
|
||||
private Hashtable m_Configurations;
|
||||
private Hashtable m_Projects;
|
||||
private ArrayList m_ProjectsOrder;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SolutionNode"/> class.
|
||||
/// </summary>
|
||||
public SolutionNode()
|
||||
{
|
||||
m_Configurations = new Hashtable();
|
||||
m_Projects = new Hashtable();
|
||||
m_ProjectsOrder = new ArrayList();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the active config.
|
||||
/// </summary>
|
||||
/// <value>The active config.</value>
|
||||
public string ActiveConfig
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_ActiveConfig;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_ActiveConfig = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Name;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the path.
|
||||
/// </summary>
|
||||
/// <value>The path.</value>
|
||||
public string Path
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Path;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the full path.
|
||||
/// </summary>
|
||||
/// <value>The full path.</value>
|
||||
public string FullPath
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_FullPath;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the options.
|
||||
/// </summary>
|
||||
/// <value>The options.</value>
|
||||
public OptionsNode Options
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Options;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the files.
|
||||
/// </summary>
|
||||
/// <value>The files.</value>
|
||||
public FilesNode Files
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Files;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the configurations.
|
||||
/// </summary>
|
||||
/// <value>The configurations.</value>
|
||||
public ICollection Configurations
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Configurations.Values;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the configurations table.
|
||||
/// </summary>
|
||||
/// <value>The configurations table.</value>
|
||||
public Hashtable ConfigurationsTable
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Configurations;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the projects.
|
||||
/// </summary>
|
||||
/// <value>The projects.</value>
|
||||
public ICollection Projects
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Projects.Values;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the projects table.
|
||||
/// </summary>
|
||||
/// <value>The projects table.</value>
|
||||
public Hashtable ProjectsTable
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Projects;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the projects table.
|
||||
/// </summary>
|
||||
/// <value>The projects table.</value>
|
||||
public ArrayList ProjectsTableOrder
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_ProjectsOrder;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Parses the specified node.
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
public override void Parse(XmlNode node)
|
||||
{
|
||||
m_Name = Helper.AttributeValue(node, "name", m_Name);
|
||||
m_ActiveConfig = Helper.AttributeValue(node, "activeConfig", m_ActiveConfig);
|
||||
m_Path = Helper.AttributeValue(node, "path", m_Path);
|
||||
|
||||
m_FullPath = m_Path;
|
||||
try
|
||||
{
|
||||
m_FullPath = Helper.ResolvePath(m_FullPath);
|
||||
}
|
||||
catch
|
||||
{
|
||||
throw new WarningException("Could not resolve solution path: {0}", m_Path);
|
||||
}
|
||||
|
||||
Kernel.Instance.CurrentWorkingDirectory.Push();
|
||||
try
|
||||
{
|
||||
Helper.SetCurrentDir(m_FullPath);
|
||||
|
||||
if( node == null )
|
||||
{
|
||||
throw new ArgumentNullException("node");
|
||||
}
|
||||
|
||||
foreach(XmlNode child in node.ChildNodes)
|
||||
{
|
||||
IDataNode dataNode = Kernel.Instance.ParseNode(child, this);
|
||||
if(dataNode is OptionsNode)
|
||||
{
|
||||
m_Options = (OptionsNode)dataNode;
|
||||
}
|
||||
else if(dataNode is FilesNode)
|
||||
{
|
||||
m_Files = (FilesNode)dataNode;
|
||||
}
|
||||
else if(dataNode is ConfigurationNode)
|
||||
{
|
||||
m_Configurations[((ConfigurationNode)dataNode).Name] = dataNode;
|
||||
}
|
||||
else if(dataNode is ProjectNode)
|
||||
{
|
||||
m_Projects[((ProjectNode)dataNode).Name] = dataNode;
|
||||
m_ProjectsOrder.Add(dataNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Kernel.Instance.CurrentWorkingDirectory.Pop();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,163 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-28 01:49:58 +0100 (lö, 28 jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
namespace Prebuild.Core.Parse
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public enum IfState
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
None,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
If,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
ElseIf,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Else
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for IfContext.
|
||||
/// </summary>
|
||||
// Inspired by the equivalent WiX class (see www.sourceforge.net/projects/wix/)
|
||||
public class IfContext
|
||||
{
|
||||
#region Properties
|
||||
|
||||
bool m_Active;
|
||||
bool m_Keep;
|
||||
bool m_EverKept;
|
||||
IfState m_State = IfState.None;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="IfContext"/> class.
|
||||
/// </summary>
|
||||
/// <param name="active">if set to <c>true</c> [active].</param>
|
||||
/// <param name="keep">if set to <c>true</c> [keep].</param>
|
||||
/// <param name="state">The state.</param>
|
||||
public IfContext(bool active, bool keep, IfState state)
|
||||
{
|
||||
m_Active = active;
|
||||
m_Keep = keep;
|
||||
m_EverKept = keep;
|
||||
m_State = state;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this <see cref="IfContext"/> is active.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if active; otherwise, <c>false</c>.</value>
|
||||
public bool Active
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Active;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_Active = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this <see cref="IfContext"/> is keep.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if keep; otherwise, <c>false</c>.</value>
|
||||
public bool Keep
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Keep;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_Keep = value;
|
||||
if(m_Keep)
|
||||
{
|
||||
m_EverKept = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether [ever kept].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [ever kept]; otherwise, <c>false</c>.</value>
|
||||
public bool EverKept
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_EverKept;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the state.
|
||||
/// </summary>
|
||||
/// <value>The state.</value>
|
||||
public IfState State
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_State;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_State = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,519 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-09-01 19:55:06 +0200 (fr, 01 sep 2006) $
|
||||
* $Revision: 147 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
|
||||
namespace Prebuild.Core.Parse
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public enum OperatorSymbol
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
None,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Equal,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
NotEqual,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
LessThan,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
GreaterThan,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
LessThanEqual,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
GreaterThanEqual
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class Preprocessor
|
||||
{
|
||||
#region Fields
|
||||
|
||||
XmlDocument m_OutDoc;
|
||||
Stack m_IfStack;
|
||||
Hashtable m_Variables;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Preprocessor"/> class.
|
||||
/// </summary>
|
||||
public Preprocessor()
|
||||
{
|
||||
m_OutDoc = new XmlDocument();
|
||||
m_IfStack = new Stack();
|
||||
m_Variables = new Hashtable();
|
||||
|
||||
RegisterVariable("OS", GetOS());
|
||||
RegisterVariable("RuntimeVersion", Environment.Version.Major);
|
||||
RegisterVariable("RuntimeMajor", Environment.Version.Major);
|
||||
RegisterVariable("RuntimeMinor", Environment.Version.Minor);
|
||||
RegisterVariable("RuntimeRevision", Environment.Version.Revision);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the processed doc.
|
||||
/// </summary>
|
||||
/// <value>The processed doc.</value>
|
||||
public XmlDocument ProcessedDoc
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_OutDoc;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
/// <summary>
|
||||
/// Parts of this code were taken from NAnt and is subject to the GPL
|
||||
/// as per NAnt's license. Thanks to the NAnt guys for this little gem.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string GetOS()
|
||||
{
|
||||
PlatformID platId = Environment.OSVersion.Platform;
|
||||
if(platId == PlatformID.Win32NT || platId == PlatformID.Win32Windows)
|
||||
{
|
||||
return "Win32";
|
||||
}
|
||||
|
||||
/*
|
||||
* .NET 1.x, under Mono, the UNIX code is 128. Under
|
||||
* .NET 2.x, Mono or MS, the UNIX code is 4
|
||||
*/
|
||||
if(Environment.Version.Major == 1)
|
||||
{
|
||||
if((int)platId == 128)
|
||||
{
|
||||
return "UNIX";
|
||||
}
|
||||
}
|
||||
else if((int)platId == 4)
|
||||
{
|
||||
return "UNIX";
|
||||
}
|
||||
|
||||
return "Unknown";
|
||||
}
|
||||
|
||||
private static bool CompareNum(OperatorSymbol oper, int val1, int val2)
|
||||
{
|
||||
switch(oper)
|
||||
{
|
||||
case OperatorSymbol.Equal:
|
||||
return (val1 == val2);
|
||||
case OperatorSymbol.NotEqual:
|
||||
return (val1 != val2);
|
||||
case OperatorSymbol.LessThan:
|
||||
return (val1 < val2);
|
||||
case OperatorSymbol.LessThanEqual:
|
||||
return (val1 <= val2);
|
||||
case OperatorSymbol.GreaterThan:
|
||||
return (val1 > val2);
|
||||
case OperatorSymbol.GreaterThanEqual:
|
||||
return (val1 >= val2);
|
||||
}
|
||||
|
||||
throw new WarningException("Unknown operator type");
|
||||
}
|
||||
|
||||
private static bool CompareStr(OperatorSymbol oper, string val1, string val2)
|
||||
{
|
||||
switch(oper)
|
||||
{
|
||||
case OperatorSymbol.Equal:
|
||||
return (val1 == val2);
|
||||
case OperatorSymbol.NotEqual:
|
||||
return (val1 != val2);
|
||||
case OperatorSymbol.LessThan:
|
||||
return (val1.CompareTo(val2) < 0);
|
||||
case OperatorSymbol.LessThanEqual:
|
||||
return (val1.CompareTo(val2) <= 0);
|
||||
case OperatorSymbol.GreaterThan:
|
||||
return (val1.CompareTo(val2) > 0);
|
||||
case OperatorSymbol.GreaterThanEqual:
|
||||
return (val1.CompareTo(val2) >= 0);
|
||||
}
|
||||
|
||||
throw new WarningException("Unknown operator type");
|
||||
}
|
||||
|
||||
private static char NextChar(int idx, string str)
|
||||
{
|
||||
if((idx + 1) >= str.Length)
|
||||
{
|
||||
return Char.MaxValue;
|
||||
}
|
||||
|
||||
return str[idx + 1];
|
||||
}
|
||||
// Very very simple expression parser. Can only match expressions of the form
|
||||
// <var> <op> <value>:
|
||||
// OS = Windows
|
||||
// OS != Linux
|
||||
// RuntimeMinor > 0
|
||||
private bool ParseExpression(string exp)
|
||||
{
|
||||
if(exp == null)
|
||||
{
|
||||
throw new ArgumentException("Invalid expression, cannot be null");
|
||||
}
|
||||
|
||||
exp = exp.Trim();
|
||||
if(exp.Length < 1)
|
||||
{
|
||||
throw new ArgumentException("Invalid expression, cannot be 0 length");
|
||||
}
|
||||
|
||||
string id = "";
|
||||
string str = "";
|
||||
OperatorSymbol oper = OperatorSymbol.None;
|
||||
bool inStr = false;
|
||||
char c;
|
||||
|
||||
for(int i = 0; i < exp.Length; i++)
|
||||
{
|
||||
c = exp[i];
|
||||
if(Char.IsWhiteSpace(c))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if(Char.IsLetterOrDigit(c) || c == '_')
|
||||
{
|
||||
if(inStr)
|
||||
{
|
||||
str += c;
|
||||
}
|
||||
else
|
||||
{
|
||||
id += c;
|
||||
}
|
||||
}
|
||||
else if(c == '\"')
|
||||
{
|
||||
inStr = !inStr;
|
||||
if(inStr)
|
||||
{
|
||||
str = "";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(inStr)
|
||||
{
|
||||
str += c;
|
||||
}
|
||||
else
|
||||
{
|
||||
switch(c)
|
||||
{
|
||||
case '=':
|
||||
oper = OperatorSymbol.Equal;
|
||||
break;
|
||||
|
||||
case '!':
|
||||
if(NextChar(i, exp) == '=')
|
||||
{
|
||||
oper = OperatorSymbol.NotEqual;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case '<':
|
||||
if(NextChar(i, exp) == '=')
|
||||
{
|
||||
oper = OperatorSymbol.LessThanEqual;
|
||||
}
|
||||
else
|
||||
{
|
||||
oper = OperatorSymbol.LessThan;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case '>':
|
||||
if(NextChar(i, exp) == '=')
|
||||
{
|
||||
oper = OperatorSymbol.GreaterThanEqual;
|
||||
}
|
||||
else
|
||||
{
|
||||
oper = OperatorSymbol.GreaterThan;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(inStr)
|
||||
{
|
||||
throw new WarningException("Expected end of string in expression");
|
||||
}
|
||||
|
||||
if(oper == OperatorSymbol.None)
|
||||
{
|
||||
throw new WarningException("Expected operator in expression");
|
||||
}
|
||||
else if(id.Length < 1)
|
||||
{
|
||||
throw new WarningException("Expected identifier in expression");
|
||||
}
|
||||
else if(str.Length < 1)
|
||||
{
|
||||
throw new WarningException("Expected value in expression");
|
||||
}
|
||||
|
||||
bool ret = false;
|
||||
try
|
||||
{
|
||||
object val = m_Variables[id.ToLower()];
|
||||
if(val == null)
|
||||
{
|
||||
throw new WarningException("Unknown identifier '{0}'", id);
|
||||
}
|
||||
|
||||
int numVal, numVal2;
|
||||
string strVal, strVal2;
|
||||
Type t = val.GetType();
|
||||
if(t.IsAssignableFrom(typeof(int)))
|
||||
{
|
||||
numVal = (int)val;
|
||||
numVal2 = Int32.Parse(str);
|
||||
ret = CompareNum(oper, numVal, numVal2);
|
||||
}
|
||||
else
|
||||
{
|
||||
strVal = val.ToString();
|
||||
strVal2 = str;
|
||||
ret = CompareStr(oper, strVal, strVal2);
|
||||
}
|
||||
}
|
||||
catch(ArgumentException ex)
|
||||
{
|
||||
ex.ToString();
|
||||
throw new WarningException("Invalid value type for system variable '{0}', expected int", id);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="variableValue"></param>
|
||||
public void RegisterVariable(string name, object variableValue)
|
||||
{
|
||||
if(name == null || variableValue == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
m_Variables[name.ToLower()] = variableValue;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs validation on the xml source as well as evaluates conditional and flow expresions
|
||||
/// </summary>
|
||||
/// <exception cref="ArgumentException">For invalid use of conditional expressions or for invalid XML syntax. If a XmlValidatingReader is passed, then will also throw exceptions for non-schema-conforming xml</exception>
|
||||
/// <param name="reader"></param>
|
||||
/// <returns>the output xml </returns>
|
||||
public string Process(XmlReader reader)
|
||||
{
|
||||
if(reader == null)
|
||||
{
|
||||
throw new ArgumentException("Invalid XML reader to pre-process");
|
||||
}
|
||||
|
||||
IfContext context = new IfContext(true, true, IfState.None);
|
||||
StringWriter xmlText = new StringWriter();
|
||||
XmlTextWriter writer = new XmlTextWriter(xmlText);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
while(reader.Read())
|
||||
{
|
||||
if(reader.NodeType == XmlNodeType.ProcessingInstruction)
|
||||
{
|
||||
bool ignore = false;
|
||||
switch(reader.LocalName)
|
||||
{
|
||||
case "if":
|
||||
m_IfStack.Push(context);
|
||||
context = new IfContext(context.Keep & context.Active, ParseExpression(reader.Value), IfState.If);
|
||||
ignore = true;
|
||||
break;
|
||||
|
||||
case "elseif":
|
||||
if(m_IfStack.Count == 0)
|
||||
{
|
||||
throw new WarningException("Unexpected 'elseif' outside of 'if'");
|
||||
}
|
||||
else if(context.State != IfState.If && context.State != IfState.ElseIf)
|
||||
{
|
||||
throw new WarningException("Unexpected 'elseif' outside of 'if'");
|
||||
}
|
||||
|
||||
context.State = IfState.ElseIf;
|
||||
if(!context.EverKept)
|
||||
{
|
||||
context.Keep = ParseExpression(reader.Value);
|
||||
}
|
||||
else
|
||||
{
|
||||
context.Keep = false;
|
||||
}
|
||||
|
||||
ignore = true;
|
||||
break;
|
||||
|
||||
case "else":
|
||||
if(m_IfStack.Count == 0)
|
||||
{
|
||||
throw new WarningException("Unexpected 'else' outside of 'if'");
|
||||
}
|
||||
else if(context.State != IfState.If && context.State != IfState.ElseIf)
|
||||
{
|
||||
throw new WarningException("Unexpected 'else' outside of 'if'");
|
||||
}
|
||||
|
||||
context.State = IfState.Else;
|
||||
context.Keep = !context.EverKept;
|
||||
ignore = true;
|
||||
break;
|
||||
|
||||
case "endif":
|
||||
if(m_IfStack.Count == 0)
|
||||
{
|
||||
throw new WarningException("Unexpected 'endif' outside of 'if'");
|
||||
}
|
||||
|
||||
context = (IfContext)m_IfStack.Pop();
|
||||
ignore = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if(ignore)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}//end pre-proc instruction
|
||||
|
||||
if(!context.Active || !context.Keep)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
switch(reader.NodeType)
|
||||
{
|
||||
case XmlNodeType.Element:
|
||||
bool empty = reader.IsEmptyElement;
|
||||
writer.WriteStartElement(reader.Name);
|
||||
|
||||
while (reader.MoveToNextAttribute())
|
||||
{
|
||||
writer.WriteAttributeString(reader.Name, reader.Value);
|
||||
}
|
||||
|
||||
if(empty)
|
||||
{
|
||||
writer.WriteEndElement();
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case XmlNodeType.EndElement:
|
||||
writer.WriteEndElement();
|
||||
break;
|
||||
|
||||
case XmlNodeType.Text:
|
||||
writer.WriteString(reader.Value);
|
||||
break;
|
||||
|
||||
case XmlNodeType.CDATA:
|
||||
writer.WriteCData(reader.Value);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(m_IfStack.Count != 0)
|
||||
{
|
||||
throw new WarningException("Mismatched 'if', 'endif' pair");
|
||||
}
|
||||
|
||||
return xmlText.ToString();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,926 @@
|
|||
#region BSD License
|
||||
/*
|
||||
|
||||
Copyright (c) 2004 - 2006
|
||||
Matthew Holmes (matthew@wildfiregames.com),
|
||||
Dan Moorehead (dan05a@gmail.com),
|
||||
Dave Hudson (jendave@yahoo.com),
|
||||
C.J. Adams-Collier (cjcollier@colliertech.org),
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
* The name of the author may not be used to endorse or promote
|
||||
products derived from this software without specific prior written
|
||||
permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-07-28 22:43:24 -0700 (Fri, 28 Jul 2006) $
|
||||
* $Revision: 136 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Nodes;
|
||||
using Prebuild.Core.Parse;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Targets
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Target("autotools")]
|
||||
public class AutotoolsTarget : ITarget
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private Kernel m_Kernel;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private static string PrependPath(string path)
|
||||
{
|
||||
string tmpPath = Helper.NormalizePath(path, '/');
|
||||
Regex regex = new Regex(@"(\w):/(\w+)");
|
||||
Match match = regex.Match(tmpPath);
|
||||
if(match.Success || tmpPath[0] == '.' || tmpPath[0] == '/')
|
||||
{
|
||||
tmpPath = Helper.NormalizePath(tmpPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
tmpPath = Helper.NormalizePath("./" + tmpPath);
|
||||
}
|
||||
|
||||
return tmpPath;
|
||||
}
|
||||
|
||||
private static string BuildReference(SolutionNode solution, ReferenceNode refr)
|
||||
{
|
||||
string ret = "";
|
||||
if(solution.ProjectsTable.ContainsKey(refr.Name))
|
||||
{
|
||||
ProjectNode project = (ProjectNode)solution.ProjectsTable[refr.Name];
|
||||
string fileRef = FindFileReference(refr.Name, project);
|
||||
string finalPath = Helper.NormalizePath(Helper.MakeFilePath(project.FullPath + "/$(BUILD_DIR)/$(CONFIG)/", refr.Name, "dll"), '/');
|
||||
ret += finalPath;
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
ProjectNode project = (ProjectNode)refr.Parent;
|
||||
string fileRef = FindFileReference(refr.Name, project);
|
||||
|
||||
if(refr.Path != null || fileRef != null)
|
||||
{
|
||||
string finalPath = (refr.Path != null) ? Helper.NormalizePath(refr.Path + "/" + refr.Name + ".dll", '/') : fileRef;
|
||||
ret += Path.Combine(project.Path, finalPath);
|
||||
return ret;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
//Assembly assem = Assembly.Load(refr.Name);
|
||||
//if (assem != null)
|
||||
//{
|
||||
// int index = refr.Name.IndexOf(",");
|
||||
// if ( index > 0)
|
||||
// {
|
||||
// ret += assem.Location;
|
||||
// //Console.WriteLine("Location1: " + assem.Location);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// ret += (refr.Name + ".dll");
|
||||
// //Console.WriteLine("Location2: " + assem.Location);
|
||||
// }
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
int index = refr.Name.IndexOf(",");
|
||||
if ( index > 0)
|
||||
{
|
||||
ret += refr.Name.Substring(0, index) + ".dll";
|
||||
//Console.WriteLine("Location3: " + assem.Location);
|
||||
}
|
||||
else
|
||||
{
|
||||
ret += (refr.Name + ".dll");
|
||||
//Console.WriteLine("Location4: " + assem.Location);
|
||||
}
|
||||
//}
|
||||
}
|
||||
catch (System.NullReferenceException e)
|
||||
{
|
||||
e.ToString();
|
||||
int index = refr.Name.IndexOf(",");
|
||||
if ( index > 0)
|
||||
{
|
||||
ret += refr.Name.Substring(0, index) + ".dll";
|
||||
//Console.WriteLine("Location5: " + assem.Location);
|
||||
}
|
||||
else
|
||||
{
|
||||
ret += (refr.Name + ".dll");
|
||||
//Console.WriteLine("Location6: " + assem.Location);
|
||||
}
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
private static string BuildReferencePath(SolutionNode solution, ReferenceNode refr)
|
||||
{
|
||||
string ret = "";
|
||||
if(solution.ProjectsTable.ContainsKey(refr.Name))
|
||||
{
|
||||
ProjectNode project = (ProjectNode)solution.ProjectsTable[refr.Name];
|
||||
string finalPath = Helper.NormalizePath(Helper.MakeReferencePath(project.FullPath + "/${build.dir}/"), '/');
|
||||
ret += finalPath;
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
ProjectNode project = (ProjectNode)refr.Parent;
|
||||
string fileRef = FindFileReference(refr.Name, project);
|
||||
|
||||
|
||||
if(refr.Path != null || fileRef != null)
|
||||
{
|
||||
string finalPath = (refr.Path != null) ? Helper.NormalizePath(refr.Path, '/') : fileRef;
|
||||
ret += finalPath;
|
||||
return ret;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
Assembly assem = Assembly.Load(refr.Name);
|
||||
if (assem != null)
|
||||
{
|
||||
ret += "";
|
||||
}
|
||||
else
|
||||
{
|
||||
ret += "";
|
||||
}
|
||||
}
|
||||
catch (System.NullReferenceException e)
|
||||
{
|
||||
e.ToString();
|
||||
ret += "";
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
private static string FindFileReference(string refName, ProjectNode project)
|
||||
{
|
||||
foreach(ReferencePathNode refPath in project.ReferencePaths)
|
||||
{
|
||||
string fullPath = Helper.MakeFilePath(refPath.Path, refName, "dll");
|
||||
|
||||
if(File.Exists(fullPath))
|
||||
{
|
||||
return fullPath;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the XML doc file.
|
||||
/// </summary>
|
||||
/// <param name="project">The project.</param>
|
||||
/// <param name="conf">The conf.</param>
|
||||
/// <returns></returns>
|
||||
public static string GetXmlDocFile(ProjectNode project, ConfigurationNode conf)
|
||||
{
|
||||
if( conf == null )
|
||||
{
|
||||
throw new ArgumentNullException("conf");
|
||||
}
|
||||
if( project == null )
|
||||
{
|
||||
throw new ArgumentNullException("project");
|
||||
}
|
||||
string docFile = (string)conf.Options["XmlDocFile"];
|
||||
// if(docFile != null && docFile.Length == 0)//default to assembly name if not specified
|
||||
// {
|
||||
// return Path.GetFileNameWithoutExtension(project.AssemblyName) + ".xml";
|
||||
// }
|
||||
return docFile;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Normalizes the path.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
/// <returns></returns>
|
||||
public static string NormalizePath(string path)
|
||||
{
|
||||
if(path == null)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
StringBuilder tmpPath;
|
||||
|
||||
if (Core.Parse.Preprocessor.GetOS() == "Win32")
|
||||
{
|
||||
tmpPath = new StringBuilder(path.Replace('\\', '/'));
|
||||
tmpPath.Replace("/", @"\\");
|
||||
}
|
||||
else
|
||||
{
|
||||
tmpPath = new StringBuilder(path.Replace('\\', '/'));
|
||||
tmpPath = tmpPath.Replace('/', Path.DirectorySeparatorChar);
|
||||
}
|
||||
return tmpPath.ToString();
|
||||
}
|
||||
|
||||
private void WriteProject(SolutionNode solution, ProjectNode project)
|
||||
{
|
||||
string projFile = Helper.MakeFilePath(project.FullPath, "Include", "am");
|
||||
StreamWriter ss = new StreamWriter(projFile);
|
||||
ss.NewLine = "\n";
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Push();
|
||||
Helper.SetCurrentDir(Path.GetDirectoryName(projFile));
|
||||
|
||||
using(ss)
|
||||
{
|
||||
ss.WriteLine(Helper.AssemblyFullName(project.AssemblyName, project.Type) + ":");
|
||||
ss.WriteLine("\tmkdir -p " + Helper.MakePathRelativeTo(solution.FullPath, project.Path) + "/$(BUILD_DIR)/$(CONFIG)/");
|
||||
foreach(string file in project.Files)
|
||||
{
|
||||
if (project.Files.GetSubType(file) != SubType.Code && project.Files.GetSubType(file) != SubType.Settings)
|
||||
{
|
||||
ss.Write("\tresgen ");
|
||||
ss.Write(Helper.NormalizePath(Path.Combine(project.Path, file.Substring(0, file.LastIndexOf('.')) + ".resx "), '/'));
|
||||
if (project.Files.GetResourceName(file) != "")
|
||||
{
|
||||
ss.WriteLine(Helper.NormalizePath(Path.Combine(project.Path, project.RootNamespace + "." + project.Files.GetResourceName(file) + ".resources"), '/'));
|
||||
}
|
||||
else
|
||||
{
|
||||
ss.WriteLine(Helper.NormalizePath(Path.Combine(project.Path, project.RootNamespace + "." + file.Substring(0, file.LastIndexOf('.')) + ".resources"), '/'));
|
||||
}
|
||||
}
|
||||
}
|
||||
ss.WriteLine("\t$(CSC)\t/out:" + Helper.MakePathRelativeTo(solution.FullPath, project.Path) + "/$(BUILD_DIR)/$(CONFIG)/" + Helper.AssemblyFullName(project.AssemblyName, project.Type) + " \\");
|
||||
ss.WriteLine("\t\t/target:" + project.Type.ToString().ToLower() + " \\");
|
||||
if (project.References.Count > 0)
|
||||
{
|
||||
ss.Write("\t\t/reference:");
|
||||
bool firstref = true;
|
||||
foreach(ReferenceNode refr in project.References)
|
||||
{
|
||||
if (firstref)
|
||||
{
|
||||
firstref = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
ss.Write(",");
|
||||
}
|
||||
ss.Write("{0}", Helper.NormalizePath(Helper.MakePathRelativeTo(solution.FullPath, BuildReference(solution, refr)), '/'));
|
||||
}
|
||||
ss.WriteLine(" \\");
|
||||
}
|
||||
//ss.WriteLine("\t\tProperties/AssemblyInfo.cs \\");
|
||||
|
||||
foreach(string file in project.Files)
|
||||
{
|
||||
switch(project.Files.GetBuildAction(file))
|
||||
{
|
||||
case BuildAction.EmbeddedResource:
|
||||
ss.Write("\t\t/resource:");
|
||||
ss.WriteLine(Helper.NormalizePath(Path.Combine(project.Path, file), '/') + " \\");
|
||||
break;
|
||||
default:
|
||||
if (project.Files.GetSubType(file) != SubType.Code && project.Files.GetSubType(file) != SubType.Settings)
|
||||
{
|
||||
ss.Write("\t\t/resource:");
|
||||
if (project.Files.GetResourceName(file) != "")
|
||||
{
|
||||
ss.WriteLine(Helper.NormalizePath(Path.Combine(project.Path, project.RootNamespace + "." + project.Files.GetResourceName(file) + ".resources"), '/') + "," + project.RootNamespace + "." + project.Files.GetResourceName(file) + ".resources" + " \\");
|
||||
}
|
||||
else
|
||||
{
|
||||
ss.WriteLine(Helper.NormalizePath(Path.Combine(project.Path, project.RootNamespace + "." + file.Substring(0, file.LastIndexOf('.')) + ".resources"), '/') + "," + project.RootNamespace + "." + file.Substring(0, file.LastIndexOf('.')) + ".resources" + " \\");
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
foreach(ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
if (conf.Options.KeyFile !="")
|
||||
{
|
||||
ss.WriteLine("\t\t/keyfile:" + Helper.NormalizePath(Path.Combine(project.Path, conf.Options.KeyFile), '/') + " \\");
|
||||
break;
|
||||
}
|
||||
}
|
||||
foreach(ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
if (conf.Options.AllowUnsafe)
|
||||
{
|
||||
ss.WriteLine("\t\t/unsafe \\");
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (project.AppIcon != "")
|
||||
{
|
||||
ss.WriteLine("\t\t/win32icon:" + Helper.NormalizePath(Path.Combine(project.Path, project.AppIcon), '/') + " \\");
|
||||
}
|
||||
|
||||
foreach(ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
ss.WriteLine("\t\t/define:{0}", conf.Options.CompilerDefines.Replace(';', ',') + " \\");
|
||||
break;
|
||||
}
|
||||
|
||||
foreach(ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
if (GetXmlDocFile(project, conf) !="")
|
||||
{
|
||||
ss.WriteLine("\t\t/doc:" + Helper.MakePathRelativeTo(solution.FullPath, project.Path) + "/$(BUILD_DIR)/$(CONFIG)/" + project.Name + ".xml \\");
|
||||
break;
|
||||
}
|
||||
}
|
||||
foreach(string file in project.Files)
|
||||
{
|
||||
switch(project.Files.GetBuildAction(file))
|
||||
{
|
||||
case BuildAction.Compile:
|
||||
ss.WriteLine("\t\t\\");
|
||||
ss.Write("\t\t" + NormalizePath(Path.Combine(Helper.MakePathRelativeTo(solution.FullPath, project.Path), file)));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
ss.WriteLine();
|
||||
ss.WriteLine();
|
||||
|
||||
if (project.Type == ProjectType.Library)
|
||||
{
|
||||
ss.WriteLine("install-data-local:");
|
||||
ss.WriteLine(" echo \"$(GACUTIL) /i bin/Release/" + project.Name + ".dll /f $(GACUTIL_FLAGS)\"; \\");
|
||||
ss.WriteLine(" $(GACUTIL) /i bin/Release/" + project.Name + ".dll /f $(GACUTIL_FLAGS) || exit 1;");
|
||||
ss.WriteLine();
|
||||
ss.WriteLine("uninstall-local:");
|
||||
ss.WriteLine(" echo \"$(GACUTIL) /u " + project.Name + " $(GACUTIL_FLAGS)\"; \\");
|
||||
ss.WriteLine(" $(GACUTIL) /u " + project.Name + " $(GACUTIL_FLAGS) || exit 1;");
|
||||
ss.WriteLine();
|
||||
}
|
||||
ss.WriteLine("CLEANFILES = $(BUILD_DIR)/$(CONFIG)/" + Helper.AssemblyFullName(project.AssemblyName, project.Type) + " $(BUILD_DIR)/$(CONFIG)/" + project.AssemblyName + ".mdb $(BUILD_DIR)/$(CONFIG)/" + project.AssemblyName + ".pdb " + project.AssemblyName + ".xml");
|
||||
ss.WriteLine("EXTRA_DIST = \\");
|
||||
ss.Write(" $(FILES)");
|
||||
foreach(ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
if (conf.Options.KeyFile != "")
|
||||
{
|
||||
ss.Write(" \\");
|
||||
ss.WriteLine("\t" + conf.Options.KeyFile);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
m_Kernel.CurrentWorkingDirectory.Pop();
|
||||
}
|
||||
bool hasLibrary = false;
|
||||
|
||||
private void WriteCombine(SolutionNode solution)
|
||||
{
|
||||
|
||||
/* TODO: These vars should be pulled from the prebuild.xml file */
|
||||
string releaseVersion = "2.0.0";
|
||||
string assemblyVersion = "2.1.0.0";
|
||||
string description =
|
||||
"Tao Framework " + solution.Name + " Binding For .NET";
|
||||
|
||||
hasLibrary = false;
|
||||
m_Kernel.Log.Write("Creating Autotools make files");
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
if(m_Kernel.AllowProject(project.FilterGroups))
|
||||
{
|
||||
m_Kernel.Log.Write("...Creating makefile: {0}", project.Name);
|
||||
WriteProject(solution, project);
|
||||
}
|
||||
}
|
||||
|
||||
m_Kernel.Log.Write("");
|
||||
string combFile = Helper.MakeFilePath(solution.FullPath, "Makefile", "am");
|
||||
StreamWriter ss = new StreamWriter(combFile);
|
||||
ss.NewLine = "\n";
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Push();
|
||||
Helper.SetCurrentDir(Path.GetDirectoryName(combFile));
|
||||
|
||||
using(ss)
|
||||
{
|
||||
foreach(ProjectNode project in solution.ProjectsTableOrder)
|
||||
{
|
||||
if (project.Type == ProjectType.Library)
|
||||
{
|
||||
hasLibrary = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (hasLibrary)
|
||||
{
|
||||
ss.Write("pkgconfig_in_files = ");
|
||||
foreach(ProjectNode project in solution.ProjectsTableOrder)
|
||||
{
|
||||
if (project.Type == ProjectType.Library)
|
||||
{
|
||||
string combFilepc = Helper.MakeFilePath(solution.FullPath, project.Name, "pc.in");
|
||||
ss.Write(" " + project.Name + ".pc.in ");
|
||||
StreamWriter sspc = new StreamWriter(combFilepc);
|
||||
sspc.NewLine = "\n";
|
||||
using(sspc)
|
||||
{
|
||||
sspc.WriteLine("prefix=@prefix@");
|
||||
sspc.WriteLine("exec_prefix=${prefix}");
|
||||
sspc.WriteLine("libdir=${exec_prefix}/lib");
|
||||
sspc.WriteLine();
|
||||
sspc.WriteLine("Name: @PACKAGE_NAME@");
|
||||
sspc.WriteLine("Description: @DESCRIPTION@");
|
||||
sspc.WriteLine("Version: @ASSEMBLY_VERSION@");
|
||||
sspc.WriteLine("Libs: -r:${libdir}/mono/gac/@PACKAGE_NAME@/@ASSEMBLY_VERSION@__@PUBKEY@/@PACKAGE_NAME@.dll");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ss.WriteLine();
|
||||
ss.WriteLine("pkgconfigdir=$(prefix)/lib/pkgconfig");
|
||||
ss.WriteLine("pkgconfig_DATA=$(pkgconfig_in_files:.pc.in=.pc)");
|
||||
}
|
||||
ss.WriteLine();
|
||||
foreach(ProjectNode project in solution.ProjectsTableOrder)
|
||||
{
|
||||
string path = Helper.MakePathRelativeTo(solution.FullPath, project.FullPath);
|
||||
ss.WriteLine("-include x {0}",
|
||||
Helper.NormalizePath(Helper.MakeFilePath(path, "Include", "am"),'/'));
|
||||
}
|
||||
ss.WriteLine();
|
||||
ss.WriteLine("all: \\");
|
||||
ss.Write("\t");
|
||||
foreach(ProjectNode project in solution.ProjectsTableOrder)
|
||||
{
|
||||
string path = Helper.MakePathRelativeTo(solution.FullPath, project.FullPath);
|
||||
ss.Write(Helper.AssemblyFullName(project.AssemblyName, project.Type) + " ");
|
||||
|
||||
}
|
||||
ss.WriteLine();
|
||||
if (hasLibrary)
|
||||
{
|
||||
ss.WriteLine("EXTRA_DIST = \\");
|
||||
ss.WriteLine("\t$(pkgconfig_in_files)");
|
||||
}
|
||||
else
|
||||
{
|
||||
ss.WriteLine("EXTRA_DIST = ");
|
||||
}
|
||||
ss.WriteLine();
|
||||
ss.WriteLine("DISTCLEANFILES = \\");
|
||||
ss.WriteLine("\tconfigure \\");
|
||||
ss.WriteLine("\tMakefile.in \\");
|
||||
ss.WriteLine("\taclocal.m4");
|
||||
}
|
||||
combFile = Helper.MakeFilePath(solution.FullPath, "configure", "ac");
|
||||
StreamWriter ts = new StreamWriter(combFile);
|
||||
ts.NewLine = "\n";
|
||||
using(ts)
|
||||
{
|
||||
if (this.hasLibrary)
|
||||
{
|
||||
foreach(ProjectNode project in solution.ProjectsTableOrder)
|
||||
{
|
||||
if (project.Type == ProjectType.Library)
|
||||
{
|
||||
ts.WriteLine("AC_INIT(" + project.Name + ".pc.in)");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ts.WriteLine("AC_INIT(Makefile.am)");
|
||||
}
|
||||
ts.WriteLine("AC_PREREQ(2.53)");
|
||||
ts.WriteLine("AC_CANONICAL_SYSTEM");
|
||||
|
||||
ts.WriteLine("PACKAGE_NAME={0}", solution.Name);
|
||||
ts.WriteLine("PACKAGE_VERSION={0}", releaseVersion);
|
||||
ts.WriteLine("DESCRIPTION=\"{0}\"", description);
|
||||
ts.WriteLine("AC_SUBST(DESCRIPTION)");
|
||||
ts.WriteLine("AM_INIT_AUTOMAKE([$PACKAGE_NAME],[$PACKAGE_VERSION],[$DESCRIPTION])");
|
||||
|
||||
ts.WriteLine("ASSEMBLY_VERSION={0}", assemblyVersion);
|
||||
ts.WriteLine("AC_SUBST(ASSEMBLY_VERSION)");
|
||||
|
||||
ts.WriteLine("PUBKEY=`sn -t $PACKAGE_NAME.snk | grep 'Public Key Token' | awk -F: '{print $2}' | sed -e 's/^ //'`");
|
||||
ts.WriteLine("AC_SUBST(PUBKEY)");
|
||||
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("AM_MAINTAINER_MODE");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("dnl AC_PROG_INTLTOOL([0.25])");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("AC_PROG_INSTALL");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("MONO_REQUIRED_VERSION=1.1");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("AC_MSG_CHECKING([whether we're compiling from CVS])");
|
||||
ts.WriteLine("if test -f \"$srcdir/.cvs_version\" ; then");
|
||||
ts.WriteLine(" from_cvs=yes");
|
||||
ts.WriteLine("else");
|
||||
ts.WriteLine(" if test -f \"$srcdir/.svn\" ; then");
|
||||
ts.WriteLine(" from_cvs=yes");
|
||||
ts.WriteLine(" else");
|
||||
ts.WriteLine(" from_cvs=no");
|
||||
ts.WriteLine(" fi");
|
||||
ts.WriteLine("fi");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("AC_MSG_RESULT($from_cvs)");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("AC_PATH_PROG(MONO, mono)");
|
||||
ts.WriteLine("AC_PATH_PROG(GMCS, gmcs)");
|
||||
ts.WriteLine("AC_PATH_PROG(GACUTIL, gacutil)");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("AC_MSG_CHECKING([for mono])");
|
||||
ts.WriteLine("dnl if test \"x$MONO\" = \"x\" ; then");
|
||||
ts.WriteLine("dnl AC_MSG_ERROR([Can't find \"mono\" in your PATH])");
|
||||
ts.WriteLine("dnl else");
|
||||
ts.WriteLine(" AC_MSG_RESULT([found])");
|
||||
ts.WriteLine("dnl fi");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("AC_MSG_CHECKING([for gmcs])");
|
||||
ts.WriteLine("dnl if test \"x$GMCS\" = \"x\" ; then");
|
||||
ts.WriteLine("dnl AC_MSG_ERROR([Can't find \"gmcs\" in your PATH])");
|
||||
ts.WriteLine("dnl else");
|
||||
ts.WriteLine(" AC_MSG_RESULT([found])");
|
||||
ts.WriteLine("dnl fi");
|
||||
ts.WriteLine();
|
||||
//ts.WriteLine("AC_MSG_CHECKING([for gacutil])");
|
||||
//ts.WriteLine("if test \"x$GACUTIL\" = \"x\" ; then");
|
||||
//ts.WriteLine(" AC_MSG_ERROR([Can't find \"gacutil\" in your PATH])");
|
||||
//ts.WriteLine("else");
|
||||
//ts.WriteLine(" AC_MSG_RESULT([found])");
|
||||
//ts.WriteLine("fi");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("AC_SUBST(PATH)");
|
||||
ts.WriteLine("AC_SUBST(LD_LIBRARY_PATH)");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("dnl CSFLAGS=\"-debug -nowarn:1574\"");
|
||||
ts.WriteLine("CSFLAGS=\"\"");
|
||||
ts.WriteLine("AC_SUBST(CSFLAGS)");
|
||||
ts.WriteLine();
|
||||
// ts.WriteLine("AC_MSG_CHECKING(--disable-sdl argument)");
|
||||
// ts.WriteLine("AC_ARG_ENABLE(sdl,");
|
||||
// ts.WriteLine(" [ --disable-sdl Disable Sdl interface.],");
|
||||
// ts.WriteLine(" [disable_sdl=$disableval],");
|
||||
// ts.WriteLine(" [disable_sdl=\"no\"])");
|
||||
// ts.WriteLine("AC_MSG_RESULT($disable_sdl)");
|
||||
// ts.WriteLine("if test \"$disable_sdl\" = \"yes\"; then");
|
||||
// ts.WriteLine(" AC_DEFINE(FEAT_SDL)");
|
||||
// ts.WriteLine("fi");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("dnl Find pkg-config");
|
||||
ts.WriteLine("AC_PATH_PROG(PKGCONFIG, pkg-config, no)");
|
||||
ts.WriteLine("if test \"x$PKG_CONFIG\" = \"xno\"; then");
|
||||
ts.WriteLine(" AC_MSG_ERROR([You need to install pkg-config])");
|
||||
ts.WriteLine("fi");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)");
|
||||
ts.WriteLine("BUILD_DIR=\"bin\"");
|
||||
ts.WriteLine("AC_SUBST(BUILD_DIR)");
|
||||
ts.WriteLine("CONFIG=\"Release\"");
|
||||
ts.WriteLine("AC_SUBST(CONFIG)");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("if test \"x$has_mono\" = \"xtrue\"; then");
|
||||
ts.WriteLine(" AC_PATH_PROG(RUNTIME, mono, no)");
|
||||
ts.WriteLine(" AC_PATH_PROG(CSC, gmcs, no)");
|
||||
ts.WriteLine(" if test `uname -s` = \"Darwin\"; then");
|
||||
ts.WriteLine(" LIB_PREFIX=");
|
||||
ts.WriteLine(" LIB_SUFFIX=.dylib");
|
||||
ts.WriteLine(" else");
|
||||
ts.WriteLine(" LIB_PREFIX=.so");
|
||||
ts.WriteLine(" LIB_SUFFIX=");
|
||||
ts.WriteLine(" fi");
|
||||
ts.WriteLine("else");
|
||||
ts.WriteLine(" AC_PATH_PROG(CSC, csc.exe, no)");
|
||||
ts.WriteLine(" if test x$CSC = \"xno\"; then");
|
||||
ts.WriteLine(" AC_MSG_ERROR([You need to install either mono or .Net])");
|
||||
ts.WriteLine(" else");
|
||||
ts.WriteLine(" RUNTIME=");
|
||||
ts.WriteLine(" LIB_PREFIX=");
|
||||
ts.WriteLine(" LIB_SUFFIX=.dylib");
|
||||
ts.WriteLine(" fi");
|
||||
ts.WriteLine("fi");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("AC_SUBST(LIB_PREFIX)");
|
||||
ts.WriteLine("AC_SUBST(LIB_SUFFIX)");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("AC_SUBST(BASE_DEPENDENCIES_CFLAGS)");
|
||||
ts.WriteLine("AC_SUBST(BASE_DEPENDENCIES_LIBS)");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("dnl Find monodoc");
|
||||
ts.WriteLine("MONODOC_REQUIRED_VERSION=1.0");
|
||||
ts.WriteLine("AC_SUBST(MONODOC_REQUIRED_VERSION)");
|
||||
ts.WriteLine("PKG_CHECK_MODULES(MONODOC_DEPENDENCY, monodoc >= $MONODOC_REQUIRED_VERSION, enable_monodoc=yes, enable_monodoc=no)");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("if test \"x$enable_monodoc\" = \"xyes\"; then");
|
||||
ts.WriteLine(" AC_PATH_PROG(MONODOC, monodoc, no)");
|
||||
ts.WriteLine(" if test x$MONODOC = xno; then");
|
||||
ts.WriteLine(" enable_monodoc=no");
|
||||
ts.WriteLine(" fi");
|
||||
ts.WriteLine("else");
|
||||
ts.WriteLine(" MONODOC=");
|
||||
ts.WriteLine("fi");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("AC_SUBST(MONODOC)");
|
||||
ts.WriteLine("AM_CONDITIONAL(ENABLE_MONODOC, test \"x$enable_monodoc\" = \"xyes\")");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("AC_PATH_PROG(GACUTIL, gacutil, no)");
|
||||
ts.WriteLine("if test \"x$GACUTIL\" = \"xno\" ; then");
|
||||
ts.WriteLine(" AC_MSG_ERROR([No gacutil tool found])");
|
||||
ts.WriteLine("fi");
|
||||
ts.WriteLine();
|
||||
// foreach(ProjectNode project in solution.ProjectsTableOrder)
|
||||
// {
|
||||
// if (project.Type == ProjectType.Library)
|
||||
// {
|
||||
// }
|
||||
// }
|
||||
ts.WriteLine("GACUTIL_FLAGS='/package $(PACKAGE_NAME) /gacdir $(DESTDIR)$(prefix)'");
|
||||
ts.WriteLine("AC_SUBST(GACUTIL_FLAGS)");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("winbuild=no");
|
||||
ts.WriteLine("case \"$host\" in");
|
||||
ts.WriteLine(" *-*-mingw*|*-*-cygwin*)");
|
||||
ts.WriteLine(" winbuild=yes");
|
||||
ts.WriteLine(" ;;");
|
||||
ts.WriteLine("esac");
|
||||
ts.WriteLine("AM_CONDITIONAL(WINBUILD, test x$winbuild = xyes)");
|
||||
ts.WriteLine();
|
||||
// ts.WriteLine("dnl Check for SDL");
|
||||
// ts.WriteLine();
|
||||
// ts.WriteLine("AC_PATH_PROG([SDL_CONFIG], [sdl-config])");
|
||||
// ts.WriteLine("have_sdl=no");
|
||||
// ts.WriteLine("if test -n \"${SDL_CONFIG}\"; then");
|
||||
// ts.WriteLine(" have_sdl=yes");
|
||||
// ts.WriteLine(" SDL_CFLAGS=`$SDL_CONFIG --cflags`");
|
||||
// ts.WriteLine(" SDL_LIBS=`$SDL_CONFIG --libs`");
|
||||
// ts.WriteLine(" #");
|
||||
// ts.WriteLine(" # sdl-config sometimes emits an rpath flag pointing at its library");
|
||||
// ts.WriteLine(" # installation directory. We don't want this, as it prevents users from");
|
||||
// ts.WriteLine(" # linking sdl-viewer against, for example, a locally compiled libGL when a");
|
||||
// ts.WriteLine(" # version of the library also exists in SDL's library installation");
|
||||
// ts.WriteLine(" # directory, typically /usr/lib.");
|
||||
// ts.WriteLine(" #");
|
||||
// ts.WriteLine(" SDL_LIBS=`echo $SDL_LIBS | sed 's/-Wl,-rpath,[[^ ]]* //'`");
|
||||
// ts.WriteLine("fi");
|
||||
// ts.WriteLine("AC_SUBST([SDL_CFLAGS])");
|
||||
// ts.WriteLine("AC_SUBST([SDL_LIBS])");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("AC_OUTPUT([");
|
||||
ts.WriteLine("Makefile");
|
||||
// TODO: this does not work quite right.
|
||||
//ts.WriteLine("Properties/AssemblyInfo.cs");
|
||||
foreach(ProjectNode project in solution.ProjectsTableOrder)
|
||||
{
|
||||
if (project.Type == ProjectType.Library)
|
||||
{
|
||||
ts.WriteLine(project.Name + ".pc");
|
||||
}
|
||||
// string path = Helper.MakePathRelativeTo(solution.FullPath, project.FullPath);
|
||||
// ts.WriteLine(Helper.NormalizePath(Helper.MakeFilePath(path, "Include"),'/'));
|
||||
}
|
||||
ts.WriteLine("])");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("#po/Makefile.in");
|
||||
ts.WriteLine();
|
||||
ts.WriteLine("echo \"---\"");
|
||||
ts.WriteLine("echo \"Configuration summary\"");
|
||||
ts.WriteLine("echo \"\"");
|
||||
ts.WriteLine("echo \" * Installation prefix: $prefix\"");
|
||||
ts.WriteLine("echo \" * compiler: $CSC\"");
|
||||
ts.WriteLine("echo \" * Documentation: $enable_monodoc ($MONODOC)\"");
|
||||
ts.WriteLine("echo \" * Package Name: $PACKAGE_NAME\"");
|
||||
ts.WriteLine("echo \" * Version: $PACKAGE_VERSION\"");
|
||||
ts.WriteLine("echo \" * Public Key: $PUBKEY\"");
|
||||
ts.WriteLine("echo \"\"");
|
||||
ts.WriteLine("echo \"---\"");
|
||||
ts.WriteLine();
|
||||
}
|
||||
|
||||
ts.NewLine = "\n";
|
||||
foreach (ProjectNode project in solution.ProjectsTableOrder)
|
||||
{
|
||||
if (project.GenerateAssemblyInfoFile)
|
||||
{
|
||||
GenerateAssemblyInfoFile(solution, combFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static void GenerateAssemblyInfoFile(SolutionNode solution, string combFile)
|
||||
{
|
||||
System.IO.Directory.CreateDirectory(Helper.MakePathRelativeTo(solution.FullPath, "Properties"));
|
||||
combFile = Helper.MakeFilePath(solution.FullPath + "/Properties/", "AssemblyInfo.cs", "in");
|
||||
StreamWriter ai = new StreamWriter(combFile);
|
||||
|
||||
using (ai)
|
||||
{
|
||||
ai.WriteLine("#region License");
|
||||
ai.WriteLine("/*");
|
||||
ai.WriteLine("MIT License");
|
||||
ai.WriteLine("Copyright (c)2003-2006 Tao Framework Team");
|
||||
ai.WriteLine("http://www.taoframework.com");
|
||||
ai.WriteLine("All rights reserved.");
|
||||
ai.WriteLine("");
|
||||
ai.WriteLine("Permission is hereby granted, free of charge, to any person obtaining a copy");
|
||||
ai.WriteLine("of this software and associated documentation files (the \"Software\"), to deal");
|
||||
ai.WriteLine("in the Software without restriction, including without limitation the rights");
|
||||
ai.WriteLine("to use, copy, modify, merge, publish, distribute, sublicense, and/or sell");
|
||||
ai.WriteLine("copies of the Software, and to permit persons to whom the Software is");
|
||||
ai.WriteLine("furnished to do so, subject to the following conditions:");
|
||||
ai.WriteLine("");
|
||||
ai.WriteLine("The above copyright notice and this permission notice shall be included in all");
|
||||
ai.WriteLine("copies or substantial portions of the Software.");
|
||||
ai.WriteLine("");
|
||||
ai.WriteLine("THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR");
|
||||
ai.WriteLine("IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,");
|
||||
ai.WriteLine("FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE");
|
||||
ai.WriteLine("AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER");
|
||||
ai.WriteLine("LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,");
|
||||
ai.WriteLine("OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE");
|
||||
ai.WriteLine("SOFTWARE.");
|
||||
ai.WriteLine("*/");
|
||||
ai.WriteLine("#endregion License");
|
||||
ai.WriteLine("");
|
||||
ai.WriteLine("using System;");
|
||||
ai.WriteLine("using System.Reflection;");
|
||||
ai.WriteLine("using System.Runtime.InteropServices;");
|
||||
ai.WriteLine("using System.Security;");
|
||||
ai.WriteLine("using System.Security.Permissions;");
|
||||
ai.WriteLine("");
|
||||
ai.WriteLine("[assembly: AllowPartiallyTrustedCallers]");
|
||||
ai.WriteLine("[assembly: AssemblyCompany(\"Tao Framework -- http://www.taoframework.com\")]");
|
||||
ai.WriteLine("[assembly: AssemblyConfiguration(\"Retail\")]");
|
||||
ai.WriteLine("[assembly: AssemblyCopyright(\"Copyright (c)2003-2006 Tao Framework Team. All rights reserved.\")]");
|
||||
ai.WriteLine("[assembly: AssemblyCulture(\"\")]");
|
||||
ai.WriteLine("[assembly: AssemblyDefaultAlias(\"@PACKAGE_NAME@\")]");
|
||||
ai.WriteLine("[assembly: AssemblyDelaySign(false)]");
|
||||
ai.WriteLine("[assembly: AssemblyDescription(\"@DESCRIPTION@\")]");
|
||||
ai.WriteLine("[assembly: AssemblyFileVersion(\"@ASSEMBLY_VERSION@\")]");
|
||||
ai.WriteLine("[assembly: AssemblyInformationalVersion(\"@ASSEMBLY_VERSION@\")]");
|
||||
ai.WriteLine("[assembly: AssemblyKeyName(\"\")]");
|
||||
ai.WriteLine("[assembly: AssemblyProduct(\"@PACKAGE_NAME@.dll\")]");
|
||||
ai.WriteLine("[assembly: AssemblyTitle(\"@DESCRIPTION@\")]");
|
||||
ai.WriteLine("[assembly: AssemblyTrademark(\"Tao Framework -- http://www.taoframework.com\")]");
|
||||
ai.WriteLine("[assembly: AssemblyVersion(\"@ASSEMBLY_VERSION@\")]");
|
||||
ai.WriteLine("[assembly: CLSCompliant(true)]");
|
||||
ai.WriteLine("[assembly: ComVisible(false)]");
|
||||
ai.WriteLine("[assembly: SecurityPermission(SecurityAction.RequestMinimum, Flags = SecurityPermissionFlag.Execution)]");
|
||||
ai.WriteLine("[assembly: SecurityPermission(SecurityAction.RequestMinimum, Flags = SecurityPermissionFlag.SkipVerification)]");
|
||||
ai.WriteLine("[assembly: SecurityPermission(SecurityAction.RequestMinimum, Flags = SecurityPermissionFlag.UnmanagedCode)]");
|
||||
|
||||
}
|
||||
//return combFile;
|
||||
}
|
||||
|
||||
private void CleanProject(ProjectNode project)
|
||||
{
|
||||
m_Kernel.Log.Write("...Cleaning project: {0}", project.Name);
|
||||
string projectFile = Helper.MakeFilePath(project.FullPath, "Include", "am");
|
||||
Helper.DeleteIfExists(projectFile);
|
||||
}
|
||||
|
||||
private void CleanSolution(SolutionNode solution)
|
||||
{
|
||||
m_Kernel.Log.Write("Cleaning Autotools make files for", solution.Name);
|
||||
|
||||
string slnFile = Helper.MakeFilePath(solution.FullPath, "Makefile", "am");
|
||||
Helper.DeleteIfExists(slnFile);
|
||||
|
||||
slnFile = Helper.MakeFilePath(solution.FullPath, "Makefile", "in");
|
||||
Helper.DeleteIfExists(slnFile);
|
||||
|
||||
slnFile = Helper.MakeFilePath(solution.FullPath, "configure", "ac");
|
||||
Helper.DeleteIfExists(slnFile);
|
||||
|
||||
slnFile = Helper.MakeFilePath(solution.FullPath, "configure");
|
||||
Helper.DeleteIfExists(slnFile);
|
||||
|
||||
slnFile = Helper.MakeFilePath(solution.FullPath, "Makefile");
|
||||
Helper.DeleteIfExists(slnFile);
|
||||
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
CleanProject(project);
|
||||
}
|
||||
|
||||
m_Kernel.Log.Write("");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ITarget Members
|
||||
|
||||
/// <summary>
|
||||
/// Writes the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public void Write(Kernel kern)
|
||||
{
|
||||
if( kern == null )
|
||||
{
|
||||
throw new ArgumentNullException("kern");
|
||||
}
|
||||
m_Kernel = kern;
|
||||
foreach(SolutionNode solution in kern.Solutions)
|
||||
{
|
||||
WriteCombine(solution);
|
||||
}
|
||||
m_Kernel = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cleans the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public virtual void Clean(Kernel kern)
|
||||
{
|
||||
if( kern == null )
|
||||
{
|
||||
throw new ArgumentNullException("kern");
|
||||
}
|
||||
m_Kernel = kern;
|
||||
foreach(SolutionNode sol in kern.Solutions)
|
||||
{
|
||||
CleanSolution(sol);
|
||||
}
|
||||
m_Kernel = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return "autotools";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,102 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-09-20 09:42:51 +0200 (on, 20 sep 2006) $
|
||||
* $Revision: 164 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Nodes;
|
||||
|
||||
#if (DEBUG && _DEBUG_TARGET)
|
||||
namespace Prebuild.Core.Targets
|
||||
{
|
||||
[Target("debug")]
|
||||
public class DebugTarget : ITarget
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private Kernel m_Kernel = null;
|
||||
|
||||
#endregion
|
||||
|
||||
#region ITarget Members
|
||||
|
||||
public void Write()
|
||||
{
|
||||
foreach(SolutionNode s in m_Kernel.Solutions)
|
||||
{
|
||||
Console.WriteLine("Solution [ {0}, {1} ]", s.Name, s.Path);
|
||||
foreach(string file in s.Files)
|
||||
{
|
||||
Console.WriteLine("\tFile [ {0} ]", file);
|
||||
}
|
||||
|
||||
foreach(ProjectNode proj in s.Projects)
|
||||
{
|
||||
Console.WriteLine("\tProject [ {0}, {1}. {2} ]", proj.Name, proj.Path, proj.Language);
|
||||
foreach(string file in proj.Files)
|
||||
Console.WriteLine("\t\tFile [ {0} ]", file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void Clean()
|
||||
{
|
||||
Console.WriteLine("Not implemented");
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return "debug";
|
||||
}
|
||||
}
|
||||
|
||||
public Kernel Kernel
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Kernel;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_Kernel = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,458 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2007-02-13 22:07:07 +0100 (ti, 13 feb 2007) $
|
||||
* $Revision: 206 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Nodes;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Targets
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Target("monodev")]
|
||||
public class MonoDevelopTarget : ITarget
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private Kernel m_Kernel;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private static string PrependPath(string path)
|
||||
{
|
||||
string tmpPath = Helper.NormalizePath(path, '/');
|
||||
Regex regex = new Regex(@"(\w):/(\w+)");
|
||||
Match match = regex.Match(tmpPath);
|
||||
if(match.Success || tmpPath[0] == '.' || tmpPath[0] == '/')
|
||||
{
|
||||
tmpPath = Helper.NormalizePath(tmpPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
tmpPath = Helper.NormalizePath("./" + tmpPath);
|
||||
}
|
||||
|
||||
return tmpPath;
|
||||
}
|
||||
|
||||
private static string BuildReference(SolutionNode solution, ReferenceNode refr)
|
||||
{
|
||||
string ret = "<ProjectReference type=\"";
|
||||
if(solution.ProjectsTable.ContainsKey(refr.Name))
|
||||
{
|
||||
ret += "Project\"";
|
||||
ret += " localcopy=\"" + refr.LocalCopy.ToString() + "\" refto=\"" + refr.Name + "\" />";
|
||||
}
|
||||
else
|
||||
{
|
||||
ProjectNode project = (ProjectNode)refr.Parent;
|
||||
string fileRef = FindFileReference(refr.Name, project);
|
||||
|
||||
if(refr.Path != null || fileRef != null)
|
||||
{
|
||||
ret += "Assembly\" refto=\"";
|
||||
|
||||
string finalPath = (refr.Path != null) ? Helper.MakeFilePath(refr.Path, refr.Name, "dll") : fileRef;
|
||||
|
||||
ret += finalPath;
|
||||
ret += "\" localcopy=\"" + refr.LocalCopy.ToString() + "\" />";
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret += "Gac\"";
|
||||
ret += " localcopy=\"" + refr.LocalCopy.ToString() + "\"";
|
||||
ret += " refto=\"";
|
||||
try
|
||||
{
|
||||
//Assembly assem = Assembly.Load(refr.Name);
|
||||
//ret += assem.FullName;
|
||||
ret += refr.Name;
|
||||
}
|
||||
catch (System.NullReferenceException e)
|
||||
{
|
||||
e.ToString();
|
||||
ret += refr.Name;
|
||||
}
|
||||
ret += "\" />";
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
private static string FindFileReference(string refName, ProjectNode project)
|
||||
{
|
||||
foreach(ReferencePathNode refPath in project.ReferencePaths)
|
||||
{
|
||||
string fullPath = Helper.MakeFilePath(refPath.Path, refName, "dll");
|
||||
|
||||
if(File.Exists(fullPath))
|
||||
{
|
||||
return fullPath;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the XML doc file.
|
||||
/// </summary>
|
||||
/// <param name="project">The project.</param>
|
||||
/// <param name="conf">The conf.</param>
|
||||
/// <returns></returns>
|
||||
public static string GenerateXmlDocFile(ProjectNode project, ConfigurationNode conf)
|
||||
{
|
||||
if( conf == null )
|
||||
{
|
||||
throw new ArgumentNullException("conf");
|
||||
}
|
||||
if( project == null )
|
||||
{
|
||||
throw new ArgumentNullException("project");
|
||||
}
|
||||
string docFile = (string)conf.Options["XmlDocFile"];
|
||||
if(docFile != null && docFile.Length == 0)//default to assembly name if not specified
|
||||
{
|
||||
return "False";
|
||||
}
|
||||
return "True";
|
||||
}
|
||||
|
||||
private void WriteProject(SolutionNode solution, ProjectNode project)
|
||||
{
|
||||
string csComp = "Mcs";
|
||||
string netRuntime = "Mono";
|
||||
if(project.Runtime == ClrRuntime.Microsoft)
|
||||
{
|
||||
csComp = "Csc";
|
||||
netRuntime = "MsNet";
|
||||
}
|
||||
|
||||
string projFile = Helper.MakeFilePath(project.FullPath, project.Name, "mdp");
|
||||
StreamWriter ss = new StreamWriter(projFile);
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Push();
|
||||
Helper.SetCurrentDir(Path.GetDirectoryName(projFile));
|
||||
|
||||
using(ss)
|
||||
{
|
||||
ss.WriteLine(
|
||||
"<Project name=\"{0}\" description=\"\" standardNamespace=\"{1}\" newfilesearch=\"None\" enableviewstate=\"True\" fileversion=\"2.0\" language=\"C#\" clr-version=\"Net_2_0\" ctype=\"DotNetProject\">",
|
||||
project.Name,
|
||||
project.RootNamespace
|
||||
);
|
||||
|
||||
int count = 0;
|
||||
|
||||
ss.WriteLine(" <Configurations active=\"{0}\">", solution.ActiveConfig);
|
||||
|
||||
foreach(ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
ss.WriteLine(" <Configuration name=\"{0}\" ctype=\"DotNetProjectConfiguration\">", conf.Name);
|
||||
ss.Write(" <Output");
|
||||
ss.Write(" directory=\"{0}\"", Helper.EndPath(Helper.NormalizePath(".\\" + conf.Options["OutputPath"].ToString())));
|
||||
ss.Write(" assembly=\"{0}\"", project.AssemblyName);
|
||||
ss.Write(" executeScript=\"{0}\"", conf.Options["RunScript"]);
|
||||
//ss.Write(" executeBeforeBuild=\"{0}\"", conf.Options["PreBuildEvent"]);
|
||||
//ss.Write(" executeAfterBuild=\"{0}\"", conf.Options["PostBuildEvent"]);
|
||||
if (conf.Options["PreBuildEvent"] != null && conf.Options["PreBuildEvent"].ToString().Length != 0)
|
||||
{
|
||||
ss.Write(" executeBeforeBuild=\"{0}\"", Helper.NormalizePath(conf.Options["PreBuildEvent"].ToString()));
|
||||
}
|
||||
else
|
||||
{
|
||||
ss.Write(" executeBeforeBuild=\"{0}\"", conf.Options["PreBuildEvent"]);
|
||||
}
|
||||
if (conf.Options["PostBuildEvent"] != null && conf.Options["PostBuildEvent"].ToString().Length != 0)
|
||||
{
|
||||
ss.Write(" executeAfterBuild=\"{0}\"", Helper.NormalizePath(conf.Options["PostBuildEvent"].ToString()));
|
||||
}
|
||||
else
|
||||
{
|
||||
ss.Write(" executeAfterBuild=\"{0}\"", conf.Options["PostBuildEvent"]);
|
||||
}
|
||||
ss.Write(" executeBeforeBuildArguments=\"{0}\"", conf.Options["PreBuildEventArgs"]);
|
||||
ss.Write(" executeAfterBuildArguments=\"{0}\"", conf.Options["PreBuildEventArgs"]);
|
||||
ss.WriteLine(" />");
|
||||
|
||||
ss.Write(" <Build");
|
||||
ss.Write(" debugmode=\"True\"");
|
||||
if (project.Type == ProjectType.WinExe)
|
||||
{
|
||||
ss.Write(" target=\"{0}\"", ProjectType.Exe.ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
ss.Write(" target=\"{0}\"", project.Type);
|
||||
}
|
||||
ss.WriteLine(" />");
|
||||
|
||||
ss.Write(" <Execution");
|
||||
ss.Write(" runwithwarnings=\"True\"");
|
||||
ss.Write(" consolepause=\"True\"");
|
||||
ss.Write(" runtime=\"{0}\"", netRuntime);
|
||||
ss.Write(" clr-version=\"Net_2_0\"");
|
||||
ss.WriteLine(" />");
|
||||
|
||||
ss.Write(" <CodeGeneration");
|
||||
ss.Write(" compiler=\"{0}\"", csComp);
|
||||
ss.Write(" warninglevel=\"{0}\"", conf.Options["WarningLevel"]);
|
||||
ss.Write(" nowarn=\"{0}\"", conf.Options["SuppressWarnings"]);
|
||||
ss.Write(" includedebuginformation=\"{0}\"", conf.Options["DebugInformation"]);
|
||||
ss.Write(" optimize=\"{0}\"", conf.Options["OptimizeCode"]);
|
||||
ss.Write(" unsafecodeallowed=\"{0}\"", conf.Options["AllowUnsafe"]);
|
||||
ss.Write(" generateoverflowchecks=\"{0}\"", conf.Options["CheckUnderflowOverflow"]);
|
||||
ss.Write(" mainclass=\"{0}\"", project.StartupObject);
|
||||
ss.Write(" target=\"{0}\"", project.Type);
|
||||
ss.Write(" definesymbols=\"{0}\"", conf.Options["CompilerDefines"]);
|
||||
ss.Write(" generatexmldocumentation=\"{0}\"", GenerateXmlDocFile(project, conf));
|
||||
ss.Write(" win32Icon=\"{0}\"", project.AppIcon);
|
||||
ss.Write(" ctype=\"CSharpCompilerParameters\"");
|
||||
ss.WriteLine(" />");
|
||||
ss.WriteLine(" </Configuration>");
|
||||
|
||||
count++;
|
||||
}
|
||||
ss.WriteLine(" </Configurations>");
|
||||
|
||||
ss.Write(" <DeploymentInformation");
|
||||
ss.Write(" target=\"\"");
|
||||
ss.Write(" script=\"\"");
|
||||
ss.Write(" strategy=\"File\"");
|
||||
ss.WriteLine(">");
|
||||
ss.WriteLine(" <excludeFiles />");
|
||||
ss.WriteLine(" </DeploymentInformation>");
|
||||
|
||||
ss.WriteLine(" <Contents>");
|
||||
foreach(string file in project.Files)
|
||||
{
|
||||
string buildAction = "Compile";
|
||||
switch(project.Files.GetBuildAction(file))
|
||||
{
|
||||
case BuildAction.None:
|
||||
buildAction = "Nothing";
|
||||
break;
|
||||
|
||||
case BuildAction.Content:
|
||||
buildAction = "Exclude";
|
||||
break;
|
||||
|
||||
case BuildAction.EmbeddedResource:
|
||||
buildAction = "EmbedAsResource";
|
||||
break;
|
||||
|
||||
default:
|
||||
buildAction = "Compile";
|
||||
break;
|
||||
}
|
||||
|
||||
// Sort of a hack, we try and resolve the path and make it relative, if we can.
|
||||
string filePath = PrependPath(file);
|
||||
ss.WriteLine(" <File name=\"{0}\" subtype=\"Code\" buildaction=\"{1}\" dependson=\"\" data=\"\" />", filePath, buildAction);
|
||||
}
|
||||
ss.WriteLine(" </Contents>");
|
||||
|
||||
ss.WriteLine(" <References>");
|
||||
foreach(ReferenceNode refr in project.References)
|
||||
{
|
||||
ss.WriteLine(" {0}", BuildReference(solution, refr));
|
||||
}
|
||||
ss.WriteLine(" </References>");
|
||||
|
||||
|
||||
ss.WriteLine("</Project>");
|
||||
}
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Pop();
|
||||
}
|
||||
|
||||
private void WriteCombine(SolutionNode solution)
|
||||
{
|
||||
m_Kernel.Log.Write("Creating MonoDevelop combine and project files");
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
if(m_Kernel.AllowProject(project.FilterGroups))
|
||||
{
|
||||
m_Kernel.Log.Write("...Creating project: {0}", project.Name);
|
||||
WriteProject(solution, project);
|
||||
}
|
||||
}
|
||||
|
||||
m_Kernel.Log.Write("");
|
||||
string combFile = Helper.MakeFilePath(solution.FullPath, solution.Name, "mds");
|
||||
StreamWriter ss = new StreamWriter(combFile);
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Push();
|
||||
Helper.SetCurrentDir(Path.GetDirectoryName(combFile));
|
||||
|
||||
int count = 0;
|
||||
|
||||
using(ss)
|
||||
{
|
||||
ss.WriteLine("<Combine name=\"{0}\" fileversion=\"2.0\" description=\"\">", solution.Name);
|
||||
|
||||
count = 0;
|
||||
foreach(ConfigurationNode conf in solution.Configurations)
|
||||
{
|
||||
if(count == 0)
|
||||
{
|
||||
ss.WriteLine(" <Configurations active=\"{0}\">", conf.Name);
|
||||
}
|
||||
|
||||
ss.WriteLine(" <Configuration name=\"{0}\" ctype=\"CombineConfiguration\">", conf.Name);
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
ss.WriteLine(" <Entry configuration=\"{1}\" build=\"True\" name=\"{0}\" />", project.Name, conf.Name);
|
||||
}
|
||||
ss.WriteLine(" </Configuration>");
|
||||
|
||||
count++;
|
||||
}
|
||||
ss.WriteLine(" </Configurations>");
|
||||
|
||||
count = 0;
|
||||
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
if(count == 0)
|
||||
ss.WriteLine(" <StartMode startupentry=\"{0}\" single=\"True\">", project.Name);
|
||||
|
||||
ss.WriteLine(" <Execute type=\"None\" entry=\"{0}\" />", project.Name);
|
||||
count++;
|
||||
}
|
||||
ss.WriteLine(" </StartMode>");
|
||||
|
||||
ss.WriteLine(" <Entries>");
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
string path = Helper.MakePathRelativeTo(solution.FullPath, project.FullPath);
|
||||
ss.WriteLine(" <Entry filename=\"{0}\" />",
|
||||
Helper.MakeFilePath(path, project.Name, "mdp"));
|
||||
}
|
||||
ss.WriteLine(" </Entries>");
|
||||
|
||||
ss.WriteLine("</Combine>");
|
||||
}
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Pop();
|
||||
}
|
||||
|
||||
private void CleanProject(ProjectNode project)
|
||||
{
|
||||
m_Kernel.Log.Write("...Cleaning project: {0}", project.Name);
|
||||
string projectFile = Helper.MakeFilePath(project.FullPath, project.Name, "mdp");
|
||||
Helper.DeleteIfExists(projectFile);
|
||||
}
|
||||
|
||||
private void CleanSolution(SolutionNode solution)
|
||||
{
|
||||
m_Kernel.Log.Write("Cleaning MonoDevelop combine and project files for", solution.Name);
|
||||
|
||||
string slnFile = Helper.MakeFilePath(solution.FullPath, solution.Name, "mds");
|
||||
Helper.DeleteIfExists(slnFile);
|
||||
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
CleanProject(project);
|
||||
}
|
||||
|
||||
m_Kernel.Log.Write("");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ITarget Members
|
||||
|
||||
/// <summary>
|
||||
/// Writes the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public void Write(Kernel kern)
|
||||
{
|
||||
if( kern == null )
|
||||
{
|
||||
throw new ArgumentNullException("kern");
|
||||
}
|
||||
m_Kernel = kern;
|
||||
foreach(SolutionNode solution in kern.Solutions)
|
||||
{
|
||||
WriteCombine(solution);
|
||||
}
|
||||
m_Kernel = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cleans the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public virtual void Clean(Kernel kern)
|
||||
{
|
||||
if( kern == null )
|
||||
{
|
||||
throw new ArgumentNullException("kern");
|
||||
}
|
||||
m_Kernel = kern;
|
||||
foreach(SolutionNode sol in kern.Solutions)
|
||||
{
|
||||
CleanSolution(sol);
|
||||
}
|
||||
m_Kernel = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return "sharpdev";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,621 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2007-02-13 21:58:03 +0100 (ti, 13 feb 2007) $
|
||||
* $Revision: 205 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Nodes;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Targets
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Target("nant")]
|
||||
public class NAntTarget : ITarget
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private Kernel m_Kernel;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private static string PrependPath(string path)
|
||||
{
|
||||
string tmpPath = Helper.NormalizePath(path, '/');
|
||||
Regex regex = new Regex(@"(\w):/(\w+)");
|
||||
Match match = regex.Match(tmpPath);
|
||||
//if(match.Success || tmpPath[0] == '.' || tmpPath[0] == '/')
|
||||
//{
|
||||
tmpPath = Helper.NormalizePath(tmpPath);
|
||||
//}
|
||||
// else
|
||||
// {
|
||||
// tmpPath = Helper.NormalizePath("./" + tmpPath);
|
||||
// }
|
||||
|
||||
return tmpPath;
|
||||
}
|
||||
|
||||
private static string BuildReference(SolutionNode solution, ReferenceNode refr)
|
||||
{
|
||||
string ret = "";
|
||||
if(solution.ProjectsTable.ContainsKey(refr.Name))
|
||||
{
|
||||
ProjectNode project = (ProjectNode)solution.ProjectsTable[refr.Name];
|
||||
string fileRef = FindFileReference(refr.Name, project);
|
||||
string finalPath = Helper.NormalizePath(Helper.MakeFilePath(project.FullPath + "/${build.dir}/", refr.Name, "dll"), '/');
|
||||
ret += finalPath;
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
ProjectNode project = (ProjectNode)refr.Parent;
|
||||
string fileRef = FindFileReference(refr.Name, project);
|
||||
|
||||
if(refr.Path != null || fileRef != null)
|
||||
{
|
||||
string finalPath = (refr.Path != null) ? Helper.NormalizePath(refr.Path + "/" + refr.Name + ".dll", '/') : fileRef;
|
||||
ret += finalPath;
|
||||
return ret;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
//Assembly assem = Assembly.Load(refr.Name);
|
||||
//if (assem != null)
|
||||
//{
|
||||
//ret += (refr.Name + ".dll");
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
ret += (refr.Name + ".dll");
|
||||
//}
|
||||
}
|
||||
catch (System.NullReferenceException e)
|
||||
{
|
||||
e.ToString();
|
||||
ret += refr.Name + ".dll";
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
private static string BuildReferencePath(SolutionNode solution, ReferenceNode refr)
|
||||
{
|
||||
string ret = "";
|
||||
if(solution.ProjectsTable.ContainsKey(refr.Name))
|
||||
{
|
||||
ProjectNode project = (ProjectNode)solution.ProjectsTable[refr.Name];
|
||||
string fileRef = FindFileReference(refr.Name, project);
|
||||
string finalPath = Helper.NormalizePath(Helper.MakeReferencePath(project.FullPath + "/${build.dir}/"), '/');
|
||||
ret += finalPath;
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
ProjectNode project = (ProjectNode)refr.Parent;
|
||||
string fileRef = FindFileReference(refr.Name, project);
|
||||
|
||||
if(refr.Path != null || fileRef != null)
|
||||
{
|
||||
string finalPath = (refr.Path != null) ? Helper.NormalizePath(refr.Path, '/') : fileRef;
|
||||
ret += finalPath;
|
||||
return ret;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
Assembly assem = Assembly.Load(refr.Name);
|
||||
if (assem != null)
|
||||
{
|
||||
ret += "";
|
||||
}
|
||||
else
|
||||
{
|
||||
ret += "";
|
||||
}
|
||||
}
|
||||
catch (System.NullReferenceException e)
|
||||
{
|
||||
e.ToString();
|
||||
ret += "";
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
private static string FindFileReference(string refName, ProjectNode project)
|
||||
{
|
||||
foreach(ReferencePathNode refPath in project.ReferencePaths)
|
||||
{
|
||||
string fullPath = Helper.MakeFilePath(refPath.Path, refName, "dll");
|
||||
|
||||
if(File.Exists(fullPath))
|
||||
{
|
||||
return fullPath;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the XML doc file.
|
||||
/// </summary>
|
||||
/// <param name="project">The project.</param>
|
||||
/// <param name="conf">The conf.</param>
|
||||
/// <returns></returns>
|
||||
public static string GetXmlDocFile(ProjectNode project, ConfigurationNode conf)
|
||||
{
|
||||
if( conf == null )
|
||||
{
|
||||
throw new ArgumentNullException("conf");
|
||||
}
|
||||
if( project == null )
|
||||
{
|
||||
throw new ArgumentNullException("project");
|
||||
}
|
||||
string docFile = (string)conf.Options["XmlDocFile"];
|
||||
// if(docFile != null && docFile.Length == 0)//default to assembly name if not specified
|
||||
// {
|
||||
// return Path.GetFileNameWithoutExtension(project.AssemblyName) + ".xml";
|
||||
// }
|
||||
return docFile;
|
||||
}
|
||||
|
||||
private void WriteProject(SolutionNode solution, ProjectNode project)
|
||||
{
|
||||
string projFile = Helper.MakeFilePath(project.FullPath, project.Name + (project.Type == ProjectType.Library ? ".dll" : ".exe"), "build");
|
||||
StreamWriter ss = new StreamWriter(projFile);
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Push();
|
||||
Helper.SetCurrentDir(Path.GetDirectoryName(projFile));
|
||||
bool hasDoc = false;
|
||||
|
||||
using(ss)
|
||||
{
|
||||
ss.WriteLine("<?xml version=\"1.0\" ?>");
|
||||
ss.WriteLine("<project name=\"{0}\" default=\"build\">", project.Name);
|
||||
ss.WriteLine(" <target name=\"{0}\">", "build");
|
||||
ss.WriteLine(" <echo message=\"Build Directory is ${project::get-base-directory()}/${build.dir}\" />");
|
||||
ss.WriteLine(" <mkdir dir=\"${project::get-base-directory()}/${build.dir}\" />");
|
||||
ss.WriteLine(" <copy todir=\"${project::get-base-directory()}/${build.dir}\">");
|
||||
ss.WriteLine(" <fileset basedir=\"${project::get-base-directory()}\">");
|
||||
foreach(ReferenceNode refr in project.References)
|
||||
{
|
||||
if (refr.LocalCopy)
|
||||
{
|
||||
ss.WriteLine(" <include name=\"{0}", Helper.NormalizePath(Helper.MakePathRelativeTo(project.FullPath, BuildReference(solution, refr))+"\" />", '/'));
|
||||
}
|
||||
}
|
||||
ss.WriteLine(" </fileset>");
|
||||
ss.WriteLine(" </copy>");
|
||||
ss.Write(" <csc");
|
||||
ss.Write(" target=\"{0}\"", project.Type.ToString().ToLower());
|
||||
ss.Write(" debug=\"{0}\"", "${build.debug}");
|
||||
foreach(ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
if (conf.Options.KeyFile !="")
|
||||
{
|
||||
ss.Write(" keyfile=\"{0}\"", conf.Options.KeyFile);
|
||||
break;
|
||||
}
|
||||
}
|
||||
foreach(ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
ss.Write(" unsafe=\"{0}\"", conf.Options.AllowUnsafe);
|
||||
break;
|
||||
}
|
||||
foreach(ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
ss.Write(" define=\"{0}\"", conf.Options.CompilerDefines);
|
||||
break;
|
||||
}
|
||||
foreach(ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
if (GetXmlDocFile(project, conf) !="")
|
||||
{
|
||||
ss.Write(" doc=\"{0}\"", "${project::get-base-directory()}/${build.dir}/" + GetXmlDocFile(project, conf));
|
||||
hasDoc = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
ss.Write(" output=\"{0}", "${project::get-base-directory()}/${build.dir}/${project::get-name()}");
|
||||
if (project.Type == ProjectType.Library)
|
||||
{
|
||||
ss.Write(".dll\"");
|
||||
}
|
||||
else
|
||||
{
|
||||
ss.Write(".exe\"");
|
||||
}
|
||||
if(project.AppIcon != null && project.AppIcon.Length != 0)
|
||||
{
|
||||
ss.Write(" win32icon=\"{0}\"", Helper.NormalizePath(project.AppIcon,'/'));
|
||||
}
|
||||
ss.WriteLine(">");
|
||||
ss.WriteLine(" <resources prefix=\"{0}\" dynamicprefix=\"true\" >", project.RootNamespace);
|
||||
foreach (string file in project.Files)
|
||||
{
|
||||
switch (project.Files.GetBuildAction(file))
|
||||
{
|
||||
case BuildAction.EmbeddedResource:
|
||||
ss.WriteLine(" {0}", "<include name=\"" + Helper.NormalizePath(PrependPath(file), '/') + "\" />");
|
||||
break;
|
||||
default:
|
||||
if (project.Files.GetSubType(file) != SubType.Code && project.Files.GetSubType(file) != SubType.Settings)
|
||||
{
|
||||
ss.WriteLine(" <include name=\"{0}\" />", file.Substring(0, file.LastIndexOf('.')) + ".resx");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
//if (project.Files.GetSubType(file).ToString() != "Code")
|
||||
//{
|
||||
// ps.WriteLine(" <EmbeddedResource Include=\"{0}\">", file.Substring(0, file.LastIndexOf('.')) + ".resx");
|
||||
|
||||
ss.WriteLine(" </resources>");
|
||||
ss.WriteLine(" <sources failonempty=\"true\">");
|
||||
foreach(string file in project.Files)
|
||||
{
|
||||
switch(project.Files.GetBuildAction(file))
|
||||
{
|
||||
case BuildAction.Compile:
|
||||
ss.WriteLine(" <include name=\"" + Helper.NormalizePath(PrependPath(file), '/') + "\" />");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
ss.WriteLine(" </sources>");
|
||||
ss.WriteLine(" <references basedir=\"${project::get-base-directory()}\">");
|
||||
ss.WriteLine(" <lib>");
|
||||
ss.WriteLine(" <include name=\"${project::get-base-directory()}\" />");
|
||||
ss.WriteLine(" <include name=\"${project::get-base-directory()}/${build.dir}\" />");
|
||||
ss.WriteLine(" </lib>");
|
||||
foreach(ReferenceNode refr in project.References)
|
||||
{
|
||||
ss.WriteLine(" <include name=\"{0}", Helper.NormalizePath(Helper.MakePathRelativeTo(project.FullPath, BuildReference(solution, refr))+"\" />", '/'));
|
||||
}
|
||||
ss.WriteLine(" </references>");
|
||||
|
||||
ss.WriteLine(" </csc>");
|
||||
|
||||
foreach (ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
if (!String.IsNullOrEmpty(conf.Options.OutputPath))
|
||||
{
|
||||
string targetDir = Helper.NormalizePath(conf.Options.OutputPath, '/');
|
||||
|
||||
ss.WriteLine(" <echo message=\"Copying from [${project::get-base-directory()}/${build.dir}/] to [${project::get-base-directory()}/" + targetDir + "\" />");
|
||||
|
||||
ss.WriteLine(" <mkdir dir=\"${project::get-base-directory()}/" + targetDir + "\"/>");
|
||||
|
||||
ss.WriteLine(" <copy todir=\"${project::get-base-directory()}/" + targetDir + "\">");
|
||||
ss.WriteLine(" <fileset basedir=\"${project::get-base-directory()}/${build.dir}/\" >");
|
||||
ss.WriteLine(" <include name=\"*.dll\"/>");
|
||||
ss.WriteLine(" <include name=\"*.exe\"/>");
|
||||
ss.WriteLine(" </fileset>");
|
||||
ss.WriteLine(" </copy>");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
ss.WriteLine(" </target>");
|
||||
|
||||
ss.WriteLine(" <target name=\"clean\">");
|
||||
ss.WriteLine(" <delete dir=\"${bin.dir}\" failonerror=\"false\" />");
|
||||
ss.WriteLine(" <delete dir=\"${obj.dir}\" failonerror=\"false\" />");
|
||||
ss.WriteLine(" </target>");
|
||||
|
||||
ss.WriteLine(" <target name=\"doc\" description=\"Creates documentation.\">");
|
||||
if (hasDoc)
|
||||
{
|
||||
ss.WriteLine(" <property name=\"doc.target\" value=\"\" />");
|
||||
ss.WriteLine(" <if test=\"${platform::is-unix()}\">");
|
||||
ss.WriteLine(" <property name=\"doc.target\" value=\"Web\" />");
|
||||
ss.WriteLine(" </if>");
|
||||
ss.WriteLine(" <ndoc failonerror=\"false\" verbose=\"true\">");
|
||||
ss.WriteLine(" <assemblies basedir=\"${project::get-base-directory()}\">");
|
||||
ss.Write(" <include name=\"${build.dir}/${project::get-name()}");
|
||||
if (project.Type == ProjectType.Library)
|
||||
{
|
||||
ss.WriteLine(".dll\" />");
|
||||
}
|
||||
else
|
||||
{
|
||||
ss.WriteLine(".exe\" />");
|
||||
}
|
||||
|
||||
ss.WriteLine(" </assemblies>");
|
||||
ss.WriteLine(" <summaries basedir=\"${project::get-base-directory()}\">");
|
||||
ss.WriteLine(" <include name=\"${build.dir}/${project::get-name()}.xml\"/>");
|
||||
ss.WriteLine(" </summaries>");
|
||||
ss.WriteLine(" <referencepaths basedir=\"${project::get-base-directory()}\">");
|
||||
ss.WriteLine(" <include name=\"${build.dir}\" />");
|
||||
// foreach(ReferenceNode refr in project.References)
|
||||
// {
|
||||
// string path = Helper.NormalizePath(Helper.MakePathRelativeTo(project.FullPath, BuildReferencePath(solution, refr)), '/');
|
||||
// if (path != "")
|
||||
// {
|
||||
// ss.WriteLine(" <include name=\"{0}\" />", path);
|
||||
// }
|
||||
// }
|
||||
ss.WriteLine(" </referencepaths>");
|
||||
ss.WriteLine(" <documenters>");
|
||||
ss.WriteLine(" <documenter name=\"MSDN\">");
|
||||
ss.WriteLine(" <property name=\"OutputDirectory\" value=\"${project::get-base-directory()}/${build.dir}/doc/${project::get-name()}\" />");
|
||||
ss.WriteLine(" <property name=\"OutputTarget\" value=\"${doc.target}\" />");
|
||||
ss.WriteLine(" <property name=\"HtmlHelpName\" value=\"${project::get-name()}\" />");
|
||||
ss.WriteLine(" <property name=\"IncludeFavorites\" value=\"False\" />");
|
||||
ss.WriteLine(" <property name=\"Title\" value=\"${project::get-name()} SDK Documentation\" />");
|
||||
ss.WriteLine(" <property name=\"SplitTOCs\" value=\"False\" />");
|
||||
ss.WriteLine(" <property name=\"DefaulTOC\" value=\"\" />");
|
||||
ss.WriteLine(" <property name=\"ShowVisualBasic\" value=\"True\" />");
|
||||
ss.WriteLine(" <property name=\"AutoDocumentConstructors\" value=\"True\" />");
|
||||
ss.WriteLine(" <property name=\"ShowMissingSummaries\" value=\"${build.debug}\" />");
|
||||
ss.WriteLine(" <property name=\"ShowMissingRemarks\" value=\"${build.debug}\" />");
|
||||
ss.WriteLine(" <property name=\"ShowMissingParams\" value=\"${build.debug}\" />");
|
||||
ss.WriteLine(" <property name=\"ShowMissingReturns\" value=\"${build.debug}\" />");
|
||||
ss.WriteLine(" <property name=\"ShowMissingValues\" value=\"${build.debug}\" />");
|
||||
ss.WriteLine(" <property name=\"DocumentInternals\" value=\"False\" />");
|
||||
ss.WriteLine(" <property name=\"DocumentPrivates\" value=\"False\" />");
|
||||
ss.WriteLine(" <property name=\"DocumentProtected\" value=\"True\" />");
|
||||
ss.WriteLine(" <property name=\"DocumentEmptyNamespaces\" value=\"${build.debug}\" />");
|
||||
ss.WriteLine(" <property name=\"IncludeAssemblyVersion\" value=\"True\" />");
|
||||
ss.WriteLine(" </documenter>");
|
||||
ss.WriteLine(" </documenters>");
|
||||
ss.WriteLine(" </ndoc>");
|
||||
}
|
||||
ss.WriteLine(" </target>");
|
||||
ss.WriteLine("</project>");
|
||||
}
|
||||
m_Kernel.CurrentWorkingDirectory.Pop();
|
||||
}
|
||||
|
||||
private void WriteCombine(SolutionNode solution)
|
||||
{
|
||||
m_Kernel.Log.Write("Creating NAnt build files");
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
if(m_Kernel.AllowProject(project.FilterGroups))
|
||||
{
|
||||
m_Kernel.Log.Write("...Creating project: {0}", project.Name);
|
||||
WriteProject(solution, project);
|
||||
}
|
||||
}
|
||||
|
||||
m_Kernel.Log.Write("");
|
||||
string combFile = Helper.MakeFilePath(solution.FullPath, solution.Name, "build");
|
||||
StreamWriter ss = new StreamWriter(combFile);
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Push();
|
||||
Helper.SetCurrentDir(Path.GetDirectoryName(combFile));
|
||||
|
||||
using(ss)
|
||||
{
|
||||
ss.WriteLine("<?xml version=\"1.0\" ?>");
|
||||
ss.WriteLine("<project name=\"{0}\" default=\"build\">", solution.Name);
|
||||
ss.WriteLine(" <echo message=\"Using '${nant.settings.currentframework}' Framework\"/>");
|
||||
ss.WriteLine();
|
||||
|
||||
//ss.WriteLine(" <property name=\"dist.dir\" value=\"dist\" />");
|
||||
//ss.WriteLine(" <property name=\"source.dir\" value=\"source\" />");
|
||||
ss.WriteLine(" <property name=\"bin.dir\" value=\"bin\" />");
|
||||
ss.WriteLine(" <property name=\"obj.dir\" value=\"obj\" />");
|
||||
ss.WriteLine(" <property name=\"doc.dir\" value=\"doc\" />");
|
||||
ss.WriteLine(" <property name=\"project.main.dir\" value=\"${project::get-base-directory()}\" />");
|
||||
|
||||
foreach(ConfigurationNode conf in solution.Configurations)
|
||||
{
|
||||
// Set the project.config to a non-debug configuration
|
||||
if( conf.Options["DebugInformation"].ToString().ToLower() != "true" )
|
||||
{
|
||||
ss.WriteLine(" <property name=\"project.config\" value=\"{0}\" />", conf.Name);
|
||||
}
|
||||
ss.WriteLine();
|
||||
ss.WriteLine(" <target name=\"{0}\" description=\"\">", conf.Name);
|
||||
ss.WriteLine(" <property name=\"project.config\" value=\"{0}\" />", conf.Name);
|
||||
ss.WriteLine(" <property name=\"build.debug\" value=\"{0}\" />", conf.Options["DebugInformation"].ToString().ToLower());
|
||||
ss.WriteLine(" </target>");
|
||||
ss.WriteLine();
|
||||
}
|
||||
|
||||
ss.WriteLine(" <target name=\"net-1.1\" description=\"Sets framework to .NET 1.1\">");
|
||||
ss.WriteLine(" <property name=\"nant.settings.currentframework\" value=\"net-1.1\" />");
|
||||
ss.WriteLine(" </target>");
|
||||
ss.WriteLine();
|
||||
|
||||
ss.WriteLine(" <target name=\"net-2.0\" description=\"Sets framework to .NET 2.0\">");
|
||||
ss.WriteLine(" <property name=\"nant.settings.currentframework\" value=\"net-2.0\" />");
|
||||
ss.WriteLine(" </target>");
|
||||
ss.WriteLine();
|
||||
|
||||
ss.WriteLine(" <target name=\"mono-2.0\" description=\"Sets framework to mono 2.0\">");
|
||||
ss.WriteLine(" <property name=\"nant.settings.currentframework\" value=\"mono-2.0\" />");
|
||||
ss.WriteLine(" </target>");
|
||||
ss.WriteLine();
|
||||
|
||||
ss.WriteLine(" <target name=\"mono-1.0\" description=\"Sets framework to mono 1.0\">");
|
||||
ss.WriteLine(" <property name=\"nant.settings.currentframework\" value=\"mono-1.0\" />");
|
||||
ss.WriteLine(" </target>");
|
||||
ss.WriteLine();
|
||||
|
||||
ss.WriteLine(" <target name=\"init\" description=\"\">");
|
||||
ss.WriteLine(" <call target=\"${project.config}\" />");
|
||||
ss.WriteLine(" <sysinfo />");
|
||||
ss.WriteLine(" <echo message=\"Platform ${sys.os.platform}\" />");
|
||||
ss.WriteLine(" <property name=\"build.dir\" value=\"${bin.dir}/${project.config}\" />");
|
||||
ss.WriteLine(" </target>");
|
||||
ss.WriteLine();
|
||||
|
||||
ss.WriteLine(" <target name=\"clean\" description=\"\">");
|
||||
ss.WriteLine(" <echo message=\"Deleting all builds from all configurations\" />");
|
||||
//ss.WriteLine(" <delete dir=\"${dist.dir}\" failonerror=\"false\" />");
|
||||
ss.WriteLine(" <delete dir=\"${bin.dir}\" failonerror=\"false\" />");
|
||||
ss.WriteLine(" <delete dir=\"${obj.dir}\" failonerror=\"false\" />");
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
string path = Helper.MakePathRelativeTo(solution.FullPath, project.FullPath);
|
||||
ss.Write(" <nant buildfile=\"{0}\"",
|
||||
Helper.NormalizePath(Helper.MakeFilePath(path, project.Name + (project.Type == ProjectType.Library ? ".dll" : ".exe"), "build"),'/'));
|
||||
ss.WriteLine(" target=\"clean\" />");
|
||||
}
|
||||
ss.WriteLine(" </target>");
|
||||
ss.WriteLine();
|
||||
|
||||
ss.WriteLine(" <target name=\"build\" depends=\"init\" description=\"\">");
|
||||
|
||||
foreach(ProjectNode project in solution.ProjectsTableOrder)
|
||||
{
|
||||
string path = Helper.MakePathRelativeTo(solution.FullPath, project.FullPath);
|
||||
ss.Write(" <nant buildfile=\"{0}\"",
|
||||
Helper.NormalizePath(Helper.MakeFilePath(path, project.Name + (project.Type == ProjectType.Library ? ".dll" : ".exe"), "build"),'/'));
|
||||
ss.WriteLine(" target=\"build\" />");
|
||||
}
|
||||
ss.WriteLine(" </target>");
|
||||
ss.WriteLine();
|
||||
|
||||
ss.WriteLine(" <target name=\"build-release\" depends=\"Release, init, build\" description=\"Builds in Release mode\" />");
|
||||
ss.WriteLine();
|
||||
ss.WriteLine(" <target name=\"build-debug\" depends=\"Debug, init, build\" description=\"Builds in Debug mode\" />");
|
||||
ss.WriteLine();
|
||||
//ss.WriteLine(" <target name=\"package\" depends=\"clean, doc, copyfiles, zip\" description=\"Builds in Release mode\" />");
|
||||
ss.WriteLine(" <target name=\"package\" depends=\"clean, doc\" description=\"Builds all\" />");
|
||||
ss.WriteLine();
|
||||
|
||||
ss.WriteLine(" <target name=\"doc\" depends=\"build-release\">");
|
||||
ss.WriteLine(" <echo message=\"Generating all documentation from all builds\" />");
|
||||
foreach (ProjectNode project in solution.Projects)
|
||||
{
|
||||
string path = Helper.MakePathRelativeTo(solution.FullPath, project.FullPath);
|
||||
ss.Write(" <nant buildfile=\"{0}\"",
|
||||
Helper.NormalizePath(Helper.MakeFilePath(path, project.Name + (project.Type == ProjectType.Library ? ".dll" : ".exe"), "build"), '/'));
|
||||
ss.WriteLine(" target=\"doc\" />");
|
||||
}
|
||||
ss.WriteLine(" </target>");
|
||||
ss.WriteLine();
|
||||
ss.WriteLine("</project>");
|
||||
}
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Pop();
|
||||
}
|
||||
|
||||
private void CleanProject(ProjectNode project)
|
||||
{
|
||||
m_Kernel.Log.Write("...Cleaning project: {0}", project.Name);
|
||||
string projectFile = Helper.MakeFilePath(project.FullPath, project.Name + (project.Type == ProjectType.Library ? ".dll" : ".exe"), "build");
|
||||
Helper.DeleteIfExists(projectFile);
|
||||
}
|
||||
|
||||
private void CleanSolution(SolutionNode solution)
|
||||
{
|
||||
m_Kernel.Log.Write("Cleaning NAnt build files for", solution.Name);
|
||||
|
||||
string slnFile = Helper.MakeFilePath(solution.FullPath, solution.Name, "build");
|
||||
Helper.DeleteIfExists(slnFile);
|
||||
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
CleanProject(project);
|
||||
}
|
||||
|
||||
m_Kernel.Log.Write("");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ITarget Members
|
||||
|
||||
/// <summary>
|
||||
/// Writes the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public void Write(Kernel kern)
|
||||
{
|
||||
if( kern == null )
|
||||
{
|
||||
throw new ArgumentNullException("kern");
|
||||
}
|
||||
m_Kernel = kern;
|
||||
foreach(SolutionNode solution in kern.Solutions)
|
||||
{
|
||||
WriteCombine(solution);
|
||||
}
|
||||
m_Kernel = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cleans the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public virtual void Clean(Kernel kern)
|
||||
{
|
||||
if( kern == null )
|
||||
{
|
||||
throw new ArgumentNullException("kern");
|
||||
}
|
||||
m_Kernel = kern;
|
||||
foreach(SolutionNode sol in kern.Solutions)
|
||||
{
|
||||
CleanSolution(sol);
|
||||
}
|
||||
m_Kernel = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return "nant";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,90 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-27 16:49:58 -0800 (Fri, 27 Jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
|
||||
namespace Prebuild.Core.Targets
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Target("sharpdev2")]
|
||||
public class SharpDevelop2Target : VS2005Target
|
||||
{
|
||||
#region Private Methods
|
||||
private void SetSharpDevelop2()
|
||||
{
|
||||
this.VersionName = "SharpDevelop2";
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Writes the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public override void Write(Kernel kern)
|
||||
{
|
||||
SetSharpDevelop2();
|
||||
base.Write(kern);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cleans the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public override void Clean(Kernel kern)
|
||||
{
|
||||
SetSharpDevelop2();
|
||||
base.Clean(kern);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public override string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return "sharpdev2";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,437 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2007-02-13 21:58:03 +0100 (ti, 13 feb 2007) $
|
||||
* $Revision: 205 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Reflection;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Nodes;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Targets
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Target("sharpdev")]
|
||||
public class SharpDevelopTarget : ITarget
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private Kernel m_Kernel;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private static string PrependPath(string path)
|
||||
{
|
||||
string tmpPath = Helper.NormalizePath(path, '/');
|
||||
Regex regex = new Regex(@"(\w):/(\w+)");
|
||||
Match match = regex.Match(tmpPath);
|
||||
if(match.Success || tmpPath[0] == '.' || tmpPath[0] == '/')
|
||||
{
|
||||
tmpPath = Helper.NormalizePath(tmpPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
tmpPath = Helper.NormalizePath("./" + tmpPath);
|
||||
}
|
||||
|
||||
return tmpPath;
|
||||
}
|
||||
|
||||
private static string BuildReference(SolutionNode solution, ReferenceNode refr)
|
||||
{
|
||||
string ret = "<Reference type=\"";
|
||||
if(solution.ProjectsTable.ContainsKey(refr.Name))
|
||||
{
|
||||
ret += "Project\" refto=\"" + refr.Name;
|
||||
ret += "\" localcopy=\"" + refr.LocalCopy.ToString() + "\" />";
|
||||
}
|
||||
else
|
||||
{
|
||||
ProjectNode project = (ProjectNode)refr.Parent;
|
||||
string fileRef = FindFileReference(refr.Name, project);
|
||||
|
||||
if(refr.Path != null || fileRef != null)
|
||||
{
|
||||
ret += "Assembly\" refto=\"";
|
||||
|
||||
string finalPath = (refr.Path != null) ? Helper.MakeFilePath(refr.Path, refr.Name, "dll") : fileRef;
|
||||
|
||||
ret += finalPath;
|
||||
ret += "\" localcopy=\"" + refr.LocalCopy.ToString() + "\" />";
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret += "Gac\" refto=\"";
|
||||
try
|
||||
{
|
||||
//Assembly assem = Assembly.Load(refr.Name);
|
||||
ret += refr.Name;// assem.FullName;
|
||||
}
|
||||
catch (System.NullReferenceException e)
|
||||
{
|
||||
e.ToString();
|
||||
ret += refr.Name;
|
||||
}
|
||||
ret += "\" localcopy=\"" + refr.LocalCopy.ToString() + "\" />";
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
private static string FindFileReference(string refName, ProjectNode project)
|
||||
{
|
||||
foreach(ReferencePathNode refPath in project.ReferencePaths)
|
||||
{
|
||||
string fullPath = Helper.MakeFilePath(refPath.Path, refName, "dll");
|
||||
|
||||
if(File.Exists(fullPath))
|
||||
{
|
||||
return fullPath;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the XML doc file.
|
||||
/// </summary>
|
||||
/// <param name="project">The project.</param>
|
||||
/// <param name="conf">The conf.</param>
|
||||
/// <returns></returns>
|
||||
public static string GenerateXmlDocFile(ProjectNode project, ConfigurationNode conf)
|
||||
{
|
||||
if( conf == null )
|
||||
{
|
||||
throw new ArgumentNullException("conf");
|
||||
}
|
||||
if( project == null )
|
||||
{
|
||||
throw new ArgumentNullException("project");
|
||||
}
|
||||
string docFile = (string)conf.Options["XmlDocFile"];
|
||||
if(docFile != null && docFile.Length == 0)//default to assembly name if not specified
|
||||
{
|
||||
return "False";
|
||||
}
|
||||
return "True";
|
||||
}
|
||||
|
||||
private void WriteProject(SolutionNode solution, ProjectNode project)
|
||||
{
|
||||
string csComp = "Csc";
|
||||
string netRuntime = "MsNet";
|
||||
if(project.Runtime == ClrRuntime.Mono)
|
||||
{
|
||||
csComp = "Mcs";
|
||||
netRuntime = "Mono";
|
||||
}
|
||||
|
||||
string projFile = Helper.MakeFilePath(project.FullPath, project.Name, "prjx");
|
||||
StreamWriter ss = new StreamWriter(projFile);
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Push();
|
||||
Helper.SetCurrentDir(Path.GetDirectoryName(projFile));
|
||||
|
||||
using(ss)
|
||||
{
|
||||
ss.WriteLine(
|
||||
"<Project name=\"{0}\" standardNamespace=\"{1}\" description=\"\" newfilesearch=\"None\" enableviewstate=\"True\" version=\"1.1\" projecttype=\"C#\">",
|
||||
project.Name,
|
||||
project.RootNamespace
|
||||
);
|
||||
|
||||
ss.WriteLine(" <Contents>");
|
||||
foreach(string file in project.Files)
|
||||
{
|
||||
string buildAction = "Compile";
|
||||
switch(project.Files.GetBuildAction(file))
|
||||
{
|
||||
case BuildAction.None:
|
||||
buildAction = "Nothing";
|
||||
break;
|
||||
|
||||
case BuildAction.Content:
|
||||
buildAction = "Exclude";
|
||||
break;
|
||||
|
||||
case BuildAction.EmbeddedResource:
|
||||
buildAction = "EmbedAsResource";
|
||||
break;
|
||||
|
||||
default:
|
||||
buildAction = "Compile";
|
||||
break;
|
||||
}
|
||||
|
||||
// Sort of a hack, we try and resolve the path and make it relative, if we can.
|
||||
string filePath = PrependPath(file);
|
||||
ss.WriteLine(" <File name=\"{0}\" subtype=\"Code\" buildaction=\"{1}\" dependson=\"\" data=\"\" />", filePath, buildAction);
|
||||
}
|
||||
ss.WriteLine(" </Contents>");
|
||||
|
||||
ss.WriteLine(" <References>");
|
||||
foreach(ReferenceNode refr in project.References)
|
||||
{
|
||||
ss.WriteLine(" {0}", BuildReference(solution, refr));
|
||||
}
|
||||
ss.WriteLine(" </References>");
|
||||
|
||||
ss.Write(" <DeploymentInformation");
|
||||
ss.Write(" target=\"\"");
|
||||
ss.Write(" script=\"\"");
|
||||
ss.Write(" strategy=\"File\"");
|
||||
ss.WriteLine(" />");
|
||||
|
||||
int count = 0;
|
||||
|
||||
ss.WriteLine(" <Configurations active=\"{0}\">", solution.ActiveConfig);
|
||||
|
||||
foreach(ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
ss.Write(" <Configuration");
|
||||
ss.Write(" runwithwarnings=\"True\"");
|
||||
ss.Write(" name=\"{0}\"", conf.Name);
|
||||
ss.WriteLine(">");
|
||||
ss.Write(" <CodeGeneration");
|
||||
ss.Write(" runtime=\"{0}\"", netRuntime);
|
||||
ss.Write(" compiler=\"{0}\"", csComp);
|
||||
ss.Write(" compilerversion=\"\"");
|
||||
ss.Write(" warninglevel=\"{0}\"", conf.Options["WarningLevel"]);
|
||||
ss.Write(" nowarn=\"{0}\"", conf.Options["SuppressWarnings"]);
|
||||
ss.Write(" includedebuginformation=\"{0}\"", conf.Options["DebugInformation"]);
|
||||
ss.Write(" optimize=\"{0}\"", conf.Options["OptimizeCode"]);
|
||||
ss.Write(" unsafecodeallowed=\"{0}\"", conf.Options["AllowUnsafe"]);
|
||||
ss.Write(" generateoverflowchecks=\"{0}\"", conf.Options["CheckUnderflowOverflow"]);
|
||||
ss.Write(" mainclass=\"{0}\"", project.StartupObject);
|
||||
ss.Write(" target=\"{0}\"", project.Type);
|
||||
ss.Write(" definesymbols=\"{0}\"", conf.Options["CompilerDefines"]);
|
||||
ss.Write(" generatexmldocumentation=\"{0}\"", GenerateXmlDocFile(project, conf));
|
||||
ss.Write(" win32Icon=\"{0}\"", Helper.NormalizePath(".\\" + project.AppIcon));
|
||||
ss.Write(" noconfig=\"{0}\"", "False");
|
||||
ss.Write(" nostdlib=\"{0}\"", conf.Options["NoStdLib"]);
|
||||
ss.WriteLine(" />");
|
||||
|
||||
ss.Write(" <Execution");
|
||||
ss.Write(" commandlineparameters=\"\"");
|
||||
ss.Write(" consolepause=\"True\"");
|
||||
ss.WriteLine(" />");
|
||||
|
||||
ss.Write(" <Output");
|
||||
ss.Write(" directory=\".\\{0}\"", Helper.NormalizePath(conf.Options["OutputPath"].ToString()));
|
||||
ss.Write(" assembly=\"{0}\"", project.AssemblyName);
|
||||
ss.Write(" executeScript=\"{0}\"", conf.Options["RunScript"]);
|
||||
if (conf.Options["PreBuildEvent"] != null && conf.Options["PreBuildEvent"].ToString().Length != 0)
|
||||
{
|
||||
ss.Write(" executeBeforeBuild=\"{0}\"", Helper.NormalizePath(conf.Options["PreBuildEvent"].ToString()));
|
||||
}
|
||||
else
|
||||
{
|
||||
ss.Write(" executeBeforeBuild=\"{0}\"", conf.Options["PreBuildEvent"]);
|
||||
}
|
||||
if (conf.Options["PostBuildEvent"] != null && conf.Options["PostBuildEvent"].ToString().Length != 0)
|
||||
{
|
||||
ss.Write(" executeAfterBuild=\"{0}\"", Helper.NormalizePath(conf.Options["PostBuildEvent"].ToString()));
|
||||
}
|
||||
else
|
||||
{
|
||||
ss.Write(" executeAfterBuild=\"{0}\"", conf.Options["PostBuildEvent"]);
|
||||
}
|
||||
ss.Write(" executeBeforeBuildArguments=\"{0}\"", conf.Options["PreBuildEventArgs"]);
|
||||
ss.Write(" executeAfterBuildArguments=\"{0}\"", conf.Options["PreBuildEventArgs"]);
|
||||
ss.WriteLine(" />");
|
||||
ss.WriteLine(" </Configuration>");
|
||||
|
||||
count++;
|
||||
}
|
||||
ss.WriteLine(" </Configurations>");
|
||||
ss.WriteLine("</Project>");
|
||||
}
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Pop();
|
||||
}
|
||||
|
||||
private void WriteCombine(SolutionNode solution)
|
||||
{
|
||||
m_Kernel.Log.Write("Creating SharpDevelop combine and project files");
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
if(m_Kernel.AllowProject(project.FilterGroups))
|
||||
{
|
||||
m_Kernel.Log.Write("...Creating project: {0}", project.Name);
|
||||
WriteProject(solution, project);
|
||||
}
|
||||
}
|
||||
|
||||
m_Kernel.Log.Write("");
|
||||
string combFile = Helper.MakeFilePath(solution.FullPath, solution.Name, "cmbx");
|
||||
StreamWriter ss = new StreamWriter(combFile);
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Push();
|
||||
Helper.SetCurrentDir(Path.GetDirectoryName(combFile));
|
||||
|
||||
using(ss)
|
||||
{
|
||||
ss.WriteLine("<Combine fileversion=\"1.0\" name=\"{0}\" description=\"\">", solution.Name);
|
||||
|
||||
int count = 0;
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
if(count == 0)
|
||||
ss.WriteLine(" <StartMode startupentry=\"{0}\" single=\"True\">", project.Name);
|
||||
|
||||
ss.WriteLine(" <Execute entry=\"{0}\" type=\"None\" />", project.Name);
|
||||
count++;
|
||||
}
|
||||
ss.WriteLine(" </StartMode>");
|
||||
|
||||
ss.WriteLine(" <Entries>");
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
string path = Helper.MakePathRelativeTo(solution.FullPath, project.FullPath);
|
||||
ss.WriteLine(" <Entry filename=\"{0}\" />",
|
||||
Helper.MakeFilePath(path, project.Name, "prjx"));
|
||||
}
|
||||
ss.WriteLine(" </Entries>");
|
||||
|
||||
count = 0;
|
||||
foreach(ConfigurationNode conf in solution.Configurations)
|
||||
{
|
||||
if(count == 0)
|
||||
{
|
||||
ss.WriteLine(" <Configurations active=\"{0}\">", conf.Name);
|
||||
}
|
||||
|
||||
ss.WriteLine(" <Configuration name=\"{0}\">", conf.Name);
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
ss.WriteLine(" <Entry name=\"{0}\" configurationname=\"{1}\" build=\"True\" />", project.Name, conf.Name);
|
||||
}
|
||||
ss.WriteLine(" </Configuration>");
|
||||
|
||||
count++;
|
||||
}
|
||||
ss.WriteLine(" </Configurations>");
|
||||
ss.WriteLine("</Combine>");
|
||||
}
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Pop();
|
||||
}
|
||||
|
||||
private void CleanProject(ProjectNode project)
|
||||
{
|
||||
m_Kernel.Log.Write("...Cleaning project: {0}", project.Name);
|
||||
string projectFile = Helper.MakeFilePath(project.FullPath, project.Name, "prjx");
|
||||
Helper.DeleteIfExists(projectFile);
|
||||
}
|
||||
|
||||
private void CleanSolution(SolutionNode solution)
|
||||
{
|
||||
m_Kernel.Log.Write("Cleaning SharpDevelop combine and project files for", solution.Name);
|
||||
|
||||
string slnFile = Helper.MakeFilePath(solution.FullPath, solution.Name, "cmbx");
|
||||
Helper.DeleteIfExists(slnFile);
|
||||
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
CleanProject(project);
|
||||
}
|
||||
|
||||
m_Kernel.Log.Write("");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ITarget Members
|
||||
|
||||
/// <summary>
|
||||
/// Writes the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public void Write(Kernel kern)
|
||||
{
|
||||
if( kern == null )
|
||||
{
|
||||
throw new ArgumentNullException("kern");
|
||||
}
|
||||
m_Kernel = kern;
|
||||
foreach(SolutionNode solution in kern.Solutions)
|
||||
{
|
||||
WriteCombine(solution);
|
||||
}
|
||||
m_Kernel = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cleans the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public virtual void Clean(Kernel kern)
|
||||
{
|
||||
if( kern == null )
|
||||
{
|
||||
throw new ArgumentNullException("kern");
|
||||
}
|
||||
m_Kernel = kern;
|
||||
foreach(SolutionNode sol in kern.Solutions)
|
||||
{
|
||||
CleanSolution(sol);
|
||||
}
|
||||
m_Kernel = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return "sharpdev";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,96 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-28 01:49:58 +0100 (lö, 28 jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
|
||||
namespace Prebuild.Core.Targets
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Target("vs2002")]
|
||||
public class VS2002Target : VS2003Target
|
||||
{
|
||||
#region Private Methods
|
||||
|
||||
private void SetVS2002()
|
||||
{
|
||||
this.SolutionVersion = "7.00";
|
||||
this.ProductVersion = "7.0.9254";
|
||||
this.SchemaVersion = "1.0";
|
||||
this.VersionName = "2002";
|
||||
this.Version = VSVersion.VS70;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Writes the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public override void Write(Kernel kern)
|
||||
{
|
||||
SetVS2002();
|
||||
base.Write(kern);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cleans the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public override void Clean(Kernel kern)
|
||||
{
|
||||
SetVS2002();
|
||||
base.Clean(kern);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public override string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return "vs2002";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,633 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-09-29 21:11:40 +0200 (fr, 29 sep 2006) $
|
||||
* $Revision: 177 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.IO;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Nodes;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Targets
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public enum VSVersion
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
VS70,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
VS71,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
VS80
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Target("vs2003")]
|
||||
public class VS2003Target : ITarget
|
||||
{
|
||||
|
||||
#region Fields
|
||||
|
||||
string solutionVersion = "8.00";
|
||||
string productVersion = "7.10.3077";
|
||||
string schemaVersion = "2.0";
|
||||
string versionName = "2003";
|
||||
VSVersion version = VSVersion.VS71;
|
||||
|
||||
Hashtable m_Tools;
|
||||
Kernel m_Kernel;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the solution version.
|
||||
/// </summary>
|
||||
/// <value>The solution version.</value>
|
||||
protected string SolutionVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.solutionVersion;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.solutionVersion = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the product version.
|
||||
/// </summary>
|
||||
/// <value>The product version.</value>
|
||||
protected string ProductVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.productVersion;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.productVersion = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the schema version.
|
||||
/// </summary>
|
||||
/// <value>The schema version.</value>
|
||||
protected string SchemaVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.schemaVersion;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.schemaVersion = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the version.
|
||||
/// </summary>
|
||||
/// <value>The name of the version.</value>
|
||||
protected string VersionName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.versionName;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.versionName = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the version.
|
||||
/// </summary>
|
||||
/// <value>The version.</value>
|
||||
protected VSVersion Version
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.version = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="VS2003Target"/> class.
|
||||
/// </summary>
|
||||
public VS2003Target()
|
||||
{
|
||||
m_Tools = new Hashtable();
|
||||
|
||||
m_Tools["C#"] = new ToolInfo("C#", "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}", "csproj", "CSHARP");
|
||||
m_Tools["VB.NET"] = new ToolInfo("VB.NET", "{F184B08F-C81C-45F6-A57F-5ABD9991F28F}", "vbproj", "VisualBasic");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private string MakeRefPath(ProjectNode project)
|
||||
{
|
||||
string ret = "";
|
||||
foreach(ReferencePathNode node in project.ReferencePaths)
|
||||
{
|
||||
try
|
||||
{
|
||||
string fullPath = Helper.ResolvePath(node.Path);
|
||||
if(ret.Length < 1)
|
||||
{
|
||||
ret = fullPath;
|
||||
}
|
||||
else
|
||||
{
|
||||
ret += ";" + fullPath;
|
||||
}
|
||||
}
|
||||
catch(ArgumentException)
|
||||
{
|
||||
m_Kernel.Log.Write(LogType.Warning, "Could not resolve reference path: {0}", node.Path);
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
private void WriteProject(SolutionNode solution, ProjectNode project)
|
||||
{
|
||||
if(!m_Tools.ContainsKey(project.Language))
|
||||
{
|
||||
throw new UnknownLanguageException("Unknown .NET language: " + project.Language);
|
||||
}
|
||||
|
||||
ToolInfo toolInfo = (ToolInfo)m_Tools[project.Language];
|
||||
string projectFile = Helper.MakeFilePath(project.FullPath, project.Name, toolInfo.FileExtension);
|
||||
StreamWriter ps = new StreamWriter(projectFile);
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Push();
|
||||
Helper.SetCurrentDir(Path.GetDirectoryName(projectFile));
|
||||
|
||||
IEnumerator enumerator;
|
||||
//ConfigurationNode scripts;
|
||||
|
||||
using(ps)
|
||||
{
|
||||
ps.WriteLine("<VisualStudioProject>");
|
||||
ps.WriteLine(" <{0}", toolInfo.XmlTag);
|
||||
ps.WriteLine("\t\t\t\tProjectType = \"Local\"");
|
||||
ps.WriteLine("\t\t\t\tProductVersion = \"{0}\"", this.ProductVersion);
|
||||
ps.WriteLine("\t\t\t\tSchemaVersion = \"{0}\"", this.SchemaVersion);
|
||||
ps.WriteLine("\t\t\t\tProjectGuid = \"{{{0}}}\"", project.Guid.ToString().ToUpper());
|
||||
ps.WriteLine("\t\t>");
|
||||
|
||||
ps.WriteLine("\t\t\t\t<Build>");
|
||||
ps.WriteLine(" <Settings");
|
||||
ps.WriteLine("\t\t\t\t ApplicationIcon = \"{0}\"",project.AppIcon);
|
||||
ps.WriteLine("\t\t\t\t AssemblyKeyContainerName = \"\"");
|
||||
ps.WriteLine("\t\t\t\t AssemblyName = \"{0}\"", project.AssemblyName);
|
||||
ps.WriteLine("\t\t\t\t AssemblyOriginatorKeyFile = \"\"");
|
||||
ps.WriteLine("\t\t\t\t DefaultClientScript = \"JScript\"");
|
||||
ps.WriteLine("\t\t\t\t DefaultHTMLPageLayout = \"Grid\"");
|
||||
ps.WriteLine("\t\t\t\t DefaultTargetSchema = \"IE50\"");
|
||||
ps.WriteLine("\t\t\t\t DelaySign = \"false\"");
|
||||
|
||||
if(this.Version == VSVersion.VS70)
|
||||
{
|
||||
ps.WriteLine("\t\t\t\t NoStandardLibraries = \"false\"");
|
||||
}
|
||||
|
||||
ps.WriteLine("\t\t\t\t OutputType = \"{0}\"", project.Type.ToString());
|
||||
|
||||
enumerator = project.Configurations.GetEnumerator();
|
||||
enumerator.Reset();
|
||||
enumerator.MoveNext();
|
||||
foreach(ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
if (conf.Options["PreBuildEvent"] != null && conf.Options["PreBuildEvent"].ToString().Length != 0)
|
||||
{
|
||||
ps.WriteLine("\t\t\t\t PreBuildEvent = \"{0}\"", Helper.NormalizePath(conf.Options["PreBuildEvent"].ToString()));
|
||||
}
|
||||
else
|
||||
{
|
||||
ps.WriteLine("\t\t\t\t PreBuildEvent = \"{0}\"", conf.Options["PreBuildEvent"]);
|
||||
}
|
||||
if (conf.Options["PostBuildEvent"] != null && conf.Options["PostBuildEvent"].ToString().Length != 0)
|
||||
{
|
||||
ps.WriteLine("\t\t\t\t PostBuildEvent = \"{0}\"", Helper.NormalizePath(conf.Options["PostBuildEvent"].ToString()));
|
||||
}
|
||||
else
|
||||
{
|
||||
ps.WriteLine("\t\t\t\t PostBuildEvent = \"{0}\"", conf.Options["PostBuildEvent"]);
|
||||
}
|
||||
if (conf.Options["RunPostBuildEvent"] == null)
|
||||
{
|
||||
ps.WriteLine("\t\t\t\t RunPostBuildEvent = \"{0}\"", "OnBuildSuccess");
|
||||
}
|
||||
else
|
||||
{
|
||||
ps.WriteLine("\t\t\t\t RunPostBuildEvent = \"{0}\"", conf.Options["RunPostBuildEvent"]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
ps.WriteLine("\t\t\t\t RootNamespace = \"{0}\"", project.RootNamespace);
|
||||
ps.WriteLine("\t\t\t\t StartupObject = \"{0}\"", project.StartupObject);
|
||||
ps.WriteLine("\t\t >");
|
||||
|
||||
foreach(ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
ps.WriteLine("\t\t\t\t <Config");
|
||||
ps.WriteLine("\t\t\t\t Name = \"{0}\"", conf.Name);
|
||||
ps.WriteLine("\t\t\t\t AllowUnsafeBlocks = \"{0}\"", conf.Options["AllowUnsafe"].ToString().ToLower());
|
||||
ps.WriteLine("\t\t\t\t BaseAddress = \"{0}\"", conf.Options["BaseAddress"]);
|
||||
ps.WriteLine("\t\t\t\t CheckForOverflowUnderflow = \"{0}\"", conf.Options["CheckUnderflowOverflow"].ToString().ToLower());
|
||||
ps.WriteLine("\t\t\t\t ConfigurationOverrideFile = \"\"");
|
||||
ps.WriteLine("\t\t\t\t DefineConstants = \"{0}\"", conf.Options["CompilerDefines"]);
|
||||
ps.WriteLine("\t\t\t\t DocumentationFile = \"{0}\"", GetXmlDocFile(project, conf));//default to the assembly name
|
||||
ps.WriteLine("\t\t\t\t DebugSymbols = \"{0}\"", conf.Options["DebugInformation"].ToString().ToLower());
|
||||
ps.WriteLine("\t\t\t\t FileAlignment = \"{0}\"", conf.Options["FileAlignment"]);
|
||||
ps.WriteLine("\t\t\t\t IncrementalBuild = \"{0}\"", conf.Options["IncrementalBuild"].ToString().ToLower());
|
||||
|
||||
if(this.Version == VSVersion.VS71)
|
||||
{
|
||||
ps.WriteLine("\t\t\t\t NoStdLib = \"{0}\"", conf.Options["NoStdLib"].ToString().ToLower());
|
||||
ps.WriteLine("\t\t\t\t NoWarn = \"{0}\"", conf.Options["SuppressWarnings"].ToString().ToLower());
|
||||
}
|
||||
|
||||
ps.WriteLine("\t\t\t\t Optimize = \"{0}\"", conf.Options["OptimizeCode"].ToString().ToLower());
|
||||
ps.WriteLine(" OutputPath = \"{0}\"",
|
||||
Helper.EndPath(Helper.NormalizePath(conf.Options["OutputPath"].ToString())));
|
||||
ps.WriteLine(" RegisterForComInterop = \"{0}\"", conf.Options["RegisterComInterop"].ToString().ToLower());
|
||||
ps.WriteLine(" RemoveIntegerChecks = \"{0}\"", conf.Options["RemoveIntegerChecks"].ToString().ToLower());
|
||||
ps.WriteLine(" TreatWarningsAsErrors = \"{0}\"", conf.Options["WarningsAsErrors"].ToString().ToLower());
|
||||
ps.WriteLine(" WarningLevel = \"{0}\"", conf.Options["WarningLevel"]);
|
||||
ps.WriteLine(" />");
|
||||
}
|
||||
|
||||
ps.WriteLine(" </Settings>");
|
||||
|
||||
ps.WriteLine(" <References>");
|
||||
foreach(ReferenceNode refr in project.References)
|
||||
{
|
||||
ps.WriteLine(" <Reference");
|
||||
ps.WriteLine(" Name = \"{0}\"", refr.Name);
|
||||
ps.WriteLine(" AssemblyName = \"{0}\"", refr.Name);
|
||||
|
||||
if(solution.ProjectsTable.ContainsKey(refr.Name))
|
||||
{
|
||||
ProjectNode refProject = (ProjectNode)solution.ProjectsTable[refr.Name];
|
||||
ps.WriteLine(" Project = \"{{{0}}}\"", refProject.Guid.ToString().ToUpper());
|
||||
ps.WriteLine(" Package = \"{0}\"", toolInfo.Guid.ToString().ToUpper());
|
||||
}
|
||||
else
|
||||
{
|
||||
if(refr.Path != null)
|
||||
{
|
||||
ps.WriteLine(" HintPath = \"{0}\"", Helper.MakeFilePath(refr.Path, refr.Name, "dll"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(refr.LocalCopySpecified)
|
||||
{
|
||||
ps.WriteLine(" Private = \"{0}\"",refr.LocalCopy);
|
||||
}
|
||||
|
||||
ps.WriteLine(" />");
|
||||
}
|
||||
ps.WriteLine(" </References>");
|
||||
|
||||
ps.WriteLine(" </Build>");
|
||||
ps.WriteLine(" <Files>");
|
||||
|
||||
ps.WriteLine(" <Include>");
|
||||
|
||||
foreach(string file in project.Files)
|
||||
{
|
||||
string fileName = file.Replace(".\\", "");
|
||||
ps.WriteLine(" <File");
|
||||
ps.WriteLine(" RelPath = \"{0}\"", fileName);
|
||||
ps.WriteLine(" SubType = \"{0}\"", project.Files.GetSubType(file));
|
||||
ps.WriteLine(" BuildAction = \"{0}\"", project.Files.GetBuildAction(file));
|
||||
ps.WriteLine(" />");
|
||||
|
||||
if (project.Files.GetSubType(file) != SubType.Code && project.Files.GetSubType(file) != SubType.Settings)
|
||||
{
|
||||
ps.WriteLine(" <File");
|
||||
ps.WriteLine(" RelPath = \"{0}\"", fileName.Substring(0, fileName.LastIndexOf('.')) + ".resx");
|
||||
int slash = fileName.LastIndexOf('\\');
|
||||
if (slash == -1)
|
||||
{
|
||||
ps.WriteLine(" DependentUpon = \"{0}\"", fileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
ps.WriteLine(" DependentUpon = \"{0}\"", fileName.Substring(slash + 1, fileName.Length - slash - 1));
|
||||
}
|
||||
ps.WriteLine(" BuildAction = \"{0}\"", "EmbeddedResource");
|
||||
ps.WriteLine(" />");
|
||||
|
||||
}
|
||||
}
|
||||
ps.WriteLine(" </Include>");
|
||||
|
||||
ps.WriteLine(" </Files>");
|
||||
ps.WriteLine(" </{0}>", toolInfo.XmlTag);
|
||||
ps.WriteLine("</VisualStudioProject>");
|
||||
}
|
||||
|
||||
ps = new StreamWriter(projectFile + ".user");
|
||||
using(ps)
|
||||
{
|
||||
ps.WriteLine("<VisualStudioProject>");
|
||||
ps.WriteLine(" <{0}>", toolInfo.XmlTag);
|
||||
ps.WriteLine(" <Build>");
|
||||
|
||||
ps.WriteLine(" <Settings ReferencePath=\"{0}\">", MakeRefPath(project));
|
||||
foreach(ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
ps.WriteLine(" <Config");
|
||||
ps.WriteLine(" Name = \"{0}\"", conf.Name);
|
||||
ps.WriteLine(" />");
|
||||
}
|
||||
ps.WriteLine(" </Settings>");
|
||||
|
||||
ps.WriteLine(" </Build>");
|
||||
ps.WriteLine(" </{0}>", toolInfo.XmlTag);
|
||||
ps.WriteLine("</VisualStudioProject>");
|
||||
}
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Pop();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the XML doc file.
|
||||
/// </summary>
|
||||
/// <param name="project">The project.</param>
|
||||
/// <param name="conf">The conf.</param>
|
||||
/// <returns></returns>
|
||||
public static string GetXmlDocFile(ProjectNode project, ConfigurationNode conf)
|
||||
{
|
||||
if( conf == null )
|
||||
{
|
||||
throw new ArgumentNullException("conf");
|
||||
}
|
||||
if( project == null )
|
||||
{
|
||||
throw new ArgumentNullException("project");
|
||||
}
|
||||
// if(!(bool)conf.Options["GenerateXmlDocFile"]) //default to none, if the generate option is false
|
||||
// {
|
||||
// return string.Empty;
|
||||
// }
|
||||
|
||||
//default to "AssemblyName.xml"
|
||||
//string defaultValue = Path.GetFileNameWithoutExtension(project.AssemblyName) + ".xml";
|
||||
//return (string)conf.Options["XmlDocFile", defaultValue];
|
||||
|
||||
//default to no XmlDocFile file
|
||||
return (string)conf.Options["XmlDocFile", ""];
|
||||
}
|
||||
|
||||
private void WriteSolution(SolutionNode solution)
|
||||
{
|
||||
m_Kernel.Log.Write("Creating Visual Studio {0} solution and project files", this.VersionName);
|
||||
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
if(m_Kernel.AllowProject(project.FilterGroups))
|
||||
{
|
||||
m_Kernel.Log.Write("...Creating project: {0}", project.Name);
|
||||
WriteProject(solution, project);
|
||||
}
|
||||
}
|
||||
|
||||
m_Kernel.Log.Write("");
|
||||
string solutionFile = Helper.MakeFilePath(solution.FullPath, solution.Name, "sln");
|
||||
StreamWriter ss = new StreamWriter(solutionFile);
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Push();
|
||||
Helper.SetCurrentDir(Path.GetDirectoryName(solutionFile));
|
||||
|
||||
using(ss)
|
||||
{
|
||||
ss.WriteLine("Microsoft Visual Studio Solution File, Format Version {0}", this.SolutionVersion);
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
if(!m_Tools.ContainsKey(project.Language))
|
||||
{
|
||||
throw new UnknownLanguageException("Unknown .NET language: " + project.Language);
|
||||
}
|
||||
|
||||
ToolInfo toolInfo = (ToolInfo)m_Tools[project.Language];
|
||||
|
||||
string path = Helper.MakePathRelativeTo(solution.FullPath, project.FullPath);
|
||||
ss.WriteLine("Project(\"{0}\") = \"{1}\", \"{2}\", \"{{{3}}}\"",
|
||||
toolInfo.Guid, project.Name, Helper.MakeFilePath(path, project.Name,
|
||||
toolInfo.FileExtension), project.Guid.ToString().ToUpper());
|
||||
|
||||
ss.WriteLine("\tProjectSection(ProjectDependencies) = postProject");
|
||||
ss.WriteLine("\tEndProjectSection");
|
||||
|
||||
ss.WriteLine("EndProject");
|
||||
}
|
||||
|
||||
ss.WriteLine("Global");
|
||||
|
||||
ss.WriteLine("\tGlobalSection(SolutionConfiguration) = preSolution");
|
||||
foreach(ConfigurationNode conf in solution.Configurations)
|
||||
{
|
||||
ss.WriteLine("\t\t{0} = {0}", conf.Name);
|
||||
}
|
||||
ss.WriteLine("\tEndGlobalSection");
|
||||
|
||||
ss.WriteLine("\tGlobalSection(ProjectDependencies) = postSolution");
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
for(int i = 0; i < project.References.Count; i++)
|
||||
{
|
||||
ReferenceNode refr = (ReferenceNode)project.References[i];
|
||||
if(solution.ProjectsTable.ContainsKey(refr.Name))
|
||||
{
|
||||
ProjectNode refProject = (ProjectNode)solution.ProjectsTable[refr.Name];
|
||||
ss.WriteLine("\t\t({{{0}}}).{1} = ({{{2}}})",
|
||||
project.Guid.ToString().ToUpper()
|
||||
, i,
|
||||
refProject.Guid.ToString().ToUpper()
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
ss.WriteLine("\tEndGlobalSection");
|
||||
|
||||
ss.WriteLine("\tGlobalSection(ProjectConfiguration) = postSolution");
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
foreach(ConfigurationNode conf in solution.Configurations)
|
||||
{
|
||||
ss.WriteLine("\t\t{{{0}}}.{1}.ActiveCfg = {1}|.NET",
|
||||
project.Guid.ToString().ToUpper(),
|
||||
conf.Name);
|
||||
|
||||
ss.WriteLine("\t\t{{{0}}}.{1}.Build.0 = {1}|.NET",
|
||||
project.Guid.ToString().ToUpper(),
|
||||
conf.Name);
|
||||
}
|
||||
}
|
||||
ss.WriteLine("\tEndGlobalSection");
|
||||
|
||||
if(solution.Files != null)
|
||||
{
|
||||
ss.WriteLine("\tGlobalSection(SolutionItems) = postSolution");
|
||||
foreach(string file in solution.Files)
|
||||
{
|
||||
ss.WriteLine("\t\t{0} = {0}", file);
|
||||
}
|
||||
ss.WriteLine("\tEndGlobalSection");
|
||||
}
|
||||
|
||||
ss.WriteLine("\tGlobalSection(ExtensibilityGlobals) = postSolution");
|
||||
ss.WriteLine("\tEndGlobalSection");
|
||||
ss.WriteLine("\tGlobalSection(ExtensibilityAddIns) = postSolution");
|
||||
ss.WriteLine("\tEndGlobalSection");
|
||||
|
||||
ss.WriteLine("EndGlobal");
|
||||
}
|
||||
|
||||
m_Kernel.CurrentWorkingDirectory.Pop();
|
||||
}
|
||||
|
||||
private void CleanProject(ProjectNode project)
|
||||
{
|
||||
m_Kernel.Log.Write("...Cleaning project: {0}", project.Name);
|
||||
|
||||
ToolInfo toolInfo = (ToolInfo)m_Tools[project.Language];
|
||||
string projectFile = Helper.MakeFilePath(project.FullPath, project.Name, toolInfo.FileExtension);
|
||||
string userFile = projectFile + ".user";
|
||||
|
||||
Helper.DeleteIfExists(projectFile);
|
||||
Helper.DeleteIfExists(userFile);
|
||||
}
|
||||
|
||||
private void CleanSolution(SolutionNode solution)
|
||||
{
|
||||
m_Kernel.Log.Write("Cleaning Visual Studio {0} solution and project files", this.VersionName, solution.Name);
|
||||
|
||||
string slnFile = Helper.MakeFilePath(solution.FullPath, solution.Name, "sln");
|
||||
string suoFile = Helper.MakeFilePath(solution.FullPath, solution.Name, "suo");
|
||||
|
||||
Helper.DeleteIfExists(slnFile);
|
||||
Helper.DeleteIfExists(suoFile);
|
||||
|
||||
foreach(ProjectNode project in solution.Projects)
|
||||
{
|
||||
CleanProject(project);
|
||||
}
|
||||
|
||||
m_Kernel.Log.Write("");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ITarget Members
|
||||
|
||||
/// <summary>
|
||||
/// Writes the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public virtual void Write(Kernel kern)
|
||||
{
|
||||
if( kern == null )
|
||||
{
|
||||
throw new ArgumentNullException("kern");
|
||||
}
|
||||
m_Kernel = kern;
|
||||
foreach(SolutionNode sol in m_Kernel.Solutions)
|
||||
{
|
||||
WriteSolution(sol);
|
||||
}
|
||||
m_Kernel = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cleans the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public virtual void Clean(Kernel kern)
|
||||
{
|
||||
if( kern == null )
|
||||
{
|
||||
throw new ArgumentNullException("kern");
|
||||
}
|
||||
m_Kernel = kern;
|
||||
foreach(SolutionNode sol in m_Kernel.Solutions)
|
||||
{
|
||||
CleanSolution(sol);
|
||||
}
|
||||
m_Kernel = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public virtual string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return "vs2003";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,869 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004 Matthew Holmes (matthew@wildfiregames.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: robloach $
|
||||
* $Date: 2007-02-27 19:52:34 +0100 (ti, 27 feb 2007) $
|
||||
* $Revision: 207 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.IO;
|
||||
|
||||
using Prebuild.Core.Attributes;
|
||||
using Prebuild.Core.Interfaces;
|
||||
using Prebuild.Core.Nodes;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild.Core.Targets
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public struct ToolInfo
|
||||
{
|
||||
string name;
|
||||
string guid;
|
||||
string fileExtension;
|
||||
string xmlTag;
|
||||
string importProject;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return name;
|
||||
}
|
||||
set
|
||||
{
|
||||
name = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the GUID.
|
||||
/// </summary>
|
||||
/// <value>The GUID.</value>
|
||||
public string Guid
|
||||
{
|
||||
get
|
||||
{
|
||||
return guid;
|
||||
}
|
||||
set
|
||||
{
|
||||
guid = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the file extension.
|
||||
/// </summary>
|
||||
/// <value>The file extension.</value>
|
||||
public string FileExtension
|
||||
{
|
||||
get
|
||||
{
|
||||
return fileExtension;
|
||||
}
|
||||
set
|
||||
{
|
||||
fileExtension = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the XML tag.
|
||||
/// </summary>
|
||||
/// <value>The XML tag.</value>
|
||||
public string XmlTag
|
||||
{
|
||||
get
|
||||
{
|
||||
return xmlTag;
|
||||
}
|
||||
set
|
||||
{
|
||||
xmlTag = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the import project property.
|
||||
/// </summary>
|
||||
/// <value>The ImportProject tag.</value>
|
||||
public string ImportProject
|
||||
{
|
||||
get
|
||||
{
|
||||
return importProject;
|
||||
}
|
||||
set
|
||||
{
|
||||
importProject = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ToolInfo"/> class.
|
||||
/// </summary>
|
||||
/// <param name="name">The name.</param>
|
||||
/// <param name="guid">The GUID.</param>
|
||||
/// <param name="fileExtension">The file extension.</param>
|
||||
/// <param name="xml">The XML.</param>
|
||||
/// <param name="importProject">The import project.</param>
|
||||
public ToolInfo(string name, string guid, string fileExtension, string xml, string importProject)
|
||||
{
|
||||
this.name = name;
|
||||
this.guid = guid;
|
||||
this.fileExtension = fileExtension;
|
||||
this.xmlTag = xml;
|
||||
this.importProject = importProject;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ToolInfo"/> class.
|
||||
/// </summary>
|
||||
/// <param name="name">The name.</param>
|
||||
/// <param name="guid">The GUID.</param>
|
||||
/// <param name="fileExtension">The file extension.</param>
|
||||
/// <param name="xml">The XML.</param>
|
||||
public ToolInfo(string name, string guid, string fileExtension, string xml)
|
||||
{
|
||||
this.name = name;
|
||||
this.guid = guid;
|
||||
this.fileExtension = fileExtension;
|
||||
this.xmlTag = xml;
|
||||
this.importProject = "$(MSBuildBinPath)\\Microsoft." + xml + ".Targets";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Equals operator
|
||||
/// </summary>
|
||||
/// <param name="obj">ToolInfo to compare</param>
|
||||
/// <returns>true if toolInfos are equal</returns>
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
{
|
||||
throw new ArgumentNullException("obj");
|
||||
}
|
||||
if (obj.GetType() != typeof(ToolInfo))
|
||||
return false;
|
||||
|
||||
ToolInfo c = (ToolInfo)obj;
|
||||
return ((this.name == c.name) && (this.guid == c.guid) && (this.fileExtension == c.fileExtension) && (this.importProject == c.importProject));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Equals operator
|
||||
/// </summary>
|
||||
/// <param name="c1">ToolInfo to compare</param>
|
||||
/// <param name="c2">ToolInfo to compare</param>
|
||||
/// <returns>True if toolInfos are equal</returns>
|
||||
public static bool operator ==(ToolInfo c1, ToolInfo c2)
|
||||
{
|
||||
return ((c1.name == c2.name) && (c1.guid == c2.guid) && (c1.fileExtension == c2.fileExtension) && (c1.importProject == c2.importProject) && (c1.xmlTag == c2.xmlTag));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Not equals operator
|
||||
/// </summary>
|
||||
/// <param name="c1">ToolInfo to compare</param>
|
||||
/// <param name="c2">ToolInfo to compare</param>
|
||||
/// <returns>True if toolInfos are not equal</returns>
|
||||
public static bool operator !=(ToolInfo c1, ToolInfo c2)
|
||||
{
|
||||
return !(c1 == c2);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Hash Code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return name.GetHashCode() ^ guid.GetHashCode() ^ this.fileExtension.GetHashCode() ^ this.importProject.GetHashCode() ^ this.xmlTag.GetHashCode();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Target("vs2005")]
|
||||
public class VS2005Target : ITarget
|
||||
{
|
||||
#region Inner Classes
|
||||
|
||||
#endregion
|
||||
|
||||
#region Fields
|
||||
|
||||
string solutionVersion = "9.00";
|
||||
string productVersion = "8.0.50727";
|
||||
string schemaVersion = "2.0";
|
||||
string versionName = "Visual C# 2005";
|
||||
VSVersion version = VSVersion.VS80;
|
||||
|
||||
Hashtable tools;
|
||||
Kernel kernel;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the solution version.
|
||||
/// </summary>
|
||||
/// <value>The solution version.</value>
|
||||
protected string SolutionVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.solutionVersion;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.solutionVersion = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the product version.
|
||||
/// </summary>
|
||||
/// <value>The product version.</value>
|
||||
protected string ProductVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.productVersion;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.productVersion = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the schema version.
|
||||
/// </summary>
|
||||
/// <value>The schema version.</value>
|
||||
protected string SchemaVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.schemaVersion;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.schemaVersion = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the version.
|
||||
/// </summary>
|
||||
/// <value>The name of the version.</value>
|
||||
protected string VersionName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.versionName;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.versionName = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the version.
|
||||
/// </summary>
|
||||
/// <value>The version.</value>
|
||||
protected VSVersion Version
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.version = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="VS2005Target"/> class.
|
||||
/// </summary>
|
||||
public VS2005Target()
|
||||
{
|
||||
this.tools = new Hashtable();
|
||||
|
||||
this.tools["C#"] = new ToolInfo("C#", "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}", "csproj", "CSHARP", "$(MSBuildBinPath)\\Microsoft.CSHARP.Targets");
|
||||
this.tools["Boo"] = new ToolInfo("Boo", "{45CEA7DC-C2ED-48A6-ACE0-E16144C02365}", "booproj", "Boo", "$(BooBinPath)\\Boo.Microsoft.Build.targets");
|
||||
this.tools["VisualBasic"] = new ToolInfo("VisualBasic", "{F184B08F-C81C-45F6-A57F-5ABD9991F28F}", "vbproj", "VisualBasic", "$(MSBuildBinPath)\\Microsoft.VisualBasic.Targets");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private string MakeRefPath(ProjectNode project)
|
||||
{
|
||||
string ret = "";
|
||||
foreach (ReferencePathNode node in project.ReferencePaths)
|
||||
{
|
||||
try
|
||||
{
|
||||
string fullPath = Helper.ResolvePath(node.Path);
|
||||
if (ret.Length < 1)
|
||||
{
|
||||
ret = fullPath;
|
||||
}
|
||||
else
|
||||
{
|
||||
ret += ";" + fullPath;
|
||||
}
|
||||
}
|
||||
catch (ArgumentException)
|
||||
{
|
||||
this.kernel.Log.Write(LogType.Warning, "Could not resolve reference path: {0}", node.Path);
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
private void WriteProject(SolutionNode solution, ProjectNode project)
|
||||
{
|
||||
if (!tools.ContainsKey(project.Language))
|
||||
{
|
||||
throw new UnknownLanguageException("Unknown .NET language: " + project.Language);
|
||||
}
|
||||
|
||||
ToolInfo toolInfo = (ToolInfo)tools[project.Language];
|
||||
string projectFile = Helper.MakeFilePath(project.FullPath, project.Name, toolInfo.FileExtension);
|
||||
StreamWriter ps = new StreamWriter(projectFile);
|
||||
|
||||
kernel.CurrentWorkingDirectory.Push();
|
||||
Helper.SetCurrentDir(Path.GetDirectoryName(projectFile));
|
||||
|
||||
#region Project File
|
||||
using (ps)
|
||||
{
|
||||
ps.WriteLine("<Project DefaultTargets=\"Build\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">");
|
||||
//ps.WriteLine(" <{0}", toolInfo.XMLTag);
|
||||
ps.WriteLine(" <PropertyGroup>");
|
||||
ps.WriteLine(" <ProjectType>Local</ProjectType>");
|
||||
ps.WriteLine(" <ProductVersion>{0}</ProductVersion>", this.ProductVersion);
|
||||
ps.WriteLine(" <SchemaVersion>{0}</SchemaVersion>", this.SchemaVersion);
|
||||
ps.WriteLine(" <ProjectGuid>{{{0}}}</ProjectGuid>", project.Guid.ToString().ToUpper());
|
||||
|
||||
ps.WriteLine(" <Configuration Condition=\" '$(Configuration)' == '' \">Debug</Configuration>");
|
||||
ps.WriteLine(" <Platform Condition=\" '$(Platform)' == '' \">AnyCPU</Platform>");
|
||||
//ps.WriteLine(" <Build>");
|
||||
|
||||
//ps.WriteLine(" <Settings");
|
||||
ps.WriteLine(" <ApplicationIcon>{0}</ApplicationIcon>", project.AppIcon);
|
||||
ps.WriteLine(" <AssemblyKeyContainerName>");
|
||||
ps.WriteLine(" </AssemblyKeyContainerName>");
|
||||
ps.WriteLine(" <AssemblyName>{0}</AssemblyName>", project.AssemblyName);
|
||||
foreach (ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
if (conf.Options.KeyFile != "")
|
||||
{
|
||||
ps.WriteLine(" <AssemblyOriginatorKeyFile>{0}</AssemblyOriginatorKeyFile>", conf.Options.KeyFile);
|
||||
ps.WriteLine(" <SignAssembly>true</SignAssembly>");
|
||||
break;
|
||||
}
|
||||
}
|
||||
ps.WriteLine(" <DefaultClientScript>JScript</DefaultClientScript>");
|
||||
ps.WriteLine(" <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>");
|
||||
ps.WriteLine(" <DefaultTargetSchema>IE50</DefaultTargetSchema>");
|
||||
ps.WriteLine(" <DelaySign>false</DelaySign>");
|
||||
|
||||
//if(m_Version == VSVersion.VS70)
|
||||
// ps.WriteLine(" NoStandardLibraries = \"false\"");
|
||||
|
||||
ps.WriteLine(" <OutputType>{0}</OutputType>", project.Type.ToString());
|
||||
ps.WriteLine(" <AppDesignerFolder>{0}</AppDesignerFolder>", project.DesignerFolder);
|
||||
ps.WriteLine(" <RootNamespace>{0}</RootNamespace>", project.RootNamespace);
|
||||
ps.WriteLine(" <StartupObject>{0}</StartupObject>", project.StartupObject);
|
||||
//ps.WriteLine(" >");
|
||||
ps.WriteLine(" <FileUpgradeFlags>");
|
||||
ps.WriteLine(" </FileUpgradeFlags>");
|
||||
|
||||
ps.WriteLine(" </PropertyGroup>");
|
||||
|
||||
foreach (ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
ps.Write(" <PropertyGroup ");
|
||||
ps.WriteLine("Condition=\" '$(Configuration)|$(Platform)' == '{0}|AnyCPU' \">", conf.Name);
|
||||
ps.WriteLine(" <AllowUnsafeBlocks>{0}</AllowUnsafeBlocks>", conf.Options["AllowUnsafe"]);
|
||||
ps.WriteLine(" <BaseAddress>{0}</BaseAddress>", conf.Options["BaseAddress"]);
|
||||
ps.WriteLine(" <CheckForOverflowUnderflow>{0}</CheckForOverflowUnderflow>", conf.Options["CheckUnderflowOverflow"]);
|
||||
ps.WriteLine(" <ConfigurationOverrideFile>");
|
||||
ps.WriteLine(" </ConfigurationOverrideFile>");
|
||||
ps.WriteLine(" <DefineConstants>{0}</DefineConstants>", conf.Options["CompilerDefines"]);
|
||||
ps.WriteLine(" <DocumentationFile>{0}</DocumentationFile>", conf.Options["XmlDocFile"]);
|
||||
ps.WriteLine(" <DebugSymbols>{0}</DebugSymbols>", conf.Options["DebugInformation"]);
|
||||
ps.WriteLine(" <FileAlignment>{0}</FileAlignment>", conf.Options["FileAlignment"]);
|
||||
// ps.WriteLine(" <IncrementalBuild = \"{0}\"", conf.Options["IncrementalBuild"]);
|
||||
|
||||
// if(m_Version == VSVersion.VS71)
|
||||
// {
|
||||
// ps.WriteLine(" NoStdLib = \"{0}\"", conf.Options["NoStdLib"]);
|
||||
// ps.WriteLine(" NoWarn = \"{0}\"", conf.Options["SuppressWarnings"]);
|
||||
// }
|
||||
|
||||
ps.WriteLine(" <Optimize>{0}</Optimize>", conf.Options["OptimizeCode"]);
|
||||
ps.WriteLine(" <OutputPath>{0}</OutputPath>",
|
||||
Helper.EndPath(Helper.NormalizePath(conf.Options["OutputPath"].ToString())));
|
||||
ps.WriteLine(" <RegisterForComInterop>{0}</RegisterForComInterop>", conf.Options["RegisterComInterop"]);
|
||||
ps.WriteLine(" <RemoveIntegerChecks>{0}</RemoveIntegerChecks>", conf.Options["RemoveIntegerChecks"]);
|
||||
ps.WriteLine(" <TreatWarningsAsErrors>{0}</TreatWarningsAsErrors>", conf.Options["WarningsAsErrors"]);
|
||||
ps.WriteLine(" <WarningLevel>{0}</WarningLevel>", conf.Options["WarningLevel"]);
|
||||
ps.WriteLine(" <NoWarn>{0}</NoWarn>", conf.Options["SuppressWarnings"]);
|
||||
ps.WriteLine(" </PropertyGroup>");
|
||||
}
|
||||
|
||||
//ps.WriteLine(" </Settings>");
|
||||
|
||||
// Assembly References
|
||||
ps.WriteLine(" <ItemGroup>");
|
||||
foreach (ReferenceNode refr in project.References)
|
||||
{
|
||||
if (!solution.ProjectsTable.ContainsKey(refr.Name))
|
||||
{
|
||||
ps.Write(" <Reference");
|
||||
ps.Write(" Include=\"");
|
||||
ps.Write(refr.Name);
|
||||
|
||||
if (!string.IsNullOrEmpty(refr.Version))
|
||||
{
|
||||
ps.Write(", Version=");
|
||||
ps.Write(refr.Version);
|
||||
}
|
||||
|
||||
ps.WriteLine("\" >");
|
||||
|
||||
// TODO: Allow reference to *.exe files
|
||||
ps.WriteLine(" <HintPath>{0}</HintPath>", Helper.MakePathRelativeTo(project.FullPath, refr.Path + "\\" + refr.Name + ".dll"));
|
||||
ps.WriteLine(" <Private>{0}</Private>", refr.LocalCopy);
|
||||
ps.WriteLine(" </Reference>");
|
||||
}
|
||||
}
|
||||
ps.WriteLine(" </ItemGroup>");
|
||||
|
||||
//Project References
|
||||
ps.WriteLine(" <ItemGroup>");
|
||||
foreach (ReferenceNode refr in project.References)
|
||||
{
|
||||
if (solution.ProjectsTable.ContainsKey(refr.Name))
|
||||
{
|
||||
ProjectNode refProject = (ProjectNode)solution.ProjectsTable[refr.Name];
|
||||
// TODO: Allow reference to visual basic projects
|
||||
ps.WriteLine(" <ProjectReference Include=\"{0}\">", Helper.MakePathRelativeTo(project.FullPath, Helper.MakeFilePath(refProject.FullPath, refProject.Name, "csproj")));
|
||||
//<ProjectReference Include="..\..\RealmForge\Utility\RealmForge.Utility.csproj">
|
||||
ps.WriteLine(" <Name>{0}</Name>", refProject.Name);
|
||||
// <Name>RealmForge.Utility</Name>
|
||||
ps.WriteLine(" <Project>{{{0}}}</Project>", refProject.Guid.ToString().ToUpper());
|
||||
// <Project>{6880D1D3-69EE-461B-B841-5319845B20D3}</Project>
|
||||
ps.WriteLine(" <Package>{0}</Package>", toolInfo.Guid.ToString().ToUpper());
|
||||
// <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
||||
ps.WriteLine("\t\t\t<Private>{0}</Private>", refr.LocalCopy);
|
||||
ps.WriteLine(" </ProjectReference>");
|
||||
//</ProjectReference>
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
}
|
||||
ps.WriteLine(" </ItemGroup>");
|
||||
|
||||
// ps.WriteLine(" </Build>");
|
||||
ps.WriteLine(" <ItemGroup>");
|
||||
|
||||
// ps.WriteLine(" <Include>");
|
||||
ArrayList list = new ArrayList();
|
||||
foreach (string file in project.Files)
|
||||
{
|
||||
// if (file == "Properties\\Bind.Designer.cs")
|
||||
// {
|
||||
// Console.WriteLine("Wait a minute!");
|
||||
// Console.WriteLine(project.Files.GetSubType(file).ToString());
|
||||
// }
|
||||
|
||||
if (project.Files.GetSubType(file) != SubType.Code && project.Files.GetSubType(file) != SubType.Settings && project.Files.GetSubType(file) != SubType.Designer)
|
||||
{
|
||||
ps.WriteLine(" <EmbeddedResource Include=\"{0}\">", file.Substring(0, file.LastIndexOf('.')) + ".resx");
|
||||
|
||||
int slash = file.LastIndexOf('\\');
|
||||
if (slash == -1)
|
||||
{
|
||||
ps.WriteLine(" <DependentUpon>{0}</DependentUpon>", file);
|
||||
}
|
||||
else
|
||||
{
|
||||
ps.WriteLine(" <DependentUpon>{0}</DependentUpon>", file.Substring(slash + 1, file.Length - slash - 1));
|
||||
}
|
||||
ps.WriteLine(" <SubType>Designer</SubType>");
|
||||
ps.WriteLine(" </EmbeddedResource>");
|
||||
//
|
||||
}
|
||||
|
||||
if (project.Files.GetSubType(file) != SubType.Code && project.Files.GetSubType(file) == SubType.Designer)
|
||||
{
|
||||
ps.WriteLine(" <EmbeddedResource Include=\"{0}\">", file.Substring(0, file.LastIndexOf('.')) + ".resx");
|
||||
ps.WriteLine(" <SubType>" + project.Files.GetSubType(file) + "</SubType>");
|
||||
ps.WriteLine(" <Generator>ResXFileCodeGenerator</Generator>");
|
||||
ps.WriteLine(" <LastGenOutput>Resources.Designer.cs</LastGenOutput>");
|
||||
ps.WriteLine(" </EmbeddedResource>");
|
||||
ps.WriteLine(" <Compile Include=\"{0}\">", file.Substring(0, file.LastIndexOf('.')) + ".Designer.cs");
|
||||
ps.WriteLine(" <AutoGen>True</AutoGen>");
|
||||
ps.WriteLine(" <DesignTime>True</DesignTime>");
|
||||
ps.WriteLine(" <DependentUpon>Resources.resx</DependentUpon>");
|
||||
ps.WriteLine(" </Compile>");
|
||||
list.Add(file.Substring(0, file.LastIndexOf('.')) + ".Designer.cs");
|
||||
}
|
||||
if (project.Files.GetSubType(file).ToString() == "Settings")
|
||||
{
|
||||
//Console.WriteLine("File: " + file);
|
||||
//Console.WriteLine("Last index: " + file.LastIndexOf('.'));
|
||||
//Console.WriteLine("Length: " + file.Length);
|
||||
ps.Write(" <{0} ", project.Files.GetBuildAction(file));
|
||||
ps.WriteLine("Include=\"{0}\">", file);
|
||||
int slash = file.LastIndexOf('\\');
|
||||
string fileName = file.Substring(slash + 1, file.Length - slash - 1);
|
||||
if (project.Files.GetBuildAction(file) == BuildAction.None)
|
||||
{
|
||||
ps.WriteLine(" <Generator>SettingsSingleFileGenerator</Generator>");
|
||||
|
||||
//Console.WriteLine("FileName: " + fileName);
|
||||
//Console.WriteLine("FileNameMain: " + fileName.Substring(0, fileName.LastIndexOf('.')));
|
||||
//Console.WriteLine("FileNameExt: " + fileName.Substring(fileName.LastIndexOf('.'), fileName.Length - fileName.LastIndexOf('.')));
|
||||
if (slash == -1)
|
||||
{
|
||||
ps.WriteLine(" <LastGenOutput>{0}</LastGenOutput>", fileName.Substring(0, fileName.LastIndexOf('.')) + ".Designer.cs");
|
||||
}
|
||||
else
|
||||
{
|
||||
ps.WriteLine(" <LastGenOutput>{0}</LastGenOutput>", fileName.Substring(0, fileName.LastIndexOf('.')) + ".Designer.cs");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ps.WriteLine(" <SubType>Code</SubType>");
|
||||
ps.WriteLine(" <AutoGen>True</AutoGen>");
|
||||
ps.WriteLine(" <DesignTimeSharedInput>True</DesignTimeSharedInput>");
|
||||
string fileNameShort = fileName.Substring(0, fileName.LastIndexOf('.'));
|
||||
string fileNameShorter = fileNameShort.Substring(0, fileNameShort.LastIndexOf('.'));
|
||||
ps.WriteLine(" <DependentUpon>{0}</DependentUpon>", fileNameShorter + ".settings");
|
||||
}
|
||||
ps.WriteLine(" </{0}>", project.Files.GetBuildAction(file));
|
||||
}
|
||||
else if (project.Files.GetSubType(file) != SubType.Designer)
|
||||
{
|
||||
if (!list.Contains(file))
|
||||
{
|
||||
ps.Write(" <{0} ", project.Files.GetBuildAction(file));
|
||||
ps.WriteLine("Include=\"{0}\">", file);
|
||||
|
||||
|
||||
if (file.Contains("Designer.cs"))
|
||||
{
|
||||
ps.WriteLine(" <DependentUpon>{0}</DependentUpon>", file.Substring(0, file.IndexOf(".Designer.cs")) + ".cs");
|
||||
}
|
||||
|
||||
if (project.Files.GetIsLink(file))
|
||||
{
|
||||
ps.WriteLine(" <Link>{0}</Link>", Path.GetFileName(file));
|
||||
}
|
||||
else if (project.Files.GetBuildAction(file) != BuildAction.None)
|
||||
{
|
||||
if (project.Files.GetBuildAction(file) != BuildAction.EmbeddedResource)
|
||||
{
|
||||
ps.WriteLine(" <SubType>{0}</SubType>", project.Files.GetSubType(file));
|
||||
}
|
||||
}
|
||||
if (project.Files.GetCopyToOutput(file) != CopyToOutput.Never)
|
||||
{
|
||||
ps.WriteLine(" <CopyToOutputDirectory>{0}</CopyToOutputDirectory>", project.Files.GetCopyToOutput(file));
|
||||
}
|
||||
|
||||
ps.WriteLine(" </{0}>", project.Files.GetBuildAction(file));
|
||||
}
|
||||
}
|
||||
}
|
||||
// ps.WriteLine(" </Include>");
|
||||
|
||||
ps.WriteLine(" </ItemGroup>");
|
||||
ps.WriteLine(" <Import Project=\"" + toolInfo.ImportProject + "\" />");
|
||||
ps.WriteLine(" <PropertyGroup>");
|
||||
ps.WriteLine(" <PreBuildEvent>");
|
||||
ps.WriteLine(" </PreBuildEvent>");
|
||||
ps.WriteLine(" <PostBuildEvent>");
|
||||
ps.WriteLine(" </PostBuildEvent>");
|
||||
ps.WriteLine(" </PropertyGroup>");
|
||||
// ps.WriteLine(" </{0}>", toolInfo.XMLTag);
|
||||
ps.WriteLine("</Project>");
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region User File
|
||||
|
||||
ps = new StreamWriter(projectFile + ".user");
|
||||
using (ps)
|
||||
{
|
||||
ps.WriteLine("<Project xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">");
|
||||
//ps.WriteLine( "<VisualStudioProject>" );
|
||||
//ps.WriteLine(" <{0}>", toolInfo.XMLTag);
|
||||
//ps.WriteLine(" <Build>");
|
||||
ps.WriteLine(" <PropertyGroup>");
|
||||
//ps.WriteLine(" <Settings ReferencePath=\"{0}\">", MakeRefPath(project));
|
||||
ps.WriteLine(" <Configuration Condition=\" '$(Configuration)' == '' \">Debug</Configuration>");
|
||||
ps.WriteLine(" <Platform Condition=\" '$(Platform)' == '' \">AnyCPU</Platform>");
|
||||
ps.WriteLine(" <ReferencePath>{0}</ReferencePath>", MakeRefPath(project));
|
||||
ps.WriteLine(" <LastOpenVersion>{0}</LastOpenVersion>", this.ProductVersion);
|
||||
ps.WriteLine(" <ProjectView>ProjectFiles</ProjectView>");
|
||||
ps.WriteLine(" <ProjectTrust>0</ProjectTrust>");
|
||||
ps.WriteLine(" </PropertyGroup>");
|
||||
foreach (ConfigurationNode conf in project.Configurations)
|
||||
{
|
||||
ps.Write(" <PropertyGroup");
|
||||
ps.Write(" Condition = \" '$(Configuration)|$(Platform)' == '{0}|AnyCPU' \"", conf.Name);
|
||||
ps.WriteLine(" />");
|
||||
}
|
||||
//ps.WriteLine(" </Settings>");
|
||||
|
||||
//ps.WriteLine(" </Build>");
|
||||
//ps.WriteLine(" </{0}>", toolInfo.XMLTag);
|
||||
//ps.WriteLine("</VisualStudioProject>");
|
||||
ps.WriteLine("</Project>");
|
||||
}
|
||||
#endregion
|
||||
|
||||
kernel.CurrentWorkingDirectory.Pop();
|
||||
}
|
||||
|
||||
private void WriteSolution(SolutionNode solution)
|
||||
{
|
||||
kernel.Log.Write("Creating {0} solution and project files", this.VersionName);
|
||||
|
||||
foreach (ProjectNode project in solution.Projects)
|
||||
{
|
||||
kernel.Log.Write("...Creating project: {0}", project.Name);
|
||||
WriteProject(solution, project);
|
||||
}
|
||||
|
||||
kernel.Log.Write("");
|
||||
string solutionFile = Helper.MakeFilePath(solution.FullPath, solution.Name, "sln");
|
||||
StreamWriter ss = new StreamWriter(solutionFile);
|
||||
|
||||
kernel.CurrentWorkingDirectory.Push();
|
||||
Helper.SetCurrentDir(Path.GetDirectoryName(solutionFile));
|
||||
|
||||
using (ss)
|
||||
{
|
||||
ss.WriteLine("Microsoft Visual Studio Solution File, Format Version {0}", this.SolutionVersion);
|
||||
ss.WriteLine("# Visual Studio 2005");
|
||||
foreach (ProjectNode project in solution.Projects)
|
||||
{
|
||||
if (!tools.ContainsKey(project.Language))
|
||||
{
|
||||
throw new UnknownLanguageException("Unknown .NET language: " + project.Language);
|
||||
}
|
||||
|
||||
ToolInfo toolInfo = (ToolInfo)tools[project.Language];
|
||||
|
||||
string path = Helper.MakePathRelativeTo(solution.FullPath, project.FullPath);
|
||||
ss.WriteLine("Project(\"{0}\") = \"{1}\", \"{2}\", \"{{{3}}}\"",
|
||||
toolInfo.Guid, project.Name, Helper.MakeFilePath(path, project.Name,
|
||||
toolInfo.FileExtension), project.Guid.ToString().ToUpper());
|
||||
|
||||
//ss.WriteLine(" ProjectSection(ProjectDependencies) = postProject");
|
||||
//ss.WriteLine(" EndProjectSection");
|
||||
|
||||
ss.WriteLine("EndProject");
|
||||
}
|
||||
|
||||
if (solution.Files != null)
|
||||
{
|
||||
ss.WriteLine("Project(\"{0}\") = \"Solution Items\", \"Solution Items\", \"{1}\"", "{2150E333-8FDC-42A3-9474-1A3956D46DE8}", "{468F1D07-AD17-4CC3-ABD0-2CA268E4E1A6}");
|
||||
ss.WriteLine("\tProjectSection(SolutionItems) = preProject");
|
||||
foreach (string file in solution.Files)
|
||||
ss.WriteLine("\t\t{0} = {0}", file);
|
||||
ss.WriteLine("\tEndProjectSection");
|
||||
ss.WriteLine("EndProject");
|
||||
}
|
||||
|
||||
ss.WriteLine("Global");
|
||||
|
||||
ss.WriteLine(" GlobalSection(SolutionConfigurationPlatforms) = preSolution");
|
||||
foreach (ConfigurationNode conf in solution.Configurations)
|
||||
{
|
||||
ss.WriteLine(" {0}|Any CPU = {0}|Any CPU", conf.Name);
|
||||
}
|
||||
ss.WriteLine(" EndGlobalSection");
|
||||
|
||||
if (solution.Projects.Count > 1)
|
||||
{
|
||||
ss.WriteLine(" GlobalSection(ProjectDependencies) = postSolution");
|
||||
}
|
||||
foreach (ProjectNode project in solution.Projects)
|
||||
{
|
||||
for (int i = 0; i < project.References.Count; i++)
|
||||
{
|
||||
ReferenceNode refr = (ReferenceNode)project.References[i];
|
||||
if (solution.ProjectsTable.ContainsKey(refr.Name))
|
||||
{
|
||||
ProjectNode refProject = (ProjectNode)solution.ProjectsTable[refr.Name];
|
||||
ss.WriteLine(" ({{{0}}}).{1} = ({{{2}}})",
|
||||
project.Guid.ToString().ToUpper()
|
||||
, i,
|
||||
refProject.Guid.ToString().ToUpper()
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (solution.Projects.Count > 1)
|
||||
{
|
||||
ss.WriteLine(" EndGlobalSection");
|
||||
}
|
||||
ss.WriteLine(" GlobalSection(ProjectConfigurationPlatforms) = postSolution");
|
||||
foreach (ProjectNode project in solution.Projects)
|
||||
{
|
||||
foreach (ConfigurationNode conf in solution.Configurations)
|
||||
{
|
||||
ss.WriteLine(" {{{0}}}.{1}|Any CPU.ActiveCfg = {1}|Any CPU",
|
||||
project.Guid.ToString().ToUpper(),
|
||||
conf.Name);
|
||||
|
||||
ss.WriteLine(" {{{0}}}.{1}|Any CPU.Build.0 = {1}|Any CPU",
|
||||
project.Guid.ToString().ToUpper(),
|
||||
conf.Name);
|
||||
}
|
||||
}
|
||||
ss.WriteLine(" EndGlobalSection");
|
||||
ss.WriteLine(" GlobalSection(SolutionProperties) = preSolution");
|
||||
ss.WriteLine(" HideSolutionNode = FALSE");
|
||||
ss.WriteLine(" EndGlobalSection");
|
||||
|
||||
ss.WriteLine("EndGlobal");
|
||||
}
|
||||
|
||||
kernel.CurrentWorkingDirectory.Pop();
|
||||
}
|
||||
|
||||
private void CleanProject(ProjectNode project)
|
||||
{
|
||||
kernel.Log.Write("...Cleaning project: {0}", project.Name);
|
||||
|
||||
ToolInfo toolInfo = (ToolInfo)tools[project.Language];
|
||||
string projectFile = Helper.MakeFilePath(project.FullPath, project.Name, toolInfo.FileExtension);
|
||||
string userFile = projectFile + ".user";
|
||||
|
||||
Helper.DeleteIfExists(projectFile);
|
||||
Helper.DeleteIfExists(userFile);
|
||||
}
|
||||
|
||||
private void CleanSolution(SolutionNode solution)
|
||||
{
|
||||
kernel.Log.Write("Cleaning {0} solution and project files", this.VersionName, solution.Name);
|
||||
|
||||
string slnFile = Helper.MakeFilePath(solution.FullPath, solution.Name, "sln");
|
||||
string suoFile = Helper.MakeFilePath(solution.FullPath, solution.Name, "suo");
|
||||
|
||||
Helper.DeleteIfExists(slnFile);
|
||||
Helper.DeleteIfExists(suoFile);
|
||||
|
||||
foreach (ProjectNode project in solution.Projects)
|
||||
{
|
||||
CleanProject(project);
|
||||
}
|
||||
|
||||
kernel.Log.Write("");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ITarget Members
|
||||
|
||||
/// <summary>
|
||||
/// Writes the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public virtual void Write(Kernel kern)
|
||||
{
|
||||
if (kern == null)
|
||||
{
|
||||
throw new ArgumentNullException("kern");
|
||||
}
|
||||
kernel = kern;
|
||||
foreach (SolutionNode sol in kernel.Solutions)
|
||||
{
|
||||
WriteSolution(sol);
|
||||
}
|
||||
kernel = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cleans the specified kern.
|
||||
/// </summary>
|
||||
/// <param name="kern">The kern.</param>
|
||||
public virtual void Clean(Kernel kern)
|
||||
{
|
||||
if (kern == null)
|
||||
{
|
||||
throw new ArgumentNullException("kern");
|
||||
}
|
||||
kernel = kern;
|
||||
foreach (SolutionNode sol in kernel.Solutions)
|
||||
{
|
||||
CleanSolution(sol);
|
||||
}
|
||||
kernel = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public virtual string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return "vs2005";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
/*
|
||||
* $RCSfile$
|
||||
* Copyright (C) 2004, 2005 David Hudson (jendave@yahoo.com)
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Prebuild.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
[Serializable()]
|
||||
public class UnknownLanguageException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Basic exception.
|
||||
/// </summary>
|
||||
public UnknownLanguageException()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Exception with specified string
|
||||
/// </summary>
|
||||
/// <param name="message">Exception message</param>
|
||||
public UnknownLanguageException(string message): base(message)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
/// <param name="exception"></param>
|
||||
public UnknownLanguageException(string message, Exception exception) : base(message, exception)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="info"></param>
|
||||
/// <param name="context"></param>
|
||||
protected UnknownLanguageException(SerializationInfo info, StreamingContext context) : base( info, context )
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,162 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: robloach $
|
||||
* $Date: 2006-09-26 00:30:53 +0200 (ti, 26 sep 2006) $
|
||||
* $Revision: 165 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Prebuild.Core.Utilities
|
||||
{
|
||||
/// <summary>
|
||||
/// The CommandLine class parses and interprets the command-line arguments passed to
|
||||
/// prebuild.
|
||||
/// </summary>
|
||||
public class CommandLineCollection
|
||||
{
|
||||
#region Fields
|
||||
|
||||
// The raw OS arguments
|
||||
private string[] m_RawArgs;
|
||||
|
||||
// Command-line argument storage
|
||||
private Hashtable m_Arguments;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Create a new CommandLine instance and set some internal variables.
|
||||
/// </summary>
|
||||
public CommandLineCollection(string[] args)
|
||||
{
|
||||
m_RawArgs = args;
|
||||
m_Arguments = new Hashtable();
|
||||
|
||||
Parse();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void Parse()
|
||||
{
|
||||
if(m_RawArgs.Length < 1)
|
||||
return;
|
||||
|
||||
int idx = 0;
|
||||
string arg = null, lastArg = null;
|
||||
|
||||
while(idx <m_RawArgs.Length)
|
||||
{
|
||||
arg = m_RawArgs[idx];
|
||||
|
||||
if(arg.Length > 2 && arg[0] == '/')
|
||||
{
|
||||
arg = arg.Substring(1);
|
||||
lastArg = arg;
|
||||
m_Arguments[arg] = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
if(lastArg != null)
|
||||
{
|
||||
m_Arguments[lastArg] = arg;
|
||||
lastArg = null;
|
||||
}
|
||||
}
|
||||
|
||||
idx++;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Wases the passed.
|
||||
/// </summary>
|
||||
/// <param name="arg">The arg.</param>
|
||||
/// <returns></returns>
|
||||
public bool WasPassed(string arg)
|
||||
{
|
||||
return (m_Arguments.ContainsKey(arg));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the parameter associated with the command line option
|
||||
/// </summary>
|
||||
/// <remarks>Returns null if option was not specified,
|
||||
/// null string if no parameter was specified, and the value if a parameter was specified</remarks>
|
||||
public string this[string index]
|
||||
{
|
||||
get
|
||||
{
|
||||
if(m_Arguments.ContainsKey(index))
|
||||
{
|
||||
return (string)(m_Arguments[index]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IEnumerable Members
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that can iterate through a collection.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// An <see cref="T:System.Collections.IDictionaryEnumerator"/>
|
||||
/// that can be used to iterate through the collection.
|
||||
/// </returns>
|
||||
public IDictionaryEnumerator GetEnumerator()
|
||||
{
|
||||
return m_Arguments.GetEnumerator();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,89 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-28 01:49:58 +0100 (lö, 28 jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
namespace Prebuild.Core.Utilities
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CurrentDirectory
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private Stack m_Stack;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CurrentDirectory"/> class.
|
||||
/// </summary>
|
||||
public CurrentDirectory()
|
||||
{
|
||||
m_Stack = new Stack();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Pushes this instance.
|
||||
/// </summary>
|
||||
public void Push()
|
||||
{
|
||||
m_Stack.Push(Environment.CurrentDirectory);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Pops this instance.
|
||||
/// </summary>
|
||||
public void Pop()
|
||||
{
|
||||
if(m_Stack.Count < 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
string cwd = (string)m_Stack.Pop();
|
||||
Helper.SetCurrentDir(cwd);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,661 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2007-02-13 21:58:03 +0100 (ti, 13 feb 2007) $
|
||||
* $Revision: 205 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections.Specialized;
|
||||
using System.Xml;
|
||||
using Prebuild.Core.Nodes;
|
||||
|
||||
namespace Prebuild.Core.Utilities
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class Helper
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private static Stack dirStack;
|
||||
private static Regex varRegex;
|
||||
static bool checkForOSVariables;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public static bool CheckForOSVariables
|
||||
{
|
||||
get
|
||||
{
|
||||
return checkForOSVariables;
|
||||
}
|
||||
set
|
||||
{
|
||||
checkForOSVariables = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes the <see cref="Helper"/> class.
|
||||
/// </summary>
|
||||
static Helper()
|
||||
{
|
||||
dirStack = new Stack();
|
||||
//m_VarRegex = new Regex(@"\${(?<var>[\w|_]+)}");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public static Stack DirStack
|
||||
{
|
||||
get
|
||||
{
|
||||
return dirStack;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public static Regex VarRegex
|
||||
{
|
||||
get
|
||||
{
|
||||
return varRegex;
|
||||
}
|
||||
set
|
||||
{
|
||||
varRegex = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
#region String Parsing
|
||||
#region Inner Classes and Delegates
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public delegate string StringLookup(string key);
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Gets a collection of StringLocationPair objects that represent the matches
|
||||
/// </summary>
|
||||
/// <param name="target">The target.</param>
|
||||
/// <param name="beforeGroup">The before group.</param>
|
||||
/// <param name="afterGroup">The after group.</param>
|
||||
/// <param name="includeDelimitersInSubstrings">if set to <c>true</c> [include delimiters in substrings].</param>
|
||||
/// <returns></returns>
|
||||
public static StringCollection FindGroups(string target, string beforeGroup, string afterGroup, bool includeDelimitersInSubstrings)
|
||||
{
|
||||
if( beforeGroup == null )
|
||||
{
|
||||
throw new ArgumentNullException("beforeGroup");
|
||||
}
|
||||
if( afterGroup == null )
|
||||
{
|
||||
throw new ArgumentNullException("afterGroup");
|
||||
}
|
||||
StringCollection results = new StringCollection();
|
||||
if(target == null || target.Length == 0)
|
||||
{
|
||||
return results;
|
||||
}
|
||||
|
||||
int beforeMod = 0;
|
||||
int afterMod = 0;
|
||||
if(includeDelimitersInSubstrings)
|
||||
{
|
||||
//be sure to not exlude the delims
|
||||
beforeMod = beforeGroup.Length;
|
||||
afterMod = afterGroup.Length;
|
||||
}
|
||||
int startIndex = 0;
|
||||
while((startIndex = target.IndexOf(beforeGroup,startIndex)) != -1) {
|
||||
int endIndex = target.IndexOf(afterGroup,startIndex);//the index of the char after it
|
||||
if(endIndex == -1)
|
||||
{
|
||||
break;
|
||||
}
|
||||
int length = endIndex - startIndex - beforeGroup.Length;//move to the first char in the string
|
||||
string substring = substring = target.Substring(startIndex + beforeGroup.Length - beforeMod,
|
||||
length - afterMod);
|
||||
|
||||
results.Add(substring);
|
||||
//results.Add(new StringLocationPair(substring,startIndex));
|
||||
startIndex = endIndex + 1;
|
||||
//the Interpolate*() methods will not work if expressions are expandded inside expression due to an optimization
|
||||
//so start after endIndex
|
||||
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Replaces the groups.
|
||||
/// </summary>
|
||||
/// <param name="target">The target.</param>
|
||||
/// <param name="beforeGroup">The before group.</param>
|
||||
/// <param name="afterGroup">The after group.</param>
|
||||
/// <param name="lookup">The lookup.</param>
|
||||
/// <returns></returns>
|
||||
public static string ReplaceGroups(string target, string beforeGroup, string afterGroup, StringLookup lookup) {
|
||||
if( target == null )
|
||||
{
|
||||
throw new ArgumentNullException("target");
|
||||
}
|
||||
//int targetLength = target.Length;
|
||||
StringCollection strings = FindGroups(target,beforeGroup,afterGroup,false);
|
||||
if( lookup == null )
|
||||
{
|
||||
throw new ArgumentNullException("lookup");
|
||||
}
|
||||
foreach(string substring in strings)
|
||||
{
|
||||
target = target.Replace(beforeGroup + substring + afterGroup, lookup(substring) );
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Replaces ${var} statements in a string with the corresonding values as detirmined by the lookup delegate
|
||||
/// </summary>
|
||||
/// <param name="target">The target.</param>
|
||||
/// <param name="lookup">The lookup.</param>
|
||||
/// <returns></returns>
|
||||
public static string InterpolateForVariables(string target, StringLookup lookup)
|
||||
{
|
||||
return ReplaceGroups(target, "${" , "}" , lookup);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Replaces ${var} statements in a string with the corresonding environment variable with name var
|
||||
/// </summary>
|
||||
/// <param name="target"></param>
|
||||
/// <returns></returns>
|
||||
public static string InterpolateForEnvironmentVariables(string target)
|
||||
{
|
||||
return InterpolateForVariables(target, new StringLookup(Environment.GetEnvironmentVariable));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Translates the value.
|
||||
/// </summary>
|
||||
/// <param name="translateType">Type of the translate.</param>
|
||||
/// <param name="translationItem">The translation item.</param>
|
||||
/// <returns></returns>
|
||||
public static object TranslateValue(Type translateType, string translationItem)
|
||||
{
|
||||
if(translationItem == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
string lowerVal = translationItem.ToLower();
|
||||
if(translateType == typeof(bool))
|
||||
{
|
||||
return (lowerVal == "true" || lowerVal == "1" || lowerVal == "y" || lowerVal == "yes" || lowerVal == "on");
|
||||
}
|
||||
else if(translateType == typeof(int))
|
||||
{
|
||||
return (Int32.Parse(translationItem));
|
||||
}
|
||||
else
|
||||
{
|
||||
return translationItem;
|
||||
}
|
||||
}
|
||||
catch(FormatException)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Deletes if exists.
|
||||
/// </summary>
|
||||
/// <param name="file">The file.</param>
|
||||
/// <returns></returns>
|
||||
public static bool DeleteIfExists(string file)
|
||||
{
|
||||
string resFile = null;
|
||||
try
|
||||
{
|
||||
resFile = ResolvePath(file);
|
||||
}
|
||||
catch(ArgumentException)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!File.Exists(resFile))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
File.Delete(resFile);
|
||||
return true;
|
||||
}
|
||||
|
||||
// This little gem was taken from the NeL source, thanks guys!
|
||||
/// <summary>
|
||||
/// Makes a relative path
|
||||
/// </summary>
|
||||
/// <param name="startPath">Path to start from</param>
|
||||
/// <param name="endPath">Path to end at</param>
|
||||
/// <returns>Path that will get from startPath to endPath</returns>
|
||||
public static string MakePathRelativeTo(string startPath, string endPath)
|
||||
{
|
||||
string tmp = NormalizePath(startPath, '/');
|
||||
string src = NormalizePath(endPath, '/');
|
||||
string prefix = "";
|
||||
|
||||
while(true)
|
||||
{
|
||||
if((String.Compare(tmp, 0, src, 0, tmp.Length) == 0))
|
||||
{
|
||||
string ret;
|
||||
int size = tmp.Length;
|
||||
if(size == src.Length)
|
||||
{
|
||||
return "./";
|
||||
}
|
||||
if ((src.Length > tmp.Length) && src[tmp.Length-1] != '/' && src[tmp.Length-1] != '\\')
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = prefix + endPath.Substring(size, endPath.Length - size);
|
||||
ret = ret.Trim();
|
||||
if(ret[0] == '/' || ret[0] == '\\')
|
||||
{
|
||||
ret = "." + ret;
|
||||
}
|
||||
|
||||
return NormalizePath(ret);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(tmp.Length < 2)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
int lastPos = tmp.LastIndexOf('/', tmp.Length - 2);
|
||||
int prevPos = tmp.IndexOf('/');
|
||||
|
||||
if((lastPos == prevPos) || (lastPos == -1))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
tmp = tmp.Substring(0, lastPos + 1);
|
||||
prefix += "../";
|
||||
}
|
||||
|
||||
return endPath;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Resolves the path.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
/// <returns></returns>
|
||||
public static string ResolvePath(string path)
|
||||
{
|
||||
string tmpPath = NormalizePath(path);
|
||||
if(tmpPath.Length < 1)
|
||||
{
|
||||
tmpPath = ".";
|
||||
}
|
||||
|
||||
tmpPath = Path.GetFullPath(tmpPath);
|
||||
if(!File.Exists(tmpPath) && !Directory.Exists(tmpPath))
|
||||
{
|
||||
throw new ArgumentException("Path could not be resolved: " + tmpPath);
|
||||
}
|
||||
|
||||
return tmpPath;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Normalizes the path.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
/// <param name="separatorCharacter">The separator character.</param>
|
||||
/// <returns></returns>
|
||||
public static string NormalizePath(string path, char separatorCharacter)
|
||||
{
|
||||
if(path == null || path == "" || path.Length < 1)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
string tmpPath = path.Replace('\\', '/');
|
||||
tmpPath = tmpPath.Replace('/', separatorCharacter);
|
||||
return tmpPath;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Normalizes the path.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
/// <returns></returns>
|
||||
public static string NormalizePath(string path)
|
||||
{
|
||||
return NormalizePath(path, Path.DirectorySeparatorChar);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Ends the path.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
/// <param name="separatorCharacter">The separator character.</param>
|
||||
/// <returns></returns>
|
||||
public static string EndPath(string path, char separatorCharacter)
|
||||
{
|
||||
if(path == null || path == "" || path.Length < 1)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
if(!path.EndsWith(separatorCharacter.ToString()))
|
||||
{
|
||||
return (path + separatorCharacter);
|
||||
}
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Ends the path.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
/// <returns></returns>
|
||||
public static string EndPath(string path)
|
||||
{
|
||||
return EndPath(path, Path.DirectorySeparatorChar);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Makes the file path.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
/// <param name="name">The name.</param>
|
||||
/// <param name="ext">The ext.</param>
|
||||
/// <returns></returns>
|
||||
public static string MakeFilePath(string path, string name, string ext)
|
||||
{
|
||||
string ret = EndPath(NormalizePath(path));
|
||||
|
||||
if( name == null )
|
||||
{
|
||||
throw new ArgumentNullException("name");
|
||||
}
|
||||
|
||||
ret += name;
|
||||
if(!name.EndsWith("." + ext))
|
||||
{
|
||||
ret += "." + ext;
|
||||
}
|
||||
|
||||
foreach(char c in Path.GetInvalidPathChars())
|
||||
{
|
||||
ret = ret.Replace(c, '_');
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Makes the file path.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
/// <param name="name">The name.</param>
|
||||
/// <returns></returns>
|
||||
public static string MakeFilePath(string path, string name)
|
||||
{
|
||||
string ret = EndPath(NormalizePath(path));
|
||||
|
||||
if( name == null )
|
||||
{
|
||||
throw new ArgumentNullException("name");
|
||||
}
|
||||
|
||||
ret += name;
|
||||
|
||||
foreach (char c in Path.GetInvalidPathChars())
|
||||
{
|
||||
ret = ret.Replace(c, '_');
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="path"></param>
|
||||
/// <returns></returns>
|
||||
public static string MakeReferencePath(string path)
|
||||
{
|
||||
string ret = EndPath(NormalizePath(path));
|
||||
|
||||
foreach (char c in Path.GetInvalidPathChars())
|
||||
{
|
||||
ret = ret.Replace(c, '_');
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the current dir.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
public static void SetCurrentDir(string path)
|
||||
{
|
||||
if( path == null )
|
||||
{
|
||||
throw new ArgumentNullException("path");
|
||||
}
|
||||
if(path.Length < 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Environment.CurrentDirectory = path;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks the type.
|
||||
/// </summary>
|
||||
/// <param name="typeToCheck">The type to check.</param>
|
||||
/// <param name="attr">The attr.</param>
|
||||
/// <param name="inter">The inter.</param>
|
||||
/// <returns></returns>
|
||||
public static object CheckType(Type typeToCheck, Type attr, Type inter)
|
||||
{
|
||||
if(typeToCheck == null || attr == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
object[] attrs = typeToCheck.GetCustomAttributes(attr, false);
|
||||
if(attrs == null || attrs.Length < 1)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
if( inter == null )
|
||||
{
|
||||
throw new ArgumentNullException("inter");
|
||||
}
|
||||
|
||||
if(typeToCheck.GetInterface(inter.FullName) == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return attrs[0];
|
||||
}
|
||||
|
||||
/* A bit of overhead for simple group parsing, there are problems with Regex in Mono
|
||||
public static string ParseValue(string val)
|
||||
{
|
||||
if(val == null || val.Length < 1 || !CheckForOSVariables)
|
||||
return val;
|
||||
|
||||
string tmp = val;
|
||||
Match m = m_VarRegex.Match(val);
|
||||
while(m.Success)
|
||||
{
|
||||
if(m.Groups["var"] == null)
|
||||
continue;
|
||||
|
||||
Capture c = m.Groups["var"].Captures[0];
|
||||
if(c == null)
|
||||
continue;
|
||||
|
||||
string var = c.Value;
|
||||
string envVal = Environment.GetEnvironmentVariable(var);
|
||||
if(envVal == null)
|
||||
envVal = "";
|
||||
|
||||
tmp = tmp.Replace("${" + var + "}", envVal);
|
||||
m = m.NextMatch();
|
||||
}
|
||||
|
||||
return tmp;
|
||||
}*/
|
||||
|
||||
/// <summary>
|
||||
/// Attributes the value.
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
/// <param name="attr">The attr.</param>
|
||||
/// <param name="def">The def.</param>
|
||||
/// <returns></returns>
|
||||
public static string AttributeValue(XmlNode node, string attr, string def)
|
||||
{
|
||||
if( node == null )
|
||||
{
|
||||
throw new ArgumentNullException("node");
|
||||
}
|
||||
if(node.Attributes[attr] == null)
|
||||
{
|
||||
return def;
|
||||
}
|
||||
string val = node.Attributes[attr].Value;
|
||||
if(!CheckForOSVariables)
|
||||
{
|
||||
return val;
|
||||
}
|
||||
|
||||
return InterpolateForEnvironmentVariables(val);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Parses the boolean.
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
/// <param name="attr">The attr.</param>
|
||||
/// <param name="defaultValue">if set to <c>true</c> [default value].</param>
|
||||
/// <returns></returns>
|
||||
public static bool ParseBoolean(XmlNode node, string attr, bool defaultValue)
|
||||
{
|
||||
if( node == null )
|
||||
{
|
||||
throw new ArgumentNullException("node");
|
||||
}
|
||||
if(node.Attributes[attr] == null)
|
||||
{
|
||||
return defaultValue;
|
||||
}
|
||||
return bool.Parse(node.Attributes[attr].Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enums the attribute value.
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
/// <param name="attr">The attr.</param>
|
||||
/// <param name="enumType">Type of the enum.</param>
|
||||
/// <param name="def">The def.</param>
|
||||
/// <returns></returns>
|
||||
public static object EnumAttributeValue(XmlNode node, string attr, Type enumType, object def)
|
||||
{
|
||||
if( def == null )
|
||||
{
|
||||
throw new ArgumentNullException("def");
|
||||
}
|
||||
string val = AttributeValue(node, attr, def.ToString());
|
||||
return Enum.Parse(enumType, val, true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="assemblyName"></param>
|
||||
/// <param name="projectType"></param>
|
||||
/// <returns></returns>
|
||||
public static string AssemblyFullName(string assemblyName, ProjectType projectType)
|
||||
{
|
||||
return assemblyName + (projectType == ProjectType.Library ? ".dll" : ".exe");
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,279 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-28 01:49:58 +0100 (lö, 28 jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace Prebuild.Core.Utilities
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public enum LogType
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
None,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Info,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Warning,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Error
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum LogTargets
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
None = 0,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Null = 1,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
File = 2,
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
Console = 4
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for Log.
|
||||
/// </summary>
|
||||
public class Log : IDisposable
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private StreamWriter m_Writer;
|
||||
private LogTargets m_Target = LogTargets.Null;
|
||||
bool disposed;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Log"/> class.
|
||||
/// </summary>
|
||||
/// <param name="target">The target.</param>
|
||||
/// <param name="fileName">Name of the file.</param>
|
||||
public Log(LogTargets target, string fileName)
|
||||
{
|
||||
m_Target = target;
|
||||
|
||||
if((m_Target & LogTargets.File) != 0)
|
||||
{
|
||||
m_Writer = new StreamWriter(fileName, false);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Writes this instance.
|
||||
/// </summary>
|
||||
public void Write()
|
||||
{
|
||||
Write(string.Empty);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes the specified MSG.
|
||||
/// </summary>
|
||||
/// <param name="msg">The MSG.</param>
|
||||
public void Write(string msg)
|
||||
{
|
||||
if((m_Target & LogTargets.Null) != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if((m_Target & LogTargets.Console) != 0)
|
||||
{
|
||||
Console.WriteLine(msg);
|
||||
}
|
||||
if((m_Target & LogTargets.File) != 0 && m_Writer != null)
|
||||
{
|
||||
m_Writer.WriteLine(msg);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes the specified format.
|
||||
/// </summary>
|
||||
/// <param name="format">The format.</param>
|
||||
/// <param name="args">The args.</param>
|
||||
public void Write(string format, params object[] args)
|
||||
{
|
||||
Write(string.Format(format,args));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes the specified type.
|
||||
/// </summary>
|
||||
/// <param name="type">The type.</param>
|
||||
/// <param name="format">The format.</param>
|
||||
/// <param name="args">The args.</param>
|
||||
public void Write(LogType type, string format, params object[] args)
|
||||
{
|
||||
if((m_Target & LogTargets.Null) != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
string str = "";
|
||||
switch(type)
|
||||
{
|
||||
case LogType.Info:
|
||||
str = "[I] ";
|
||||
break;
|
||||
case LogType.Warning:
|
||||
str = "[!] ";
|
||||
break;
|
||||
case LogType.Error:
|
||||
str = "[X] ";
|
||||
break;
|
||||
}
|
||||
|
||||
Write(str + format,args);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes the exception.
|
||||
/// </summary>
|
||||
/// <param name="type">The type.</param>
|
||||
/// <param name="ex">The ex.</param>
|
||||
public void WriteException(LogType type, Exception ex)
|
||||
{
|
||||
if(ex != null)
|
||||
{
|
||||
Write(type, ex.Message);
|
||||
//#if DEBUG
|
||||
m_Writer.WriteLine("Exception @{0} stack trace [[", ex.TargetSite.Name);
|
||||
m_Writer.WriteLine(ex.StackTrace);
|
||||
m_Writer.WriteLine("]]");
|
||||
//#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Flushes this instance.
|
||||
/// </summary>
|
||||
public void Flush()
|
||||
{
|
||||
if(m_Writer != null)
|
||||
{
|
||||
m_Writer.Flush();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IDisposable Members
|
||||
|
||||
/// <summary>
|
||||
/// Performs application-defined tasks associated with freeing, releasing, or
|
||||
/// resetting unmanaged resources.
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Dispose objects
|
||||
/// </summary>
|
||||
/// <param name="disposing">
|
||||
/// If true, it will dispose close the handle
|
||||
/// </param>
|
||||
/// <remarks>
|
||||
/// Will dispose managed and unmanaged resources.
|
||||
/// </remarks>
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if (!this.disposed)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
if (m_Writer != null)
|
||||
{
|
||||
m_Writer.Close();
|
||||
m_Writer = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.disposed = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
~Log()
|
||||
{
|
||||
this.Dispose(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Closes and destroys this object
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Same as Dispose(true)
|
||||
/// </remarks>
|
||||
public void Close()
|
||||
{
|
||||
Dispose();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,93 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-01-28 01:49:58 +0100 (lö, 28 jan 2006) $
|
||||
* $Revision: 71 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Prebuild.Core
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Serializable()]
|
||||
public class WarningException : Exception
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public WarningException()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="format"></param>
|
||||
/// <param name="args"></param>
|
||||
public WarningException(string format, params object[] args)
|
||||
: base(String.Format(format, args))
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Exception with specified string
|
||||
/// </summary>
|
||||
/// <param name="message">Exception message</param>
|
||||
public WarningException(string message): base(message)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
/// <param name="exception"></param>
|
||||
public WarningException(string message, Exception exception) : base(message, exception)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="info"></param>
|
||||
/// <param name="context"></param>
|
||||
protected WarningException(SerializationInfo info, StreamingContext context) : base( info, context )
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,165 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2006-09-26 23:43:35 +0200 (ti, 26 sep 2006) $
|
||||
* $Revision: 168 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections.Specialized;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.EnterpriseServices.Internal;
|
||||
|
||||
using Prebuild.Core;
|
||||
using Prebuild.Core.Utilities;
|
||||
|
||||
namespace Prebuild
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
class Prebuild
|
||||
{
|
||||
#region Main
|
||||
|
||||
[STAThread]
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Kernel kernel = null;
|
||||
try
|
||||
{
|
||||
kernel = Kernel.Instance;
|
||||
kernel.Initialize(LogTargets.File | LogTargets.Console, args);
|
||||
bool exit = false;
|
||||
|
||||
if(kernel.CommandLine.WasPassed("usage"))
|
||||
{
|
||||
exit = true;
|
||||
OutputUsage();
|
||||
}
|
||||
if(kernel.CommandLine.WasPassed("showtargets"))
|
||||
{
|
||||
exit = true;
|
||||
OutputTargets(kernel);
|
||||
}
|
||||
if(kernel.CommandLine.WasPassed("install"))
|
||||
{
|
||||
exit = true;
|
||||
InstallAssembly(kernel);
|
||||
}
|
||||
if(kernel.CommandLine.WasPassed("remove"))
|
||||
{
|
||||
exit = true;
|
||||
RemoveAssembly(kernel);
|
||||
}
|
||||
|
||||
if(!exit)
|
||||
{
|
||||
kernel.Process();
|
||||
}
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
Console.WriteLine("Unhandled error: {0}", ex.Message);
|
||||
//#if DEBUG
|
||||
Console.WriteLine("{0}", ex.StackTrace);
|
||||
//#endif
|
||||
}
|
||||
finally
|
||||
{
|
||||
if(kernel.PauseAfterFinish)
|
||||
{
|
||||
Console.WriteLine("\nPress enter to continue...");
|
||||
Console.ReadLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private static void InstallAssembly(Kernel kernel)
|
||||
{
|
||||
Publish publish = new Publish();
|
||||
string file = kernel.CommandLine["install"];
|
||||
//Console.WriteLine(".."+file+"..");
|
||||
publish.GacInstall(file);
|
||||
}
|
||||
|
||||
private static void RemoveAssembly(Kernel kernel)
|
||||
{
|
||||
Publish publish = new Publish();
|
||||
string file = kernel.CommandLine["remove"];
|
||||
publish.GacRemove(file);
|
||||
}
|
||||
|
||||
private static void OutputUsage()
|
||||
{
|
||||
Console.WriteLine("Usage: prebuild /target <target> [options]");
|
||||
Console.WriteLine("Available command-line switches:");
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("/target Target for Prebuild");
|
||||
Console.WriteLine("/clean Clean the build files for the given target");
|
||||
Console.WriteLine("/file XML file to process");
|
||||
Console.WriteLine("/log Log file to write to");
|
||||
Console.WriteLine("/ppo Pre-process the file, but perform no other processing");
|
||||
Console.WriteLine("/pause Pauses the application after execution to view the output");
|
||||
Console.WriteLine("/yes Default to yes to any questions asked");
|
||||
Console.WriteLine("/install Install assembly into the GAC");
|
||||
Console.WriteLine("/remove Remove assembly from the GAC");
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("See 'prebuild /showtargets for a list of available targets");
|
||||
Console.WriteLine("See readme.txt or check out http://dnpb.sourceforge.net for more information");
|
||||
Console.WriteLine();
|
||||
}
|
||||
|
||||
private static void OutputTargets(Kernel kern)
|
||||
{
|
||||
Console.WriteLine("Targets available in Prebuild:");
|
||||
Console.WriteLine("");
|
||||
if(kern.Targets.Keys.Count > 0)
|
||||
{
|
||||
string[] targs = new string[kern.Targets.Keys.Count];
|
||||
kern.Targets.Keys.CopyTo(targs, 0);
|
||||
Array.Sort(targs);
|
||||
foreach(string target in targs)
|
||||
{
|
||||
Console.WriteLine(target);
|
||||
}
|
||||
}
|
||||
Console.WriteLine("");
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,202 @@
|
|||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{0E325E61-D8C0-4AC6-BE7D-8D6EBF49FDC6}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>App.ico</ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>prebuild</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>Prebuild.snk</AssemblyOriginatorKeyFile>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder></AppDesignerFolder>
|
||||
<RootNamespace>Prebuild</RootNamespace>
|
||||
<StartupObject>Prebuild.Prebuild</StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
|
||||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>True</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>False</Optimize>
|
||||
<OutputPath>..\bin\</OutputPath>
|
||||
<RegisterForComInterop>False</RegisterForComInterop>
|
||||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>1595</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
|
||||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<Optimize>True</Optimize>
|
||||
<OutputPath>..\bin\</OutputPath>
|
||||
<RegisterForComInterop>False</RegisterForComInterop>
|
||||
<RemoveIntegerChecks>False</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>1595</NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System.EnterpriseServices" >
|
||||
<HintPath>\System.EnterpriseServices.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml" >
|
||||
<HintPath>\System.Xml.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" >
|
||||
<HintPath>\System.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="App.ico">
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="data\prebuild-1.7.xsd">
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Prebuild.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\FatalException.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Kernel.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\UnknownLanguageException.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\WarningException.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Attributes\DataNodeAttribute.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Attributes\OptionNodeAttribute.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Attributes\TargetAttribute.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Interfaces\IDataNode.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Interfaces\ITarget.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Nodes\ConfigurationNode.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Nodes\DataNode.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Nodes\ExcludeNode.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Nodes\FileNode.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Nodes\FilesNode.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Nodes\MatchNode.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Nodes\OptionsNode.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Nodes\ProcessNode.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Nodes\ProjectNode.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Nodes\ReferenceNode.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Nodes\ReferencePathNode.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Nodes\SolutionNode.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Parse\IfContext.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Parse\Preprocessor.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Targets\AutotoolsTarget.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Targets\DebugTarget.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Targets\MonoDevelopTarget.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Targets\NAntTarget.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Targets\SharpDevelop2Target.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Targets\SharpDevelopTarget.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Targets\VS2002Target.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Targets\VS2003Target.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Targets\VS2005Target.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Utilities\CommandLineCollection.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Utilities\CurrentDirectory.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Utilities\Helper.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Core\Utilities\Log.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent>
|
||||
</PreBuildEvent>
|
||||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
|
@ -0,0 +1,72 @@
|
|||
<?xml version="1.0" ?>
|
||||
<project name="Prebuild" default="build">
|
||||
<target name="build">
|
||||
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
|
||||
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
|
||||
<copy todir="${project::get-base-directory()}/${build.dir}">
|
||||
<fileset basedir="${project::get-base-directory()}">
|
||||
</fileset>
|
||||
</copy>
|
||||
<csc target="exe" debug="${build.debug}" keyfile="Prebuild.snk" unsafe="False" define="DEBUG;TRACE" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.exe" win32icon="App.ico">
|
||||
<resources prefix="Prebuild" dynamicprefix="true" >
|
||||
<include name="App.ico" />
|
||||
<include name="data/prebuild-1.7.xsd" />
|
||||
</resources>
|
||||
<sources failonempty="true">
|
||||
<include name="Prebuild.cs" />
|
||||
<include name="Core/FatalException.cs" />
|
||||
<include name="Core/Kernel.cs" />
|
||||
<include name="Core/UnknownLanguageException.cs" />
|
||||
<include name="Core/WarningException.cs" />
|
||||
<include name="Core/Attributes/DataNodeAttribute.cs" />
|
||||
<include name="Core/Attributes/OptionNodeAttribute.cs" />
|
||||
<include name="Core/Attributes/TargetAttribute.cs" />
|
||||
<include name="Core/Interfaces/IDataNode.cs" />
|
||||
<include name="Core/Interfaces/ITarget.cs" />
|
||||
<include name="Core/Nodes/ConfigurationNode.cs" />
|
||||
<include name="Core/Nodes/DataNode.cs" />
|
||||
<include name="Core/Nodes/ExcludeNode.cs" />
|
||||
<include name="Core/Nodes/FileNode.cs" />
|
||||
<include name="Core/Nodes/FilesNode.cs" />
|
||||
<include name="Core/Nodes/MatchNode.cs" />
|
||||
<include name="Core/Nodes/OptionsNode.cs" />
|
||||
<include name="Core/Nodes/ProcessNode.cs" />
|
||||
<include name="Core/Nodes/ProjectNode.cs" />
|
||||
<include name="Core/Nodes/ReferenceNode.cs" />
|
||||
<include name="Core/Nodes/ReferencePathNode.cs" />
|
||||
<include name="Core/Nodes/SolutionNode.cs" />
|
||||
<include name="Core/Parse/IfContext.cs" />
|
||||
<include name="Core/Parse/Preprocessor.cs" />
|
||||
<include name="Core/Targets/AutotoolsTarget.cs" />
|
||||
<include name="Core/Targets/DebugTarget.cs" />
|
||||
<include name="Core/Targets/MonoDevelopTarget.cs" />
|
||||
<include name="Core/Targets/NAntTarget.cs" />
|
||||
<include name="Core/Targets/SharpDevelop2Target.cs" />
|
||||
<include name="Core/Targets/SharpDevelopTarget.cs" />
|
||||
<include name="Core/Targets/VS2002Target.cs" />
|
||||
<include name="Core/Targets/VS2003Target.cs" />
|
||||
<include name="Core/Targets/VS2005Target.cs" />
|
||||
<include name="Core/Utilities/CommandLineCollection.cs" />
|
||||
<include name="Core/Utilities/CurrentDirectory.cs" />
|
||||
<include name="Core/Utilities/Helper.cs" />
|
||||
<include name="Core/Utilities/Log.cs" />
|
||||
<include name="Properties/AssemblyInfo.cs" />
|
||||
</sources>
|
||||
<references basedir="${project::get-base-directory()}">
|
||||
<lib>
|
||||
<include name="${project::get-base-directory()}" />
|
||||
<include name="${project::get-base-directory()}/${build.dir}" />
|
||||
</lib>
|
||||
<include name="System.EnterpriseServices.dll" />
|
||||
<include name="System.Xml.dll" />
|
||||
<include name="System.dll" />
|
||||
</references>
|
||||
</csc>
|
||||
</target>
|
||||
<target name="clean">
|
||||
<delete dir="${bin.dir}" failonerror="false" />
|
||||
<delete dir="${obj.dir}" failonerror="false" />
|
||||
</target>
|
||||
<target name="doc" description="Creates documentation.">
|
||||
</target>
|
||||
</project>
|
|
@ -0,0 +1,101 @@
|
|||
#region BSD License
|
||||
/*
|
||||
Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region CVS Information
|
||||
/*
|
||||
* $Source$
|
||||
* $Author: jendave $
|
||||
* $Date: 2007-01-26 19:31:34 +0100 (fr, 26 jan 2007) $
|
||||
* $Revision: 203 $
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security.Permissions;
|
||||
using System.Resources;
|
||||
|
||||
|
||||
// FxCop recommended attributes
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: FileIOPermission(SecurityAction.RequestMinimum, Unrestricted=true)]
|
||||
[assembly: CLSCompliant(true)]
|
||||
|
||||
//
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
//
|
||||
[assembly: AssemblyTitle(".NET Prebuild")]
|
||||
[assembly: AssemblyDescription("A .NET project file build tool")]
|
||||
[assembly: AssemblyConfiguration(".NET CLR")]
|
||||
[assembly: AssemblyCompany("The Prebuild Project")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("Copyright 2004-2006 Matthew Holmes, Dan Moorehead and David Hudson")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
[assembly: NeutralResourcesLanguageAttribute("en-US")]
|
||||
[assembly: AssemblyVersion("2.0.0.*")]
|
||||
|
||||
//
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
// Microsoft .NET Framework documentation for more information on assembly signing.
|
||||
//
|
||||
// Use the attributes below to control which key is used for signing.
|
||||
//
|
||||
// Notes:
|
||||
// (*) If no key is specified, the assembly is not signed.
|
||||
// (*) KeyName refers to a key that has been installed in the Crypto Service
|
||||
// Provider (CSP) on your machine. KeyFile refers to a file which contains
|
||||
// a key.
|
||||
// (*) If the KeyFile and the KeyName values are both specified, the
|
||||
// following processing occurs:
|
||||
// (1) If the KeyName can be found in the CSP, that key is used.
|
||||
// (2) If the KeyName does not exist and the KeyFile does exist, the key
|
||||
// in the KeyFile is installed into the CSP and used.
|
||||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
|
||||
// When specifying the KeyFile, the location of the KeyFile should be
|
||||
// relative to the project output directory which is
|
||||
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
|
||||
// located in the project directory, you would specify the AssemblyKeyFile
|
||||
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
|
||||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
|
||||
// documentation for more information on this.
|
||||
//
|
||||
[assembly: AssemblyDelaySign(false)]
|
||||
[assembly: AssemblyKeyName("")]
|
|
@ -0,0 +1,183 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<xs:schema elementFormDefault="qualified"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
targetNamespace="http://dnpb.sourceforge.net/schemas/dnpb-1.0.xsd"
|
||||
xmlns="http://dnpb.sourceforge.net/schemas/dnpb-1.0.xsd"
|
||||
>
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Copyright (c) 2004 Matthew Holmes (kerion@houston.rr.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
|
||||
<xs:element name="DNPreBuild">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Process" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Solution" minOccurs="1" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="version" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Process" type="xs:string" />
|
||||
|
||||
<xs:element name="Solution">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
<xs:element ref="Configuration" minOccurs="1" maxOccurs="unbounded" />
|
||||
<xs:element ref="Files" minOccurs="0" />
|
||||
<xs:element ref="Project" minOccurs="1" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Project">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Reference" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" />
|
||||
<xs:attribute name="localCopy" type="xs:boolean" />
|
||||
<xs:attribute name="version" type="xs:string" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element ref="Files" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
|
||||
<xs:attribute name="language" default="C#">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="C#" />
|
||||
<xs:enumeration value="VB.NET" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="type" default="Exe">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Exe" />
|
||||
<xs:enumeration value="WinExe" />
|
||||
<xs:enumeration value="Library" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="runtime" default="Microsoft">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Microsoft" />
|
||||
<xs:enumeration value="Mono" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="startupObject" type="xs:string" default="" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Configuration">
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
</xs:all>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Options">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CompilerDefines" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OptimizeCode" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="CheckUnderflowOverflow" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="AllowUnsafe" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="WarningLevel" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minInclusive value="0" />
|
||||
<xs:maxInclusive value="4"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="WarningsAsErrors" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="SupressWarnings" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OutputPath" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="XmlDocFile" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="DebugInformation" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="RegisterCOMInterop" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="IncrementalBuild" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="BaseAddress" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FileAlignment" type="xs:integer" minOccurs="0" />
|
||||
<xs:element name="NoStdLib" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="ReferencePath" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Files">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="File" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Match" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="File">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="buildAction" default="Compile">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Compile" />
|
||||
<xs:enumeration value="Content" />
|
||||
<xs:enumeration value="EmbeddedResource" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Match">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="path" type="xs:string" use="required" />
|
||||
<xs:attribute name="pattern" type="xs:string" use="required" />
|
||||
<xs:attribute name="recurse" type="xs:boolean" default="false" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
|
@ -0,0 +1,184 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<xs:schema elementFormDefault="qualified"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
targetNamespace="http://dnpb.sourceforge.net/schemas/dnpb-1.1.xsd"
|
||||
xmlns="http://dnpb.sourceforge.net/schemas/dnpb-1.1.xsd"
|
||||
>
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Copyright (c) 2004 Matthew Holmes (kerion@houston.rr.com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
|
||||
<xs:element name="DNPreBuild">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Process" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Solution" minOccurs="1" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="version" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Process" type="xs:string" />
|
||||
|
||||
<xs:element name="Solution">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
<xs:element ref="Configuration" minOccurs="1" maxOccurs="unbounded" />
|
||||
<xs:element ref="Files" minOccurs="0" />
|
||||
<xs:element ref="Project" minOccurs="1" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Project">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="ReferencePath" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
|
||||
|
||||
<xs:element name="Reference" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" />
|
||||
<xs:attribute name="localCopy" type="xs:boolean" />
|
||||
<xs:attribute name="version" type="xs:string" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element ref="Files" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
|
||||
<xs:attribute name="language" default="C#">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="C#" />
|
||||
<xs:enumeration value="VB.NET" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="type" default="Exe">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Exe" />
|
||||
<xs:enumeration value="WinExe" />
|
||||
<xs:enumeration value="Library" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="runtime" default="Microsoft">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Microsoft" />
|
||||
<xs:enumeration value="Mono" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="startupObject" type="xs:string" default="" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Configuration">
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
</xs:all>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Options">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CompilerDefines" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OptimizeCode" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="CheckUnderflowOverflow" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="AllowUnsafe" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="WarningLevel" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minInclusive value="0" />
|
||||
<xs:maxInclusive value="4"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="WarningsAsErrors" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="SupressWarnings" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OutputPath" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="XmlDocFile" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="DebugInformation" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="RegisterCOMInterop" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="IncrementalBuild" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="BaseAddress" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FileAlignment" type="xs:integer" minOccurs="0" />
|
||||
<xs:element name="NoStdLib" type="xs:boolean" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Files">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="File" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Match" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="File">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="buildAction" default="Compile">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Compile" />
|
||||
<xs:enumeration value="Content" />
|
||||
<xs:enumeration value="EmbeddedResource" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Match">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="path" type="xs:string" use="required" />
|
||||
<xs:attribute name="pattern" type="xs:string" use="required" />
|
||||
<xs:attribute name="recurse" type="xs:boolean" default="false" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
|
@ -0,0 +1,198 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<xs:schema elementFormDefault="qualified"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
targetNamespace="http://dnpb.sourceforge.net/schemas/dnpb-1.2.xsd"
|
||||
xmlns="http://dnpb.sourceforge.net/schemas/dnpb-1.2.xsd"
|
||||
>
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Copyright (c) 2004 Matthew Holmes (calefaction _at_ houston _._ rr _._ com)
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
|
||||
<xs:element name="DNPreBuild">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Process" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Solution" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="version" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Process" type="xs:string" />
|
||||
|
||||
<xs:element name="Solution">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
<xs:element ref="Configuration" minOccurs="1" maxOccurs="unbounded" />
|
||||
<xs:element ref="Files" minOccurs="0" />
|
||||
<xs:element ref="Project" minOccurs="1" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Project">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Configuration" minOccurs="0" maxOccurs="unbounded" />
|
||||
|
||||
<xs:element name="ReferencePath" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
|
||||
|
||||
<xs:element name="Reference" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" />
|
||||
<xs:attribute name="localCopy" type="xs:boolean" />
|
||||
<xs:attribute name="version" type="xs:string" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element ref="Files" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
|
||||
<xs:attribute name="language" default="C#">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="C#" />
|
||||
<xs:enumeration value="VB.NET" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="type" default="Exe">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Exe" />
|
||||
<xs:enumeration value="WinExe" />
|
||||
<xs:enumeration value="Library" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="runtime" default="Microsoft">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Microsoft" />
|
||||
<xs:enumeration value="Mono" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="startupObject" type="xs:string" default="" />
|
||||
<xs:attribute name="rootNamespace" type="xs:string" />
|
||||
<xs:attribute name="assemblyName" type="xs:string" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Configuration">
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
</xs:all>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Options">
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element name="CompilerDefines" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OptimizeCode" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="CheckUnderflowOverflow" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="AllowUnsafe" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="WarningLevel" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minInclusive value="0" />
|
||||
<xs:maxInclusive value="4"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="WarningsAsErrors" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="SupressWarnings" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OutputPath" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="XmlDocFile" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="DebugInformation" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="RegisterCOMInterop" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="IncrementalBuild" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="BaseAddress" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FileAlignment" type="xs:integer" minOccurs="0" />
|
||||
<xs:element name="NoStdLib" type="xs:boolean" minOccurs="0" />
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Files">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="File" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Match" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="File">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="buildAction" default="Compile">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Compile" />
|
||||
<xs:enumeration value="Content" />
|
||||
<xs:enumeration value="EmbeddedResource" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Match">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="path" type="xs:string" use="required" />
|
||||
<xs:attribute name="pattern" type="xs:string" use="required" />
|
||||
<xs:attribute name="recurse" type="xs:boolean" default="false" />
|
||||
<xs:attribute name="useRegex" type="xs:boolean" default="false" />
|
||||
<xs:attribute name="buildAction" default="Compile">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Compile" />
|
||||
<xs:enumeration value="Content" />
|
||||
<xs:enumeration value="EmbeddedResource" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
|
@ -0,0 +1,206 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<xs:schema elementFormDefault="qualified"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
targetNamespace="http://dnpb.sourceforge.net/schemas/dnpb-1.3.xsd"
|
||||
xmlns="http://dnpb.sourceforge.net/schemas/dnpb-1.3.xsd"
|
||||
>
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Copyright (c) 2004-2005 Matthew Holmes (calefaction at houston . rr . com), Dan Moorehead (dan05a at gmail . com)
|
||||
|
||||
.NET Pre-Build is an XML-driven pre-build tool allowing developers to
|
||||
easily generate project or make files for major IDE's and .NET
|
||||
development tools including: Visual Studio 2003, Visual Studio 2002,
|
||||
SharpDevelop, MonoDevelop, and NAnt.
|
||||
|
||||
BSD License:
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
|
||||
<xs:element name="DNPreBuild">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Process" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Solution" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="version" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Process" type="xs:string" />
|
||||
|
||||
<xs:element name="Solution">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
<xs:element ref="Configuration" minOccurs="1" maxOccurs="unbounded" />
|
||||
<xs:element ref="Files" minOccurs="0" />
|
||||
<xs:element ref="Project" minOccurs="1" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Project">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Configuration" minOccurs="0" maxOccurs="unbounded" />
|
||||
|
||||
<xs:element name="ReferencePath" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
|
||||
|
||||
<xs:element name="Reference" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" />
|
||||
<xs:attribute name="localCopy" type="xs:boolean" />
|
||||
<xs:attribute name="version" type="xs:string" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element ref="Files" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
<xs:attribute name="icon" type="xs:string" default="" />
|
||||
|
||||
<xs:attribute name="language" default="C#">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="C#" />
|
||||
<xs:enumeration value="VB.NET" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="type" default="Exe">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Exe" />
|
||||
<xs:enumeration value="WinExe" />
|
||||
<xs:enumeration value="Library" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="runtime" default="Microsoft">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Microsoft" />
|
||||
<xs:enumeration value="Mono" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="startupObject" type="xs:string" default="" />
|
||||
<xs:attribute name="rootNamespace" type="xs:string" />
|
||||
<xs:attribute name="assemblyName" type="xs:string" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Configuration">
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
</xs:all>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Options">
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element name="CompilerDefines" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OptimizeCode" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="CheckUnderflowOverflow" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="AllowUnsafe" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="WarningLevel" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minInclusive value="0" />
|
||||
<xs:maxInclusive value="4"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="WarningsAsErrors" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="SupressWarnings" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OutputPath" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="XmlDocFile" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="DebugInformation" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="RegisterCOMInterop" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="IncrementalBuild" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="BaseAddress" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FileAlignment" type="xs:integer" minOccurs="0" />
|
||||
<xs:element name="NoStdLib" type="xs:boolean" minOccurs="0" />
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Files">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="File" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Match" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="File">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="buildAction" default="Compile">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Compile" />
|
||||
<xs:enumeration value="Content" />
|
||||
<xs:enumeration value="EmbeddedResource" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Match">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="path" type="xs:string" />
|
||||
<xs:attribute name="pattern" type="xs:string" use="required" />
|
||||
<xs:attribute name="recurse" type="xs:boolean" default="false" />
|
||||
<xs:attribute name="useRegex" type="xs:boolean" default="false" />
|
||||
<xs:attribute name="buildAction" default="Compile">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Compile" />
|
||||
<xs:enumeration value="Content" />
|
||||
<xs:enumeration value="EmbeddedResource" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
|
@ -0,0 +1,212 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<xs:schema elementFormDefault="qualified"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
targetNamespace="http://dnpb.sourceforge.net/schemas/dnpb-1.4.xsd"
|
||||
xmlns="http://dnpb.sourceforge.net/schemas/dnpb-1.4.xsd"
|
||||
>
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Copyright (c) 2004-2005 Matthew Holmes (calefaction at houston . rr . com), Dan Moorehead (dan05a at gmail . com)
|
||||
|
||||
.NET Prebuild is a cross-platform XML-driven pre-build tool which
|
||||
allows developers to easily generate project or make files for major
|
||||
IDE's and .NET development tools including: Visual Studio .NET 2002 and
|
||||
2003, SharpDevelop, MonoDevelop, and NAnt.
|
||||
|
||||
BSD License:
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
|
||||
<xs:element name="DNPreBuild">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Process" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Solution" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="version" />
|
||||
<xs:attribute name="checkOsVars" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Process" type="xs:string" />
|
||||
|
||||
<xs:element name="Solution">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
<xs:element ref="Configuration" minOccurs="1" maxOccurs="unbounded" />
|
||||
<xs:element ref="Files" minOccurs="0" />
|
||||
<xs:element ref="Project" minOccurs="1" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="activeConfig" type="xs:string" default="Debug" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Project">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Configuration" minOccurs="0" maxOccurs="unbounded" />
|
||||
|
||||
<xs:element name="ReferencePath" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
|
||||
|
||||
<xs:element name="Reference" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" />
|
||||
<xs:attribute name="localCopy" type="xs:boolean" />
|
||||
<xs:attribute name="version" type="xs:string" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element ref="Files" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
<xs:attribute name="icon" type="xs:string" default="" />
|
||||
|
||||
<xs:attribute name="language" default="C#">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="C#" />
|
||||
<xs:enumeration value="VB.NET" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="type" default="Exe">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Exe" />
|
||||
<xs:enumeration value="WinExe" />
|
||||
<xs:enumeration value="Library" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="runtime" default="Microsoft">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Microsoft" />
|
||||
<xs:enumeration value="Mono" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="startupObject" type="xs:string" default="" />
|
||||
<xs:attribute name="rootNamespace" type="xs:string" />
|
||||
<xs:attribute name="assemblyName" type="xs:string" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Configuration">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Options">
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element name="CompilerDefines" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OptimizeCode" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="CheckUnderflowOverflow" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="AllowUnsafe" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="WarningLevel" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minInclusive value="0" />
|
||||
<xs:maxInclusive value="4"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="WarningsAsErrors" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="SupressWarnings" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OutputPath" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="XmlDocFile" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="DebugInformation" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="RegisterCOMInterop" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="IncrementalBuild" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="BaseAddress" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FileAlignment" type="xs:integer" minOccurs="0" />
|
||||
<xs:element name="NoStdLib" type="xs:boolean" minOccurs="0" />
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Files">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="File" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Match" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="File">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="buildAction" default="Compile">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="None" />
|
||||
<xs:enumeration value="Compile" />
|
||||
<xs:enumeration value="Content" />
|
||||
<xs:enumeration value="EmbeddedResource" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Match">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="path" type="xs:string" />
|
||||
<xs:attribute name="pattern" type="xs:string" use="required" />
|
||||
<xs:attribute name="recurse" type="xs:boolean" default="false" />
|
||||
<xs:attribute name="useRegex" type="xs:boolean" default="false" />
|
||||
<xs:attribute name="buildAction" default="Compile">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="None" />
|
||||
<xs:enumeration value="Compile" />
|
||||
<xs:enumeration value="Content" />
|
||||
<xs:enumeration value="EmbeddedResource" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
|
||||
|
|
@ -0,0 +1,215 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<xs:schema elementFormDefault="qualified"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
targetNamespace="http://dnpb.sourceforge.net/schemas/dnpb-1.5.xsd"
|
||||
xmlns="http://dnpb.sourceforge.net/schemas/dnpb-1.5.xsd"
|
||||
>
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Copyright (c) 2004-2005 Matthew Holmes (calefaction at houston . rr . com), Dan Moorehead (dan05a at gmail . com)
|
||||
|
||||
.NET Prebuild is a cross-platform XML-driven pre-build tool which
|
||||
allows developers to easily generate project or make files for major
|
||||
IDE's and .NET development tools including: Visual Studio .NET 2002 and
|
||||
2003, SharpDevelop, MonoDevelop, and NAnt.
|
||||
|
||||
BSD License:
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
|
||||
<xs:element name="DNPreBuild">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Process" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Solution" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="version" />
|
||||
<xs:attribute name="checkOsVars" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Process" type="xs:string" />
|
||||
|
||||
<xs:element name="Solution">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
<xs:element ref="Configuration" minOccurs="1" maxOccurs="unbounded" />
|
||||
<xs:element ref="Files" minOccurs="0" />
|
||||
<xs:element ref="Project" minOccurs="1" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="activeConfig" type="xs:string" default="Debug" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Project">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Configuration" minOccurs="0" maxOccurs="unbounded" />
|
||||
|
||||
<xs:element name="ReferencePath" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
|
||||
|
||||
<xs:element name="Reference" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" />
|
||||
<xs:attribute name="localCopy" type="xs:boolean" />
|
||||
<xs:attribute name="version" type="xs:string" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element ref="Files" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="filterGroups" type="xs:string" default="" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
<xs:attribute name="icon" type="xs:string" default="" />
|
||||
|
||||
<xs:attribute name="language" default="C#">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="C#" />
|
||||
<xs:enumeration value="VB.NET" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="type" default="Exe">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Exe" />
|
||||
<xs:enumeration value="WinExe" />
|
||||
<xs:enumeration value="Library" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="runtime" default="Microsoft">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Microsoft" />
|
||||
<xs:enumeration value="Mono" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="startupObject" type="xs:string" default="" />
|
||||
<xs:attribute name="rootNamespace" type="xs:string" />
|
||||
<xs:attribute name="assemblyName" type="xs:string" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Configuration">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Options">
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element name="CompilerDefines" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OptimizeCode" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="CheckUnderflowOverflow" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="AllowUnsafe" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="WarningLevel" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minInclusive value="0" />
|
||||
<xs:maxInclusive value="4"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="WarningsAsErrors" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="SupressWarnings" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OutputPath" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="GenerateXmlDocFile" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="XmlDocFile" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="DebugInformation" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="RegisterCOMInterop" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="RemoveIntegerChecks" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="IncrementalBuild" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="BaseAddress" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FileAlignment" type="xs:integer" minOccurs="0" />
|
||||
<xs:element name="NoStdLib" type="xs:boolean" minOccurs="0" />
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Files">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="File" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Match" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="File">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="buildAction" default="Compile">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="None" />
|
||||
<xs:enumeration value="Compile" />
|
||||
<xs:enumeration value="Content" />
|
||||
<xs:enumeration value="EmbeddedResource" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Match">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="path" type="xs:string" />
|
||||
<xs:attribute name="pattern" type="xs:string" use="required" />
|
||||
<xs:attribute name="recurse" type="xs:boolean" default="false" />
|
||||
<xs:attribute name="useRegex" type="xs:boolean" default="false" />
|
||||
<xs:attribute name="buildAction" default="Compile">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="None" />
|
||||
<xs:enumeration value="Compile" />
|
||||
<xs:enumeration value="Content" />
|
||||
<xs:enumeration value="EmbeddedResource" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
|
||||
|
|
@ -0,0 +1,231 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://dnpb.sourceforge.net/schemas/prebuild-1.6.xsd"
|
||||
xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.6.xsd">
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Copyright (c) 2004-2005 Matthew Holmes (calefaction at houston . rr . com), Dan Moorehead (dan05a at gmail . com)
|
||||
|
||||
.NET Prebuild is a cross-platform XML-driven pre-build tool which
|
||||
allows developers to easily generate project or make files for major
|
||||
IDE's and .NET development tools including: Visual Studio .NET 2002 and
|
||||
2003, SharpDevelop, MonoDevelop, and NAnt.
|
||||
|
||||
BSD License:
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:element name="Prebuild">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Process" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Solution" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="version" />
|
||||
<xs:attribute name="checkOsVars" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Process" type="xs:string" />
|
||||
<xs:element name="Solution">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
<xs:element ref="Configuration" minOccurs="1" maxOccurs="unbounded" />
|
||||
<xs:element ref="Files" minOccurs="0" />
|
||||
<xs:element ref="Project" minOccurs="1" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="activeConfig" type="xs:string" default="Debug" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Project">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Configuration" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element name="ReferencePath" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element name="Reference" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" />
|
||||
<xs:attribute name="localCopy" type="xs:boolean" />
|
||||
<xs:attribute name="version" type="xs:string" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element ref="Files" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="filterGroups" type="xs:string" default="" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
<xs:attribute name="icon" type="xs:string" default="" />
|
||||
<xs:attribute name="language" default="C#">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="C#" />
|
||||
<xs:enumeration value="VB.NET" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="type" default="Exe">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Exe" />
|
||||
<xs:enumeration value="WinExe" />
|
||||
<xs:enumeration value="Library" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="runtime" default="Microsoft">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Microsoft" />
|
||||
<xs:enumeration value="Mono" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="startupObject" type="xs:string" default="" />
|
||||
<xs:attribute name="rootNamespace" type="xs:string" />
|
||||
<xs:attribute name="assemblyName" type="xs:string" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Configuration">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Options">
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element name="CompilerDefines" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OptimizeCode" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="CheckUnderflowOverflow" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="AllowUnsafe" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="PreBuildEvent" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PostBuildEvent" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="RunPostBuildEvent" minOccurs="0" default="OnBuildSuccess">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="OnBuildSuccess" />
|
||||
<xs:enumeration value="Always" />
|
||||
<xs:enumeration value="OnOutputUpdated" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="RunScript" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PreBuildEventArgs" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PostBuildEventArgs" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="WarningLevel" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minInclusive value="0" />
|
||||
<xs:maxInclusive value="4" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="WarningsAsErrors" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="SuppressWarnings" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OutputPath" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="XmlDocFile" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="DebugInformation" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="RegisterComInterop" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="RemoveIntegerChecks" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="IncrementalBuild" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="BaseAddress" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FileAlignment" type="xs:integer" minOccurs="0" />
|
||||
<xs:element name="NoStdLib" type="xs:boolean" minOccurs="0" />
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Files">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="File" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Match" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="File">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="buildAction" default="Compile">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="None" />
|
||||
<xs:enumeration value="Compile" />
|
||||
<xs:enumeration value="Content" />
|
||||
<xs:enumeration value="EmbeddedResource" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="subType" default="Code">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Code" />
|
||||
<xs:enumeration value="Component" />
|
||||
<xs:enumeration value="Form" />
|
||||
<xs:enumeration value="UserControl" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Match">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Exclude" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="path" type="xs:string" />
|
||||
<xs:attribute name="pattern" type="xs:string" use="required" />
|
||||
<xs:attribute name="recurse" type="xs:boolean" default="false" />
|
||||
<xs:attribute name="useRegex" type="xs:boolean" default="false" />
|
||||
<xs:attribute name="buildAction" default="Compile">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="None" />
|
||||
<xs:enumeration value="Compile" />
|
||||
<xs:enumeration value="Content" />
|
||||
<xs:enumeration value="EmbeddedResource" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="subType" default="Code">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Code" />
|
||||
<xs:enumeration value="Component" />
|
||||
<xs:enumeration value="Form" />
|
||||
<xs:enumeration value="UserControl" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Exclude">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
|
@ -0,0 +1,261 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd"
|
||||
xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd">
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Copyright (c) 2004-2005 Matthew Holmes (calefaction at houston . rr . com), Dan Moorehead (dan05a at gmail . com), David Hudson (jendave at yahoo dot com)
|
||||
|
||||
.NET Prebuild is a cross-platform XML-driven pre-build tool which
|
||||
allows developers to easily generate project or make files for major
|
||||
IDE's and .NET development tools including: Visual Studio .NET 2002 and
|
||||
2003, SharpDevelop, MonoDevelop, and NAnt.
|
||||
|
||||
BSD License:
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
and the following disclaimer in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* The name of the author may not be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:element name="Prebuild">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Process" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Solution" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="version" />
|
||||
<xs:attribute name="checkOsVars" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Process" type="xs:string" />
|
||||
<xs:element name="Solution">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
<xs:element ref="Configuration" minOccurs="1" maxOccurs="unbounded" />
|
||||
<xs:element ref="Files" minOccurs="0" />
|
||||
<xs:element ref="Project" minOccurs="1" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="activeConfig" type="xs:string" default="Debug" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
<xs:attribute name="version" type="xs:string" default="1.0.0" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Project">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Configuration" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element name="ReferencePath" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element name="Reference" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" />
|
||||
<xs:attribute name="localCopy" type="xs:boolean" />
|
||||
<xs:attribute name="version" type="xs:string" default="1.0.0"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element ref="Files" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="designerFolder" type="xs:string" default="" />
|
||||
<xs:attribute name="filterGroups" type="xs:string" default="" />
|
||||
<xs:attribute name="path" type="xs:string" default="" />
|
||||
<xs:attribute name="icon" type="xs:string" default="" />
|
||||
<xs:attribute name="language" default="C#">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="C#" />
|
||||
<xs:enumeration value="VB.NET" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="type" default="Exe">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Exe" />
|
||||
<xs:enumeration value="WinExe" />
|
||||
<xs:enumeration value="Library" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="runtime" default="Microsoft">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Microsoft" />
|
||||
<xs:enumeration value="Mono" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="startupObject" type="xs:string" default="" />
|
||||
<xs:attribute name="rootNamespace" type="xs:string" />
|
||||
<xs:attribute name="assemblyName" type="xs:string" />
|
||||
<xs:attribute name="generateAssemblyInfoFile" type="xs:boolean" default="false"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Configuration">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Options" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Options">
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element name="CompilerDefines" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OptimizeCode" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="CheckUnderflowOverflow" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="AllowUnsafe" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="PreBuildEvent" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PostBuildEvent" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="RunPostBuildEvent" minOccurs="0" default="OnBuildSuccess">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="OnBuildSuccess" />
|
||||
<xs:enumeration value="Always" />
|
||||
<xs:enumeration value="OnOutputUpdated" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="RunScript" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PreBuildEventArgs" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PostBuildEventArgs" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="WarningLevel" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minInclusive value="0" />
|
||||
<xs:maxInclusive value="4" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="WarningsAsErrors" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="SuppressWarnings" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="OutputPath" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="GenerateDocumentation" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="XmlDocFile" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="DebugInformation" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="RegisterComInterop" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="RemoveIntegerChecks" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="IncrementalBuild" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="BaseAddress" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FileAlignment" type="xs:integer" minOccurs="0" />
|
||||
<xs:element name="NoStdLib" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="KeyFile" type="xs:string" minOccurs="0" />
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Files">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="File" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element ref="Match" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="File">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="resourceName" type="xs:string" default="" />
|
||||
<xs:attribute name="buildAction" default="Compile">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="None" />
|
||||
<xs:enumeration value="Compile" />
|
||||
<xs:enumeration value="Content" />
|
||||
<xs:enumeration value="EmbeddedResource" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="subType" default="Code">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Code" />
|
||||
<xs:enumeration value="Component" />
|
||||
<xs:enumeration value="Form" />
|
||||
<xs:enumeration value="Settings" />
|
||||
<xs:enumeration value="UserControl" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="link" type="xs:boolean" />
|
||||
<xs:attribute name="copyToOutput" default="Never">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Never" />
|
||||
<xs:enumeration value="Always" />
|
||||
<xs:enumeration value="PreserveNewest" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Match">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Exclude" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="path" type="xs:string" />
|
||||
<xs:attribute name="pattern" type="xs:string" use="required" />
|
||||
<xs:attribute name="recurse" type="xs:boolean" default="false" />
|
||||
<xs:attribute name="useRegex" type="xs:boolean" default="false" />
|
||||
<xs:attribute name="buildAction" default="Compile">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="None" />
|
||||
<xs:enumeration value="Compile" />
|
||||
<xs:enumeration value="Content" />
|
||||
<xs:enumeration value="EmbeddedResource" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="resourceName" type="xs:string" default="" />
|
||||
<xs:attribute name="subType" default="Code">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Code" />
|
||||
<xs:enumeration value="Component" />
|
||||
<xs:enumeration value="Designer" />
|
||||
<xs:enumeration value="Form" />
|
||||
<xs:enumeration value="Settings" />
|
||||
<xs:enumeration value="UserControl" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="link" type="xs:boolean" />
|
||||
<xs:attribute name="copyToOutput" default="Never">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Never" />
|
||||
<xs:enumeration value="Always" />
|
||||
<xs:enumeration value="PreserveNewest" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Exclude">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
|
@ -0,0 +1,55 @@
|
|||
Build Instructions
|
||||
|
||||
=== Microsoft Visual Studio 2005 Sandbox Build ===
|
||||
|
||||
* Check out the trunk code
|
||||
|
||||
* Build the /OpenSim.sln solution
|
||||
|
||||
* open cmd window, go to /bin and launch
|
||||
OpenSim.exe -sandbox -loginserver
|
||||
|
||||
* open another cmd window, locate the secondlife executable
|
||||
(In something like C:\Program Files\SecondLife )
|
||||
|
||||
* run the viewer with
|
||||
secondlife.exe -loginuri http://localhost:8080/
|
||||
|
||||
* Have fun with your own sandbox!
|
||||
|
||||
== Linux/mono sandbox build ==
|
||||
|
||||
* check out the trunk code
|
||||
|
||||
* ensure you have nant (http://nant.sf.net) installed
|
||||
|
||||
* cd to the trunk root directory and type "nant"
|
||||
|
||||
* cd to bin/ and run "mono OpenSim.exe -sandbox -loginserver"
|
||||
|
||||
=== Prebuild ===
|
||||
|
||||
We use Prebuild to generate vs2005 solutions and nant build scripts.
|
||||
|
||||
The Prebuild master project is /prebuild.xml
|
||||
|
||||
To build it with vs2005 :
|
||||
|
||||
* build the solution /Prebuild/Prebuild.sln
|
||||
|
||||
To build it with nant :
|
||||
|
||||
* cd to /Prebuild/
|
||||
* type 'nant'
|
||||
|
||||
After you've built it, move it to the /bin/ directory,
|
||||
|
||||
after that you just modify the prebuild.xml and then execute
|
||||
|
||||
bin/Prebuild.exe /target {target}
|
||||
|
||||
where target is either
|
||||
vs2005 - to generate new vs2005 solutions and projects
|
||||
nant - to generate new nant build scripts
|
||||
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
These are the issues we have with Prebuild:
|
||||
|
||||
* vs2005 target
|
||||
* does not honour localCopy=False - fairly easy to add <Private> node on ref.
|
||||
* screws up solution file projects references by miscalculating relative dir (it walks one level too high up then back)
|
||||
* does not honour localCopy=False - fairly easy to add <Private> node on ref. ** fixed **
|
||||
* screws up solution file projects references by miscalculating relative dir (it walks one level too high up then back) **fixed**
|
||||
* Nant target
|
||||
* doesn't honour Output redirection at all, which causes everything to land in {project}/bin/Debug
|
||||
* doesn't honour Output redirection at all, which causes everything to land in {project}/bin/Debug **fixed**
|
||||
|
||||
Both targets
|
||||
* Have problems with refs
|
||||
|
|
BIN
bin/Prebuild.exe
BIN
bin/Prebuild.exe
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue