Changeset 172349 in webkit


Ignore:
Timestamp:
Aug 8, 2014 12:20:19 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

make clean does not work in OpenSource, fails in WebKitLibraries
https://bugs.webkit.org/show_bug.cgi?id=135734

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2014-08-08
Reviewed by David Kilzer.

Tools:

  • Scripts/copy-webkitlibraries-to-product-directory:

Add a --clean switch that removes possible WebKitSystemInterface
and LLVM libraries and headers that may have been copied to the
product directory.

WebKitLibraries:

  • Makefile:

Add a "clean" target that runs copy-webkitlibraries-to-product-dir
with the new --clean switch.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r172339 r172349  
     12014-08-08  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        make clean does not work in OpenSource, fails in WebKitLibraries
     4        https://bugs.webkit.org/show_bug.cgi?id=135734
     5
     6        Reviewed by David Kilzer.
     7
     8        * Scripts/copy-webkitlibraries-to-product-directory:
     9        Add a --clean switch that removes possible WebKitSystemInterface
     10        and LLVM libraries and headers that may have been copied to the
     11        product directory.
     12
    1132014-08-08  Joseph Pecoraro  <pecoraro@apple.com>
    214
  • trunk/Tools/Scripts/copy-webkitlibraries-to-product-directory

    r168906 r172349  
    3434my $llvm = 0;
    3535my $wksi = 0;
     36my $clean = 0;
    3637my $llvmIncludePackage = "";
    3738my $llvmLibraryPackage = "";
     
    5051  --[no-]llvm                   Toggle copying LLVM drops (default: $llvm)
    5152  --[no-]wksi                   Toggle copying WebKitSystemInterface drops (default: $wksi)
     53  --clean                       Clean the libraries (default: $clean)
    5254  --use-llvm-includes=<path>    Get the LLVM inludes package from <path>
    5355  --use-llvm-libraries=<path>   Get the LLVM libraries package from <path>
     
    6567    'llvm!' => \$llvm,
    6668    'wksi!' => \$wksi,
     69    'clean' => \$clean,
    6770    'use-llvm-includes=s' => \$llvmIncludePackage,
    6871    'use-llvm-libraries=s' => \$llvmLibraryPackage,
     
    303306}
    304307
     308if ($clean) {
     309    print "Cleaning.\n";   
     310    (system("rm", "-rf", "$productDir/usr/local/include/WebKitSystemInterface.h") == 0) or die;
     311    (system("rm", "-rf", "$productDir$llvmPrefix") == 0) or die;
     312    unlink glob "$productDir/libWebKitSystemInterface*" or die if glob "$productDir/libWebKitSystemInterface*";
     313    unlink glob "$productDir/usr/local/lib/libWebKitSystemInterface*" or die if glob "$productDir/usr/local/lib/libWebKitSystemInterface*";
     314    unlink glob "$productDir/libLLVM*" or die if glob "$productDir/libLLVM*";
     315    unlink glob "$productDir/libLTO*" or die if glob "$productDir/libLTO*";
     316}
  • trunk/WebKitLibraries/ChangeLog

    r172023 r172349  
     12014-08-08  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        make clean does not work in OpenSource, fails in WebKitLibraries
     4        https://bugs.webkit.org/show_bug.cgi?id=135734
     5
     6        Reviewed by David Kilzer.
     7
     8        * Makefile:
     9        Add a "clean" target that runs copy-webkitlibraries-to-product-dir
     10        with the new --clean switch.
     11
    1122014-08-04  Benjamin Poulain  <benjamin@webkit.org>
    213
  • trunk/WebKitLibraries/Makefile

    r171247 r172349  
    44libs:
    55        @true
     6cleanlibs:
     7        @true
    68else
    79libs:
    810        perl $(SCRIPTS_PATH)/copy-webkitlibraries-to-product-directory --wksi --llvm
     11cleanlibs:
     12        perl $(SCRIPTS_PATH)/copy-webkitlibraries-to-product-directory --clean
    913endif
    1014
     
    2226        $(SCRIPTS_PATH)/set-webkit-configuration --release
    2327        @$(MAKE) libs
     28
     29clean:
     30        @$(MAKE) cleanlibs
Note: See TracChangeset for help on using the changeset viewer.