Changeset 167932 in webkit


Ignore:
Timestamp:
Apr 29, 2014 8:17:08 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Generate Eclipse project + ninja build for GTK+ if Eclipse in available in the PATH
https://bugs.webkit.org/show_bug.cgi?id=132190

Patch by Enrique Ocaña González <eocanha@igalia.com> on 2014-04-29
Reviewed by Gustavo Noronha Silva.

  • Scripts/webkitdirs.pm:

(canUseEclipse): Test if Eclipse is in the path. This is the same method used to test

if ninja is in the path.

(generateBuildSystemFromCMakeProject): Use the eclipse generator if possible, fallback

to the previous ninja generator if not.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r167926 r167932  
     12014-04-29  Enrique Ocaña González  <eocanha@igalia.com>
     2
     3        Generate Eclipse project + ninja build for GTK+ if Eclipse in available in the PATH
     4        https://bugs.webkit.org/show_bug.cgi?id=132190
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        * Scripts/webkitdirs.pm:
     9        (canUseEclipse): Test if Eclipse is in the path. This is the same method used to test
     10            if ninja is in the path.
     11        (generateBuildSystemFromCMakeProject): Use the eclipse generator if possible, fallback
     12            to the previous ninja generator if not.
     13
    1142014-04-29  Jozsef Berta  <jberta.u-szeged@partner.samsung.com>
    215
  • trunk/Tools/Scripts/webkitdirs.pm

    r167685 r167932  
    17821782}
    17831783
     1784sub canUseEclipse(@)
     1785{
     1786    system('which eclipse > /dev/null');
     1787    return $? == 0;
     1788}
     1789
    17841790sub cmakeGeneratedBuildfile(@)
    17851791{
     
    18201826    if ($willUseNinja) {
    18211827        push @args, "-G";
    1822         push @args, "Ninja";
     1828        if (canUseEclipse()) {
     1829            push @args, "'Eclipse CDT4 - Ninja'";
     1830        } else {
     1831            push @args, "Ninja";
     1832        }
    18231833    }
    18241834
Note: See TracChangeset for help on using the changeset viewer.