Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(11)

Side by Side Diff: Tools/Google.Apis.Release/Program.cs

Issue 176220043: Issue 471: Support WP8.1 (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Patch Set: minor Created 9 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 Copyright 2013 Google Inc 2 Copyright 2013 Google Inc
3 3
4 Licensed under the Apache License, Version 2.0 (the "License"); 4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License. 5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at 6 You may obtain a copy of the License at
7 7
8 http://www.apache.org/licenses/LICENSE-2.0 8 http://www.apache.org/licenses/LICENSE-2.0
9 9
10 Unless required by applicable law or agreed to in writing, software 10 Unless required by applicable law or agreed to in writing, software
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 Directory.CreateDirectory(genDir); 431 Directory.CreateDirectory(genDir);
432 432
433 #region [RELEASE_VERSION]/Generated/Bin 433 #region [RELEASE_VERSION]/Generated/Bin
434 434
435 string binDir = Path.Combine(genDir, "Bin"); 435 string binDir = Path.Combine(genDir, "Bin");
436 TraceSource.TraceEvent(TraceEventType.Information, "Generating \"{0} \" directory", 436 TraceSource.TraceEvent(TraceEventType.Information, "Generating \"{0} \" directory",
437 DirectoryUtilities.GetRelativePath(binDir, ContribRepository.Wor kingDirectory)); 437 DirectoryUtilities.GetRelativePath(binDir, ContribRepository.Wor kingDirectory));
438 438
439 Directory.CreateDirectory(binDir); 439 Directory.CreateDirectory(binDir);
440 Directory.CreateDirectory(Path.Combine(binDir, "WP")); 440 Directory.CreateDirectory(Path.Combine(binDir, "WP"));
441 Directory.CreateDirectory(Path.Combine(binDir, "WP81"));
441 Directory.CreateDirectory(Path.Combine(binDir, "Windows")); 442 Directory.CreateDirectory(Path.Combine(binDir, "Windows"));
442 443
443 foreach (var project in ReleaseProjects) 444 foreach (var project in ReleaseProjects)
444 { 445 {
445 var outputDir = binDir; 446 var outputDir = binDir;
447 // Add Google.Apis.WP81 and Google.Apis.Auth.WP81 assemblies to a WP81 folder.
448 if (project.GetName().Contains("WP81"))
449 {
450 outputDir = Path.Combine(outputDir, "WP81");
451 }
446 // Add Google.Apis.WP and Google.Apis.Auth.WP assemblies to a WP folder. 452 // Add Google.Apis.WP and Google.Apis.Auth.WP assemblies to a WP folder.
447 if (project.GetName().Contains("WP")) 453 else if (project.GetName().Contains("WP"))
448 { 454 {
449 outputDir = Path.Combine(outputDir, "WP"); 455 outputDir = Path.Combine(outputDir, "WP");
450 } 456 }
451 // Add Google.Apis.Windows and Google.Apis.Auth.Windows assembli es to a Windows folder. 457 // Add Google.Apis.Windows and Google.Apis.Auth.Windows assembli es to a Windows folder.
452 else if (project.GetName().Contains("Windows")) 458 else if (project.GetName().Contains("Windows"))
453 { 459 {
454 outputDir = Path.Combine(outputDir, "Windows"); 460 outputDir = Path.Combine(outputDir, "Windows");
455 } 461 }
456 462
457 var releasePath = Path.Combine(project.DirectoryPath, "Bin", "Re lease"); 463 var releasePath = Path.Combine(project.DirectoryPath, "Bin", "Re lease");
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 652
647 var releasePaths = new[]· 653 var releasePaths = new[]·
648 { 654 {
649 DefaultRepository.Combine("Src", "GoogleApis.Core", "GoogleA pis.Core.csproj"), 655 DefaultRepository.Combine("Src", "GoogleApis.Core", "GoogleA pis.Core.csproj"),
650 DefaultRepository.Combine("Src", "GoogleApis", "GoogleApis.c sproj"), 656 DefaultRepository.Combine("Src", "GoogleApis", "GoogleApis.c sproj"),
651 DefaultRepository.Combine("Src", "GoogleApis.Auth", "GoogleA pis.Auth.csproj"), 657 DefaultRepository.Combine("Src", "GoogleApis.Auth", "GoogleA pis.Auth.csproj"),
652 658
653 DefaultRepository.Combine("Src", "GoogleApis.DotNet4", "Goog leApis.DotNet4.csproj"), 659 DefaultRepository.Combine("Src", "GoogleApis.DotNet4", "Goog leApis.DotNet4.csproj"),
654 DefaultRepository.Combine("Src", "GoogleApis.Windows", "Goog leApis.Windows.csproj"), 660 DefaultRepository.Combine("Src", "GoogleApis.Windows", "Goog leApis.Windows.csproj"),
655 DefaultRepository.Combine("Src", "GoogleApis.WP", "GoogleApi s.WP.csproj"), 661 DefaultRepository.Combine("Src", "GoogleApis.WP", "GoogleApi s.WP.csproj"),
662 DefaultRepository.Combine("Src", "GoogleApis.WP81", "GoogleA pis.WP81.csproj"),
663
656 664
657 DefaultRepository.Combine("Src", "GoogleApis.Auth.DotNet4", "GoogleApis.Auth.DotNet4.csproj"), 665 DefaultRepository.Combine("Src", "GoogleApis.Auth.DotNet4", "GoogleApis.Auth.DotNet4.csproj"),
658 DefaultRepository.Combine("Src", "GoogleApis.Auth.Mvc4", "Go ogleApis.Auth.Mvc4.csproj"), 666 DefaultRepository.Combine("Src", "GoogleApis.Auth.Mvc4", "Go ogleApis.Auth.Mvc4.csproj"),
659 DefaultRepository.Combine("Src", "GoogleApis.Auth.Windows", "GoogleApis.Auth.Windows.csproj"), 667 DefaultRepository.Combine("Src", "GoogleApis.Auth.Windows", "GoogleApis.Auth.Windows.csproj"),
660 DefaultRepository.Combine("Src", "GoogleApis.Auth.WP", "Goog leApis.Auth.WP.csproj"), 668 DefaultRepository.Combine("Src", "GoogleApis.Auth.WP", "Goog leApis.Auth.WP.csproj"),
669 DefaultRepository.Combine("Src", "GoogleApis.Auth.WP81", "Go ogleApis.Auth.WP81.csproj"),
661 }; 670 };
662 return releaseProjects = (from path in releasePaths 671 return releaseProjects = (from path in releasePaths
663 select new Project(path)).ToList(); 672 select new Project(path)).ToList();
664 } 673 }
665 } 674 }
666 675
667 /// <summary>Builds the "default" repository projects.</summary> 676 /// <summary>Builds the "default" repository projects.</summary>
668 /// <returns><c>true</c> if the default repository was build successfull y</returns> 677 /// <returns><c>true</c> if the default repository was build successfull y</returns>
669 private bool BuildDefaultRepository() 678 private bool BuildDefaultRepository()
670 { 679 {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 724
716 if (!Directory.Exists(path)) 725 if (!Directory.Exists(path))
717 { 726 {
718 Directory.CreateDirectory(path); 727 Directory.CreateDirectory(path);
719 } 728 }
720 729
721 Environment.CurrentDirectory = path; 730 Environment.CurrentDirectory = path;
722 } 731 }
723 } 732 }
724 } 733 }
OLDNEW
« no previous file with comments | « Src/GoogleApis/packages.config ('k') | Tools/Google.Apis.Release/Resources/Google.Apis.Auth.VERSION.nuspec » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b