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

Changeset 101157 in webkit


Ignore:
Timestamp:
Nov 25, 2011, 1:31:20 AM (15 years ago)
Author:
haraken@chromium.org
Message:

Remove WebCore.gyp/scripts/rule_binding.py
https://bugs.webkit.org/show_bug.cgi?id=73109

Reviewed by Adam Barth.

rule_binding.py is used by WebCore.gyp only. rule_binding.py is just a wrapper
of generate-bindings.pl and thus we can remove it.

No new tests. No change in behavior.

  • WebCore.gyp/WebCore.gyp: Replaces rule_binding.py with generate-bindings.pl.
  • WebCore.gyp/scripts/rule_binding.py: Removed.
  • bindings/scripts/preprocessor.pm: When '"ENABLE_SOMETHING=1" "ENABLE_OTHERS=0"' is passed as a define macro, the string is passed to our perl scripts without the double-quotations (") omitted. We need to omit the double quatations here.

(applyPreprocessor):

Location:
trunk/Source/WebCore
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r101156 r101157  
     12011-11-25  Kentaro Hara  <haraken@chromium.org>
     2
     3        Remove WebCore.gyp/scripts/rule_binding.py
     4        https://bugs.webkit.org/show_bug.cgi?id=73109
     5
     6        Reviewed by Adam Barth.
     7
     8        rule_binding.py is used by WebCore.gyp only. rule_binding.py is just a wrapper
     9        of generate-bindings.pl and thus we can remove it.
     10
     11        No new tests. No change in behavior.
     12
     13        * WebCore.gyp/WebCore.gyp: Replaces rule_binding.py with generate-bindings.pl.
     14        * WebCore.gyp/scripts/rule_binding.py: Removed.
     15        * bindings/scripts/preprocessor.pm: When '"ENABLE_SOMETHING=1" "ENABLE_OTHERS=0"' is passed as a define macro, the string is passed to our perl scripts without the double-quotations (") omitted. We need to omit the double quatations here.
     16        (applyPreprocessor):
     17
    1182011-11-24  Yury Semikhatsky  <yurys@chromium.org>
    219
  • trunk/Source/WebCore/WebCore.gyp/WebCore.gyp

    r101073 r101157  
    963963          # behavior, change the output location.
    964964          'action': [
    965             'python',
    966             'scripts/rule_binding.py',
     965            'perl',
     966            '-w',
     967            '-I../bindings/scripts',
     968            '../bindings/scripts/generate-bindings.pl',
     969            '--outputHeadersDir',
     970            '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings',
     971            '--outputDir',
     972            '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings',
     973            '--defines',
     974            '<(feature_defines) LANGUAGE_JAVASCRIPT V8_BINDING',
     975            '--generator',
     976            'V8',
     977            '<@(generator_include_dirs)',
    967978            '<(RULE_INPUT_PATH)',
    968             '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings',
    969             '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings',
    970             '--',
    971             '<@(_inputs)',
    972             '--',
    973             '--defines', '<(feature_defines) LANGUAGE_JAVASCRIPT V8_BINDING',
    974             '--generator', 'V8',
    975             '<@(generator_include_dirs)'
    976979          ],
    977980          'message': 'Generating binding from <(RULE_INPUT_PATH)',
  • trunk/Source/WebCore/bindings/scripts/preprocessor.pm

    r91770 r101157  
    5858    }
    5959
    60     my $pid = open2(\*PP_OUT, \*PP_IN, split(' ', $preprocessor), (map { "-D$_" } split(' ', $defines)), $fileName);
     60    my $pid = open2(\*PP_OUT, \*PP_IN, split(' ', $preprocessor), (map { $_ =~ s/^\"|\"$//g; "-D$_" if $_ } split(' ', $defines)), $fileName);
    6161    close PP_IN;
    6262    my @documentContent = <PP_OUT>;
Note: See TracChangeset for help on using the changeset viewer.