Skip to content
  • mrobinson@webkit.org's avatar
    [GTK][CMake] build-webkit should try harder to avoid re-running cmake · 06f46f9a
    mrobinson@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=127073
    
    Reviewed by Daniel Bates.
    
    * Scripts/build-webkit: Unify all the ports that call buildCMakeProjectOrExit with
    the new isCMakeBuild conditional. This allows us to share more code between ports.
    Pass the build arguments to the removeCMakeCache function.
    * Scripts/webkitdirs.pm:
    (runAutogenForAutotoolsProjectIfNecessary): Renamed mustReRunAutogen to cachedArgumentFileOutOfDate
    because it's now shared with the CMake build.
    (cachedArgumentFileOutOfDate): Renamed.
    (cmakeCachePath): Added this helper which gets the CMakeCache.txt path.
    (shouldRemoveCMakeCache): Tries to preserve current behavior for all ports,
    except GTK+ which examines the OptionsGTK.cmake and OptionsCommon.cmake file
    as well as checking if build-webkit has been run with different arguments.
    (removeCMakeCache): Call shouldRemoveCMakeCache now.
    (generateBuildSystemFromCMakeProject): Exit early if CMakeCache.txt exists for GTK+.
    (isCMakeBuild): Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162545 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    06f46f9a