This commit is contained in:
mterwoord_cp 2010-08-09 12:34:29 +00:00
parent 5b64f95be6
commit b2b1e4b006
17 changed files with 217 additions and 109 deletions

View file

@ -35,7 +35,7 @@ xcopy /Y ..\..\source\Cosmos\Cosmos.System\bin\debug\Cosmos.Sys.* .
xcopy /Y ..\..\source\Cosmos\Cosmos.Sys.Plugs\bin\Debug\Cosmos.Sys.Plugs.* .
xcopy /Y ..\..\source\Cosmos.Kernel.FileSystems\bin\debug\Cosmos.Sys.FileSystem.* .
xcopy /Y ..\..\source2\VSIP\Cosmos.VS.Package\bin\Debug\Cosmos.VS.Package.* .
xcopy /Y ..\..\source2\VSIP\Cosmos.VS.Package\obj\Debug\CosmosProject.zip .
xcopy /Y "..\..\source2\VSIP\Cosmos.VS.Package\obj\Debug\CosmosProject (C#).zip" .
REM splitup compiler:
xcopy /Y ..\..\source2\Compiler\Cosmos.Compiler.Assembler\bin\debug\Cosmos.Compiler.Assembler.* .
xcopy /Y ..\..\source2\Compiler\Cosmos.Compiler.Assembler.X86\bin\debug\Cosmos.Compiler.Assembler.X86.* .

View file

@ -35,7 +35,7 @@ xcopy /Y ..\..\source\Cosmos\Cosmos.System\bin\debug\Cosmos.Sys.* .
xcopy /Y ..\..\source\Cosmos\Cosmos.Sys.Plugs\bin\Debug\Cosmos.Sys.Plugs.* .
xcopy /Y ..\..\source\Cosmos.Kernel.FileSystems\bin\debug\Cosmos.Sys.FileSystem.* .
xcopy /Y ..\..\source2\VSIP\Cosmos.VS.Package\bin\Debug\Cosmos.VS.Package.* .
xcopy /Y ..\..\source2\VSIP\Cosmos.VS.Package\obj\Debug\CosmosProject.zip .
xcopy /Y "..\..\source2\VSIP\Cosmos.VS.Package\obj\Debug\CosmosProject (C#).zip" .
REM splitup compiler:
xcopy /Y ..\..\source2\Compiler\Cosmos.Compiler.Assembler\bin\debug\Cosmos.Compiler.Assembler.* .
xcopy /Y ..\..\source2\Compiler\Cosmos.Compiler.Assembler.X86\bin\debug\Cosmos.Compiler.Assembler.X86.* .

View file

@ -141,7 +141,7 @@ Source: .\source\Cosmos\Cosmos.Kernel\bin\Debug\Cosmos.Kernel.*; DestDir: {app}\
Source: .\source\Cosmos\Cosmos.System\bin\Debug\Cosmos.Hardware.*; DestDir: {app}\Kernel; Flags: ignoreversion uninsremovereadonly
Source: .\source\Cosmos\Cosmos.System\bin\Debug\Cosmos.Sys.*; DestDir: {app}\Kernel; Flags: ignoreversion uninsremovereadonly
Source: .\source\Cosmos\Cosmos.System\bin\Debug\Cosmos.Sys.FileSystem.*; DestDir: {app}\Kernel; Flags: ignoreversion uninsremovereadonly
Source: .\Build\VSIP\CosmosProject.zip; DestDir: {code:VSNET2008_PATH|}\ProjectTemplates\Cosmos; Flags: ignoreversion uninsremovereadonly
Source: ".\Build\VSIP\CosmosProject (C#).zip"; DestDir: {code:VSNET2008_PATH|}\ProjectTemplates\Cosmos; Flags: ignoreversion uninsremovereadonly
Source: .\source\Cosmos.ico; DestDir: {app}; Flags: ignoreversion uninsremovereadonly
Source: .\Build\ISO\isolinux.*; DestDir: {app}\Build\ISO

View file

@ -36,7 +36,7 @@
References="@(ReferencePath)"
OutputDir="$(TargetDir)"
EnableLogging="true"
EmitDebugSymbols="true">
EmitDebugSymbols="$(DebugSymbols)">
<Output TaskParameter="OutputFilename" PropertyName="KernelName"/>
</IL2CPU>
<Warning Text="$(TargetDir)$(KernelName).asm"/>

View file

@ -35,6 +35,26 @@
<WarningLevel>4</WarningLevel>
<RunCodeAnalysis>false</RunCodeAnalysis>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<SpecificVersion>False</SpecificVersion>
@ -148,6 +168,36 @@
<None Include="Key.snk" />
<Content Include="PLKResponse.html" />
<Content Include="Resources\Cosmos.ico" />
<ZipItem Include="Templates\Projects\CosmosProject %28C#%29\CosmosProject.vstemplate">
<RootPath>Templates\Projects\CosmosProject %28C#%29</RootPath>
</ZipItem>
<ZipItem Include="Templates\Projects\CosmosProject %28C#%29\Kernel.ico">
<RootPath>Templates\Projects\CosmosProject %28C#%29</RootPath>
</ZipItem>
<ZipItem Include="Templates\Projects\CosmosProject %28C#%29\ProjKernel\CSharpProj.vstemplate">
<RootPath>Templates\Projects\CosmosProject %28C#%29</RootPath>
</ZipItem>
<ZipItem Include="Templates\Projects\CosmosProject %28C#%29\ProjKernel\CSharpProject.csproj">
<RootPath>Templates\Projects\CosmosProject %28C#%29</RootPath>
</ZipItem>
<ZipItem Include="Templates\Projects\CosmosProject %28C#%29\ProjKernel\Kernel.ico">
<RootPath>Templates\Projects\CosmosProject %28C#%29</RootPath>
</ZipItem>
<ZipItem Include="Templates\Projects\CosmosProject %28C#%29\ProjKernel\AssemblyInfo.cs">
<RootPath>Templates\Projects\CosmosProject %28C#%29</RootPath>
</ZipItem>
<ZipItem Include="Templates\Projects\CosmosProject %28C#%29\Proj\CosmosProj.vstemplate">
<RootPath>Templates\Projects\CosmosProject %28C#%29</RootPath>
</ZipItem>
<ZipItem Include="Templates\Projects\CosmosProject %28C#%29\Proj\CosmosProject.Cosmos">
<RootPath>Templates\Projects\CosmosProject %28C#%29</RootPath>
</ZipItem>
<ZipItem Include="Templates\Projects\CosmosProject %28C#%29\ProjKernel\Kernel.cs">
<RootPath>Templates\Projects\CosmosProject %28C#%29</RootPath>
</ZipItem>
<ZipItem Include="Templates\Projects\CosmosProject %28C#%29\Proj\Kernel.ico">
<RootPath>Templates\Projects\CosmosProject %28C#%29</RootPath>
</ZipItem>
<EmbeddedResource Include="BuildPage.resx">
<DependentUpon>BuildPage.cs</DependentUpon>
</EmbeddedResource>
@ -179,12 +229,6 @@
<EmbeddedResource Include="VMPage.resx">
<DependentUpon>VMPage.cs</DependentUpon>
</EmbeddedResource>
<ZipProject Include="Templates\Projects\CosmosProject\AssemblyInfo.cs" />
<ZipProject Include="Templates\Projects\CosmosProject\CosmosProject.Cosmos" />
<ZipProject Include="Templates\Projects\CosmosProject\CosmosProject.ico" />
<ZipProject Include="Templates\Projects\CosmosProject\CosmosProject.vstemplate" />
<ZipProject Include="Templates\Projects\CosmosProject\Kernel.ico" />
<ZipProject Include="Templates\Projects\CosmosProject\Program.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\source\Cosmos.Hardware.Plugs\Cosmos.Hardware.Plugs.csproj">
@ -250,26 +294,6 @@
<RegisterWithCodebase>true</RegisterWithCodebase>
<ProjectBasePath>..\MPF\9.0\Src\CSharp</ProjectBasePath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\VSSDK\Microsoft.VsSDK.targets" />
<Import Project="$(ProjectBasePath)\ProjectBase.Files" />

View file

@ -0,0 +1,24 @@
<VSTemplate Version="2.0.0" Type="ProjectGroup" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
<TemplateData>
<Name>Cosmos Project</Name>
<Description>A project for creating a Cosmos Kernel</Description>
<Icon>Kernel.ico</Icon>
<ProjectType>Cosmos</ProjectType>
<SortOrder>50</SortOrder>
</TemplateData>
<TemplateContent>
<ProjectCollection>
<ProjectTemplateLink ProjectName="$safeprojectname$">
Proj\CosmosProj.vstemplate
</ProjectTemplateLink>
<ProjectTemplateLink ProjectName="$safeprojectname$Kernel">
ProjKernel\CSharpProj.vstemplate
</ProjectTemplateLink>
</ProjectCollection>
<CustomParameters>
<CustomParameter Name="guid1" Value="$guid1$"/>
<CustomParameter Name="guid2" Value="$guid2$"/>
<CustomParameter Name="kernelname" Value="$safeprojectname$"/>
</CustomParameters>
</TemplateContent>
</VSTemplate>

View file

@ -0,0 +1,17 @@
<VSTemplate Version="2.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
<TemplateData>
<Name>Proj</Name>
<Description>A project for creating a Cosmos Kernel</Description>
<Icon>Kernel.ico</Icon>
<ProjectType>Cosmos</ProjectType>
<!--<TemplateID>Cosmos.CosmosProject</TemplateID>
<SortOrder>50</SortOrder>
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
<CreateNewFolder>true</CreateNewFolder>
<DefaultName>CosmosProject</DefaultName>
<ProvideDefaultName>true</ProvideDefaultName>-->
</TemplateData>
<TemplateContent>
<Project File="CosmosProject.Cosmos" ReplaceParameters="true"/>
</TemplateContent>
</VSTemplate>

View file

@ -0,0 +1,45 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>$guid1$</ProjectGuid>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
<Name>$safeprojectname$</Name>
<BinFormat>elf</BinFormat>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath>
<Framework>MicrosoftNET</Framework>
<UseInternalAssembler>False</UseInternalAssembler>
<EnableGDB>False</EnableGDB>
<DebugMode>Source</DebugMode>
<TraceMode>User</TraceMode>
<BuildTarget>VMWare</BuildTarget>
<VMWareFlavor>Player</VMWareFlavor>
<StartCosmosGDB>false</StartCosmosGDB>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Release\</OutputPath>
<Framework>MicrosoftNET</Framework>
<UseInternalAssembler>False</UseInternalAssembler>
<EnableGDB>False</EnableGDB>
<DebugMode>Source</DebugMode>
<TraceMode>User</TraceMode>
<BuildTarget>VMWare</BuildTarget>
<VMWareFlavor>Player</VMWareFlavor>
<StartCosmosGDB>false</StartCosmosGDB>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\$safeprojectname$Kernel\$safeprojectname$Kernel.csproj">
<Name>$safeprojectname$Kernel</Name>
<Project>$guid2$</Project>
<Private>True</Private>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Cosmos\Cosmos.targets" />
</Project>

View file

@ -0,0 +1,19 @@
<VSTemplate Version="2.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
<TemplateData>
<Name>ProjKernel</Name>
<Description>A project for creating a Cosmos Kernel</Description>
<Icon>Kernel.ico</Icon>
<ProjectType>CSharp</ProjectType>
<!--<SortOrder>50</SortOrder>
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
<CreateNewFolder>true</CreateNewFolder>
<DefaultName>CosmosProjectKernel</DefaultName>
<ProvideDefaultName>true</ProvideDefaultName>-->
</TemplateData>
<TemplateContent>
<Project File="CSharpProject.csproj" ReplaceParameters="true">
<ProjectItem ReplaceParameters="true">AssemblyInfo.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" OpenInEditor="true">Kernel.cs</ProjectItem>
</Project>
</TemplateContent>
</VSTemplate>

View file

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>$guid2$</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>$kernelname$Kernel</RootNamespace>
<AssemblyName>$kernelname$Kernel</AssemblyName>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System"/>
<Reference Include="System.Data"/>
<Reference Include="System.Xml"/>
<Reference Include="Cosmos.Hardware, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5ae71220097cb983, processorArchitecture=x86" />
<Reference Include="Cosmos.Kernel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5ae71220097cb983, processorArchitecture=x86" />
<Reference Include="Cosmos.Sys, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5ae71220097cb983, processorArchitecture=x86" />
</ItemGroup>
<ItemGroup>
<Compile Include="Kernel.cs" />
<Compile Include="AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View file

@ -2,16 +2,11 @@
using System.Collections.Generic;
using System.Text;
namespace $nameSpace$
namespace $safeprojectname$
{
public class $className$
public class Kernel
{
public static void Init()
{
Main();
}
static void Main()
public static void Boot()
{
// Boot the Cosmos kernel:
Cosmos.Sys.Boot xBoot = new Cosmos.Sys.Boot();

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View file

@ -1,52 +0,0 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{99999999-9999-9999-9999-999999999999}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Cosmos.User.Kernel</RootNamespace>
<AssemblyName>CosmosKernel</AssemblyName>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<Name>Project2</Name>
<Language>CSharp</Language>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath>
<Framework>MicrosoftNET</Framework>
<UseInternalAssembler>False</UseInternalAssembler>
<EnableGDB>False</EnableGDB>
<DebugMode>Source</DebugMode>
<TraceMode>User</TraceMode>
<BuildTarget>VMWare</BuildTarget>
<VMWareFlavor>Player</VMWareFlavor>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugSymbols>false</DebugSymbols>
<OutputPath>bin\Release\</OutputPath>
<Framework>MicrosoftNET</Framework>
<UseInternalAssembler>False</UseInternalAssembler>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="Cosmos.Hardware"/>
<Reference Include="Cosmos.Kernel"/>
<Reference Include="Cosmos.Sys"/>
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Program.cs">
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Cosmos\Cosmos.targets" />
</Project>

View file

@ -1,19 +0,0 @@
<VSTemplate Version="2.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
<TemplateData>
<Name>Cosmos Project</Name>
<Description>A project for creating a Cosmos Kernel</Description>
<Icon>Kernel.ico</Icon>
<ProjectType>Cosmos</ProjectType>
<SortOrder>50</SortOrder>
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
<CreateNewFolder>true</CreateNewFolder>
<DefaultName>CosmosProject</DefaultName>
<ProvideDefaultName>true</ProvideDefaultName>
</TemplateData>
<TemplateContent>
<Project File="CosmosProject.Cosmos" ReplaceParameters="true">
<ProjectItem ReplaceParameters="true" OpenInEditor="true">Program.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" OpenInEditor="false">AssemblyInfo.cs</ProjectItem>
</Project>
</TemplateContent>
</VSTemplate>