[GTK] [gyp] Add support for building the platform directory
authormrobinson@webkit.org <mrobinson@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Mar 2013 18:19:16 +0000 (18:19 +0000)
committermrobinson@webkit.org <mrobinson@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Mar 2013 18:19:16 +0000 (18:19 +0000)
https://bugs.webkit.org/show_bug.cgi?id=113212

Reviewed by Nico Weber.

* WebCore.gyp/WebCoreGTK.gyp: Add support for building the platform directory including
two libraries, one for platform and one for geometry files. This follows the approach
of Chromium.

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

Source/WebCore/ChangeLog
Source/WebCore/WebCore.gyp/WebCoreGTK.gyp

index edb2ec8..dacee04 100644 (file)
@@ -1,3 +1,14 @@
+2013-03-25  Martin Robinson  <mrobinson@igalia.com>
+
+        [GTK] [gyp] Add support for building the platform directory
+        https://bugs.webkit.org/show_bug.cgi?id=113212
+
+        Reviewed by Nico Weber.
+
+        * WebCore.gyp/WebCoreGTK.gyp: Add support for building the platform directory including
+        two libraries, one for platform and one for geometry files. This follows the approach
+        of Chromium.
+
 2013-03-25  Jochen Eisinger  <jochen@chromium.org>
 
         Swap both the error and change event queue before processing fullscreen events
index 7d96626..5304397 100644 (file)
       ],
     },
     {
+      'target_name': 'WebCorePlatform',
+      'type': 'static_library',
+      'dependencies': [ 'WebCoreDependencies', ],
+      'include_dirs': [ '<@(webcoregtk_include_dirs)', ],
+      'sources': [
+        '<@(webcore_platform_files)',
+        '../Platform/gtk/GtkVersioning.h',
+       ],
+      'sources/': [
+        ['exclude', '.*'],
+        ['include', 'platform/'],
+
+        ['exclude', '<(excluded_directories_pattern)'],
+        ['exclude', '<(excluded_files_suffixes)'],
+        ['exclude', '<(excluded_files_patterns)'],
+        ['exclude', 'platform/Theme\\.cpp$'],
+        ['exclude', 'platform/image-encoders/.*ImageEncoder\\.(cpp|h)$'],
+        ['exclude', 'platform/text/LocaleToScriptMappingICU\\.cpp$'],
+        ['exclude', 'platform/text/TextEncodingDetectorNone\\.cpp$'],
+        ['exclude', 'platform/graphics/FontPlatformData\\.cpp$'],
+        ['exclude', 'platform/graphics/harfbuzz/FontHarfBuzz\\.cpp$'],
+        ['exclude', 'platform/graphics/harfbuzz/HarfBuzzFaceCoreText\\.cpp$'],
+        ['exclude', 'platform/graphics/harfbuzz/FontPlatformDataHarfBuzz\\.cpp$'],
+        ['exclude', 'platform/network/NetworkStorageSessionStub\\.cpp$'],
+      ],
+    },
+    {
+      'target_name': 'WebCorePlatformGeometry',
+      'type': 'static_library',
+      'dependencies': [ 'WebCoreDependencies', ],
+      'include_dirs': [ '<@(webcoregtk_include_dirs)', ],
+      'sources': [ '<@(webcore_platform_geometry_files)', ],
+    },
+    {
       'target_name': 'WebCore',
       'type': 'none',
-      'dependencies': [ 
+      'dependencies': [
         'WebCoreDOM',
         'WebCoreHTML',
         'WebCoreBindings',
+        'WebCorePlatform',
+        'WebCorePlatformGeometry',
       ],
     },
   ],