⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176560 in webkit


Ignore:
Timestamp:
Nov 28, 2014, 1:50:18 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Add warning if CMake version is too old for building with ninja.
https://bugs.webkit.org/show_bug.cgi?id=139055

Patch by Bartlomiej Gajda <b.gajda@samsung.com> on 2014-11-28
Reviewed by Gyuyoung Kim.

CMake need to be >= 2.8.10 to build WebKit using ninja, some repos don't have
that version in their repositories.

  • efl/install-dependencies:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r176556 r176560  
     12014-11-28  Bartlomiej Gajda  <b.gajda@samsung.com>
     2
     3        [EFL] Add warning if CMake version is too old for building with ninja.
     4        https://bugs.webkit.org/show_bug.cgi?id=139055
     5
     6        Reviewed by Gyuyoung Kim.
     7
     8        CMake need to be >= 2.8.10 to build WebKit using ninja, some repos don't have
     9        that version in their repositories.
     10
     11        * efl/install-dependencies:
     12
    1132014-11-28  Andrzej Badowski  <a.badowski@samsung.com>
    214
  • trunk/Tools/efl/install-dependencies

    r174681 r176560  
    1515}
    1616
     17function checkCmakeVersion() {
     18    CMAKE_VERSION=`cmake --version`
     19
     20    VERSION=`echo "$CMAKE_VERSION" | awk '{split($3,num,".");
     21    if (!(num[1]>2 || num[2]>8 || num[3]>=10))
     22        printf $3}'`
     23
     24    if [ -n "${VERSION}" ]; then
     25        echo "Warning: CMake version detected (${VERSION}) is lower then 2.8.10."
     26        echo "  This will probably cause errors, as older version didn't support CMAKE_NINJA_FORCE_RESPONSE_FILE,"
     27        echo "  which is needed now for building. (look at: https://lists.webkit.org/pipermail/webkit-gtk/2014-March/001809.html )"
     28        echo ""
     29
     30        if [ -f "/etc/issue" ]; then
     31            ubuntu_version=`cat /etc/issue`
     32            if [[ $ubuntu_version == *Ubuntu\ 12.04* ]]; then
     33                echo "  For Ubuntu 12.04 or 12.10 You might consider adding ppa from https://launchpad.net/~kalakris/+archive/ubuntu/cmake"
     34            fi
     35        fi
     36    fi
     37}
     38
    1739function checkInstaller {
    1840    # apt-get - Debian based distributions
     
    2042    if [ $? -eq 0 ]; then
    2143        installDependenciesWithApt
     44        checkCmakeVersion;
    2245        exit 0
    2346    fi
Note: See TracChangeset for help on using the changeset viewer.