Unreviewed, rolling out r97954.
[WebKit-https.git] / Source / WebCore / WebCore.gyp / WebCore.gyp
index e3b5b3509591db775ce26343c178e0ab2668b82a..ee4c22527a092a83c5def3310cc6a447d793f30d 100644 (file)
   },
   'targets': [
     {
-      'target_name': 'inspector_protocol_sources',
+      'target_name': 'generate_inspector_protocol_version',
       'type': 'none',
-      'dependencies': [
-        'generate_inspector_protocol_version'
-      ],
       'actions': [
-        {
-          'action_name': 'generateInspectorProtocolSources',
+         {
+          'action_name': 'generateInspectorProtocolVersion',
           'inputs': [
-            # First input. It stands for python script in action below.
-            '../inspector/CodeGeneratorInspector.py',
-            # Other inputs. They go as arguments to the python script.
+            '../inspector/generate-inspector-protocol-version',
             '../inspector/Inspector.json',
           ],
           'outputs': [
-            '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendDispatcher.cpp',
-            '<(SHARED_INTERMEDIATE_DIR)/webkit/InspectorBackendDispatcher.h',
-            '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorFrontend.cpp',
-            '<(SHARED_INTERMEDIATE_DIR)/webkit/InspectorFrontend.h',
-            '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
+            '<(SHARED_INTERMEDIATE_DIR)/webkit/InspectorProtocolVersion.h',
           ],
           'variables': {
             'generator_include_dirs': [
           },
           'action': [
             'python',
-            '<@(_inputs)',
-            '--output_h_dir', '<(SHARED_INTERMEDIATE_DIR)/webkit',
-            '--output_cpp_dir', '<(SHARED_INTERMEDIATE_DIR)/webcore',
-            '--defines', '<(feature_defines) LANGUAGE_JAVASCRIPT',
+            '../inspector/generate-inspector-protocol-version',
+            '-o',
+            '<@(_outputs)',
+            '<@(_inputs)'
           ],
-          'message': 'Generating Inspector protocol sources from Inspector.json',
-        },
+          'message': 'Validate inspector protocol for backwards compatibility and generate version file',
+        }
       ]
     },
     {
-      'target_name': 'generate_inspector_protocol_version',
+      'target_name': 'inspector_idl',
       'type': 'none',
       'actions': [
-         {
-          'action_name': 'generateInspectorProtocolVersion',
+
+        {
+          'action_name': 'generateInspectorProtocolIDL',
           'inputs': [
-            '../inspector/generate-inspector-protocol-version',
+            '../inspector/generate-inspector-idl',
             '../inspector/Inspector.json',
           ],
           'outputs': [
-            '<(SHARED_INTERMEDIATE_DIR)/webkit/InspectorProtocolVersion.h',
+            '<(SHARED_INTERMEDIATE_DIR)/webcore/Inspector.idl',
           ],
           'variables': {
             'generator_include_dirs': [
           },
           'action': [
             'python',
-            '../inspector/generate-inspector-protocol-version',
+            '../inspector/generate-inspector-idl',
             '-o',
             '<@(_outputs)',
             '<@(_inputs)'
           ],
-          'message': 'Validate inspector protocol for backwards compatibility and generate version file',
+          'message': 'Generating Inspector protocol sources from Inspector.idl',
         }
       ]
     },
+    {
+      'target_name': 'inspector_protocol_sources',
+      'type': 'none',
+      'dependencies': [
+        'inspector_idl',
+        'generate_inspector_protocol_version'
+      ],
+      'actions': [
+        {
+          'action_name': 'generateInspectorProtocolSources',
+          # The second input item will be used as item name in vcproj.
+          # It is not possible to put Inspector.idl there because
+          # all idl files are marking as excluded by gyp generator.
+          'inputs': [
+            '../bindings/scripts/generate-bindings.pl',
+            '../inspector/CodeGeneratorInspector.pm',
+            '../bindings/scripts/CodeGenerator.pm',
+            '../bindings/scripts/IDLParser.pm',
+            '../bindings/scripts/IDLStructure.pm',
+            '<(SHARED_INTERMEDIATE_DIR)/webcore/Inspector.idl',
+          ],
+          'outputs': [
+            '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendDispatcher.cpp',
+            '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
+            '<(SHARED_INTERMEDIATE_DIR)/webkit/InspectorBackendDispatcher.h',
+            '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorFrontend.cpp',
+            '<(SHARED_INTERMEDIATE_DIR)/webkit/InspectorFrontend.h',
+          ],
+          'variables': {
+            'generator_include_dirs': [
+            ],
+          },
+          'action': [
+            'python',
+            'scripts/rule_binding.py',
+            '<(SHARED_INTERMEDIATE_DIR)/webcore/Inspector.idl',
+            '<(SHARED_INTERMEDIATE_DIR)/webcore',
+            '<(SHARED_INTERMEDIATE_DIR)/webkit',
+            '--',
+            '<@(_inputs)',
+            '--',
+            '--defines', '<(feature_defines) LANGUAGE_JAVASCRIPT',
+            '--generator', 'Inspector',
+            '<@(generator_include_dirs)'
+          ],
+          'message': 'Generating Inspector protocol sources from Inspector.idl',
+        },
+      ]
+    },
     {
       'target_name': 'injected_script_source',
       'type': 'none',