Changeset 181098 in webkit


Ignore:
Timestamp:
Mar 5, 2015 1:38:14 PM (9 years ago)
Author:
Brent Fulgham
Message:

[Win] Ensure build target directory exists when launching MSBuild
https://bugs.webkit.org/show_bug.cgi?id=142360

Reviewed by Dean Jackson.

Create the build output directory (if it doesn't exist) before
launching MSBuild so that it can immediately begin writing logs.

  • Scripts/webkitdirs.pm:

(buildVisualStudioProject):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r181093 r181098  
     12015-03-05  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [Win] Ensure build target directory exists when launching MSBuild
     4        https://bugs.webkit.org/show_bug.cgi?id=142360
     5
     6        Reviewed by Dean Jackson.
     7
     8        Create the build output directory (if it doesn't exist) before
     9        launching MSBuild so that it can immediately begin writing logs.
     10
     11        * Scripts/webkitdirs.pm:
     12        (buildVisualStudioProject):
     13
    1142015-03-05  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Tools/Scripts/webkitdirs.pm

    r181092 r181098  
    3939use File::Basename;
    4040use File::Find;
    41 use File::Path qw(mkpath rmtree);
     41use File::Path qw(make_path mkpath rmtree);
    4242use File::Spec;
    4343use File::stat;
     
    16851685
    16861686    my $platform = "/p:Platform=" . (isWin64() ? "x64" : "Win32");
    1687     my $logFile = File::Spec->catdir($baseProductDir, $configuration, "BuildOutput.htm");
     1687    my $logPath = File::Spec->catdir($baseProductDir, $configuration);
     1688    File::Path->make_path($logPath) unless -d $logPath;
     1689
     1690    my $logFile = File::Spec->catfile($logPath, "BuildOutput.htm");
    16881691    chomp($logFile = `cygpath -w "$logFile"`) if isCygwin();
    16891692    my $logging = "/flp:LogFile=" . $logFile . ";Verbosity=minimal";
    1690    
     1693
    16911694    my @command = ($vcBuildPath, "/verbosity:minimal", $project, $action, $config, $platform, "/fl", $logging);
    16921695
Note: See TracChangeset for help on using the changeset viewer.