2011-03-21 Adam Barth <abarth@webkit.org>
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Mar 2011 00:14:21 +0000 (00:14 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Mar 2011 00:14:21 +0000 (00:14 +0000)
        Reviewed by Eric Seidel.

        Add WebCoreExportFileGenerator to WebCore GYP build
        https://bugs.webkit.org/show_bug.cgi?id=56778

        This target mirrors the eponymous target from WebCore.xcodeproj.

        * WebCore.gypi:
        * gyp/WebCore.gyp:
        * generate-webcore-export-file-generator.sh: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@81623 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/WebCore.gypi
Source/WebCore/gyp/WebCore.gyp
Source/WebCore/gyp/generate-webcore-export-file-generator.sh [new file with mode: 0755]

index edce6c5..5c0f4a1 100644 (file)
@@ -1,5 +1,18 @@
 2011-03-21  Adam Barth  <abarth@webkit.org>
 
+        Reviewed by Eric Seidel.
+
+        Add WebCoreExportFileGenerator to WebCore GYP build
+        https://bugs.webkit.org/show_bug.cgi?id=56778
+
+        This target mirrors the eponymous target from WebCore.xcodeproj.
+
+        * WebCore.gypi:
+        * gyp/WebCore.gyp:
+        * generate-webcore-export-file-generator.sh: Added.
+
+2011-03-21  Adam Barth  <abarth@webkit.org>
+
         Reviewed by Dimitri Glazkov.
 
         WebCore GYP build shouldn&apos;t crash on startup
index 5c89665..0ec68e4 100644 (file)
             '<(PRODUCT_DIR)/DerivedSources/WebCore/XPathGrammar.h',
             '<(PRODUCT_DIR)/DerivedSources/WebCore/tokenizer.cpp',
         ],
+        'export_file_generator_files': [
+            '<(PRODUCT_DIR)/DerivedSources/WebCore/ExportFileGenerator.cpp',
+        ],
     }
 }
index ee91901..8902891 100644 (file)
     {
       'target_name': 'Derived Sources',
       'type': 'none',
+      'dependencies': [
+        'WebCoreExportFileGenerator',
+      ],
       'actions': [{
         'action_name': 'Generate Derived Sources',
         'inputs': [],
           ]
       }],
     },
-    # FIXME: Add WebCoreExportFileGenerator
+    {
+      'target_name': 'WebCoreExportFileGenerator Generator',
+      'type': 'none',
+      'actions': [{
+        'action_name': 'Generate Export File Generator',
+        'inputs': [
+          '<(DEPTH)/WebCore/WebCore.exp.in',
+        ],
+        'outputs': [
+          '<@(export_file_generator_files)',
+        ],
+        'action': [
+          'sh', 'generate-webcore-export-file-generator.sh',
+        ],
+      }],
+    },
+    {
+      'target_name': 'WebCoreExportFileGenerator',
+      'type': 'executable',
+      'dependencies': [
+        'WebCoreExportFileGenerator Generator',
+      ],
+      'include_dirs': [
+        '<(DEPTH)/WebCore/ForwardingHeaders',
+      ],
+      'sources': [
+        '<@(export_file_generator_files)',
+      ],
+    }
   ], # targets
 }
diff --git a/Source/WebCore/gyp/generate-webcore-export-file-generator.sh b/Source/WebCore/gyp/generate-webcore-export-file-generator.sh
new file mode 100755 (executable)
index 0000000..f93f916
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+OUTPUT_DIR="${BUILT_PRODUCTS_DIR}/DerivedSources/${PROJECT_NAME}"
+mkdir -p "${OUTPUT_DIR}"
+"${SRCROOT}"/../make-export-file-generator "${SRCROOT}/../WebCore.exp.in" "${OUTPUT_DIR}/ExportFileGenerator.cpp"