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

Changeset 118624 in webkit


Ignore:
Timestamp:
May 27, 2012, 4:35:40 AM (14 years ago)
Author:
ddkilzer@apple.com
Message:

Use xcrun to find gperf path on platforms that use Xcode
<http://webkit.org/b/87587>

Reviewed by Dan Bernstein.

  • WebCore.xcodeproj/project.pbxproj:

(Generate Derived Sources): Set GPERF environment variable using
xcrun.

  • css/makeprop.pl: Use GPERF environment variable if set, else

"gperf".

  • css/makevalues.pl: Ditto.
  • make-hash-tools.pl: Ditto.
Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r118622 r118624  
     12012-05-27  David Kilzer  <ddkilzer@apple.com>
     2
     3        Use xcrun to find gperf path on platforms that use Xcode
     4        <http://webkit.org/b/87587>
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * WebCore.xcodeproj/project.pbxproj:
     9        (Generate Derived Sources): Set GPERF environment variable using
     10        xcrun.
     11        * css/makeprop.pl: Use GPERF environment variable if set, else
     12        "gperf".
     13        * css/makevalues.pl: Ditto.
     14        * make-hash-tools.pl: Ditto.
     15
    1162012-05-27  Li Yin  <li.yin@intel.com>
    217
  • trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r118567 r118624  
    2528725287                        runOnlyForDeploymentPostprocessing = 0;
    2528825288                        shellPath = /bin/sh;
    25289                         shellScript = "mkdir -p \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebCore\"\ncd \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebCore\"\n\n/bin/ln -sfh \"${SRCROOT}\" WebCore\nexport WebCore=\"WebCore\"\n\nif [ ! $CC ]; then\n    case $TARGET_GCC_VERSION in\n        (GCC_42)\n            export CC=\"`xcrun -find gcc-4.2`\";;\n        (LLVM_GCC_42)\n            export CC=\"`xcrun -find llvm-gcc-4.2`\";;\n        (LLVM_COMPILER)\n            export CC=\"`xcrun -find clang`\";;\n    esac\nfi\n\nif [ \"${ACTION}\" = \"build\" -o \"${ACTION}\" = \"install\" -o \"${ACTION}\" = \"installhdrs\" ]; then\n    make  --no-builtin-rules -f \"WebCore/DerivedSources.make\" -j `/usr/sbin/sysctl -n hw.availcpu`\nfi\n";
     25289                        shellScript = "mkdir -p \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebCore\"\ncd \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebCore\"\n\n/bin/ln -sfh \"${SRCROOT}\" WebCore\nexport WebCore=\"WebCore\"\n\nif [ ! $CC ]; then\n    case $TARGET_GCC_VERSION in\n        (GCC_42)\n            export CC=\"`xcrun -find gcc-4.2`\";;\n        (LLVM_GCC_42)\n            export CC=\"`xcrun -find llvm-gcc-4.2`\";;\n        (LLVM_COMPILER)\n            export CC=\"`xcrun -find clang`\";;\n    esac\nfi\n\nif [ ! $GPERF ]; then\n    export GPERF=\"`xcrun -find gperf`\"\nfi\n\nif [ \"${ACTION}\" = \"build\" -o \"${ACTION}\" = \"install\" -o \"${ACTION}\" = \"installhdrs\" ]; then\n    make  --no-builtin-rules -f \"WebCore/DerivedSources.make\" -j `/usr/sbin/sysctl -n hw.availcpu`\nfi\n";
    2529025290                };
    2529125291/* End PBXShellScriptBuildPhase section */
  • trunk/Source/WebCore/css/makeprop.pl

    r113273 r118624  
    44#
    55#   Copyright (C) 1999 Waldo Bastian (bastian@kde.org)
    6 #   Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
     6#   Copyright (C) 2007, 2008, 2012 Apple Inc. All rights reserved.
    77#   Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
    88#   Copyright (C) 2010 Andras Becsi (abecsi@inf.u-szeged.hu), University of Szeged
     
    223223close HEADER;
    224224
    225 system("gperf --key-positions=\"*\" -D -n -s 2 CSSPropertyNames.gperf --output-file=CSSPropertyNames.cpp") == 0 || die "calling gperf failed: $?";
     225my $gperf = $ENV{GPERF} ? $ENV{GPERF} : "gperf";
     226system("\"$gperf\" --key-positions=\"*\" -D -n -s 2 CSSPropertyNames.gperf --output-file=CSSPropertyNames.cpp") == 0 || die "calling gperf failed: $?";
  • trunk/Source/WebCore/css/makevalues.pl

    r113643 r118624  
    44#
    55#   Copyright (C) 1999 Waldo Bastian (bastian@kde.org)
    6 #   Copyright (C) 2007 Apple Inc. All rights reserved.
     6#   Copyright (C) 2007, 2012 Apple Inc. All rights reserved.
    77#   Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
    88#   Copyright (C) 2010 Andras Becsi (abecsi@inf.u-szeged.hu), University of Szeged
     
    161161close HEADER;
    162162
    163 system("gperf --key-positions=\"*\" -D -n -s 2 CSSValueKeywords.gperf --output-file=CSSValueKeywords.cpp") == 0 || die "calling gperf failed: $?";
     163my $gperf = $ENV{GPERF} ? $ENV{GPERF} : "gperf";
     164system("\"$gperf\" --key-positions=\"*\" -D -n -s 2 CSSValueKeywords.gperf --output-file=CSSValueKeywords.cpp") == 0 || die "calling gperf failed: $?";
  • trunk/Source/WebCore/make-hash-tools.pl

    r103031 r118624  
    44#
    55#   Copyright (C) 2010 Andras Becsi (abecsi@inf.u-szeged.hu), University of Szeged
     6#   Copyright (C) 2012 Apple Inc. All rights reserved.
    67#
    78#   This library is free software; you can redistribute it and/or
     
    2728my $option = basename($ARGV[0],".gperf");
    2829
    29 
    3030if ($option eq "ColorData") {
    31 
    3231    my $colorDataGenerated         = "$outdir/ColorData.cpp";
    3332    my $colorDataGperf             = $ARGV[0];
    3433    shift;
    3534
    36     system("gperf --key-positions=\"*\" -D -s 2 $colorDataGperf --output-file=$colorDataGenerated") == 0 || die "calling gperf failed: $?";
     35    my $gperf = $ENV{GPERF} ? $ENV{GPERF} : "gperf";
     36    system("\"$gperf\" --key-positions=\"*\" -D -s 2 $colorDataGperf --output-file=$colorDataGenerated") == 0 || die "calling gperf failed: $?";
    3737
    3838} else {
Note: See TracChangeset for help on using the changeset viewer.