Permalink
Browse files

updated buid script

  • Loading branch information...
prabirshrestha committed Aug 22, 2012
1 parent 70d3aa6 commit 490270cdfa5b29d6b203ccf21a6f7f5567bf6bf3
Showing with 67 additions and 71 deletions.
  1. +67 −22 jakefile.js
  2. +0 −49 src/SimpleJson/SimpleJson-WinRT.csproj
View
@@ -29,6 +29,30 @@ task('default', ['clean', 'build', 'test', 'nuget:pack'])
namespace('build', function () {
+ desc('Build Portble Class Library (with LINQ Expression)')
+ task('pcl', function () {
+ msbuild({
+ file: 'src/SimpleJson/SimpleJson-Portable.csproj',
+ targets: ['Build']
+ })
+ }, { async: true })
+
+ desc('Build Portble Class Library (without LINQ Expression)')
+ task('pclnolinq', function () {
+ msbuild({
+ file: 'src/SimpleJson/SimpleJson-Portable-NoLinqExpression.csproj',
+ targets: ['Build']
+ })
+ }, { async: true })
+
+ desc('Build .NET 4.5')
+ task('net45', function () {
+ msbuild({
+ file: 'src/SimpleJson/SimpleJson-Net45.csproj',
+ targets: ['Build']
+ })
+ }, { async: true })
+
desc('Build .NET 4.0')
task('net40', function () {
msbuild({
@@ -69,14 +93,6 @@ namespace('build', function () {
})
}, { async: true })
- desc('Build Silverlight 3')
- task('sl3', function () {
- msbuild({
- file: 'src/SimpleJson/SimpleJson-SL3.csproj',
- targets: ['Build']
- })
- }, { async: true })
-
desc('Build Windows Phone 7.0')
task('wp70', function () {
msbuild({
@@ -85,22 +101,51 @@ namespace('build', function () {
})
}, { async: true })
- desc('Build WinRT(Metro)')
- task('winrt', function () {
+ desc('Build Windows Phone 7.1')
+ task('wp71', function () {
+ msbuild({
+ file: 'src/SimpleJson/SimpleJson-WP71.csproj',
+ targets: ['Build']
+ })
+ }, { async: true })
+
+ desc('Build Windows Store')
+ task('store', function () {
msbuild({
- file: 'src/SimpleJson/SimpleJson-WinRT.csproj',
+ file: 'src/SimpleJson/SimpleJson-WindowsStore.csproj',
targets: ['Build']
})
}, { async: true })
- task('all', ['build:net40', 'build:net35', 'build:net20', 'build:sl5', 'build:sl4', 'build:sl3', 'build:wp70', 'build:winrt' ]);
+ task('all', ['build:net40', 'build:net35', 'build:net20', 'build:sl5', 'build:sl4', 'build:wp70', 'build:wp71', 'build:net45', 'build:store', 'build:pcl', 'build:pclnolinq']);
})
task('build', ['build:all'])
namespace('clean', function () {
+ task('pcl', function () {
+ msbuild({
+ file: 'src/SimpleJson/SimpleJson-Portable.csproj',
+ targets: ['Clean']
+ })
+ }, { async: true })
+
+ task('pclnolinq', function () {
+ msbuild({
+ file: 'src/SimpleJson/SimpleJson-Portable-NoLinqExpression.csproj',
+ targets: ['Clean']
+ })
+ }, { async: true })
+
+ task('net45', function () {
+ msbuild({
+ file: 'src/SimpleJson/SimpleJson-Net45.csproj',
+ targets: ['Clean']
+ })
+ }, { async: true })
+
task('net40', function () {
msbuild({
file: 'src/SimpleJson/SimpleJson-Net40.csproj',
@@ -136,28 +181,28 @@ namespace('clean', function () {
})
}, { async: true })
- task('sl3', function () {
- msbuild({
- file: 'src/SimpleJson/SimpleJson-SL3.csproj',
- targets: ['Clean']
- })
- }, { async: true })
-
task('wp70', function () {
msbuild({
file: 'src/SimpleJson/SimpleJson-WP7.csproj',
targets: ['Clean']
})
}, { async: true })
- task('winrt', function () {
+ task('wp71', function () {
+ msbuild({
+ file: 'src/SimpleJson/SimpleJson-WP71.csproj',
+ targets: ['Clean']
+ })
+ }, { async: true })
+
+ task('store', function () {
msbuild({
- file: 'src/SimpleJson/SimpleJson-WinRT.csproj',
+ file: 'src/SimpleJson/SimpleJson-WindowsStore.csproj',
targets: ['Clean']
})
}, { async: true })
- task('all', ['clean:net40', 'clean:net35', 'clean:net20', 'clean:sl5', 'clean:sl4', 'clean:sl3', 'clean:wp70', 'clean:winrt' ]);
+ task('all', ['clean:net40', 'clean:net35', 'clean:net20', 'clean:sl5', 'clean:sl4', 'clean:wp70', 'clean:wp71', 'clean:net45', 'clean:store', 'clean:pcl', 'clean:pclnolinq']);
})
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" 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>{FFE44268-471B-4F55-9612-3367F5544F7E}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>SimpleJson_WinRT</RootNamespace>
- <AssemblyName>SimpleJson-WinRT</AssemblyName>
- <DefaultLanguage>en-US</DefaultLanguage>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{BC8A1FFA-BEE3-4634-8014-F334798102B3};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>TRACE;DEBUG;NETFX_CORE;SIMPLE_JSON_DYNAMIC;SIMPLE_JSON_DATACONTRACT;</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;NETFX_CORE;SIMPLE_JSON_DYNAMIC;SIMPLE_JSON_DATACONTRACT;</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="SimpleJson.cs" />
- </ItemGroup>
- <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v11.0\Microsoft.Windows.UI.Xaml.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>

0 comments on commit 490270c

Please sign in to comment.