Changeset 247137 in webkit


Ignore:
Timestamp:
Jul 4, 2019 3:50:58 AM (5 years ago)
Author:
clopez@igalia.com
Message:

[GTK][WPE][CMake] The CMake cache should be clean when the JHBuild is rebuilt
https://bugs.webkit.org/show_bug.cgi?id=199449

Reviewed by Michael Catanzaro.

  • Scripts/webkitdirs.pm:

(shouldRemoveCMakeCache): Clean the CMake cache if we detect that the JHBuild has been rebuilt.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r247135 r247137  
     12019-07-04  Carlos Alberto Lopez Perez  <clopez@igalia.com>
     2
     3        [GTK][WPE][CMake] The CMake cache should be clean when the JHBuild is rebuilt
     4        https://bugs.webkit.org/show_bug.cgi?id=199449
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * Scripts/webkitdirs.pm:
     9        (shouldRemoveCMakeCache): Clean the CMake cache if we detect that the JHBuild has been rebuilt.
     10
    1112019-07-01  Philippe Normand  <pnormand@igalia.com>
    212
  • trunk/Tools/Scripts/webkitdirs.pm

    r245707 r247137  
    21212121    }
    21222122
     2123    # If a change on the JHBuild moduleset has been done, we need to clean the cache as well.
     2124    if (isGtk() || isWPE()) {
     2125        my $jhbuildRootDirectory = File::Spec->catdir(getJhbuildPath(), "Root");
     2126        # The script update-webkit-libs-jhbuild shall re-generate $jhbuildRootDirectory if the moduleset changed.
     2127        if (-d $jhbuildRootDirectory && $cacheFileModifiedTime < stat($jhbuildRootDirectory)->mtime) {
     2128            return 1;
     2129        }
     2130    }
     2131
    21232132    return 0;
    21242133}
Note: See TracChangeset for help on using the changeset viewer.