split skia.gyp into separate gypfile for each source dir
see http://codereview.appspot.com/4527084/

Now, to build out/Debug/SampleApp on Linux, do the following:

cd trunk/gyp
rm -rf Makefile *mk *.Makefile out
./gyp_skia -fmake --ignore-environment "--toplevel-dir=$PWD" \
  -Icommon.gypi "--depth=$PWD" SampleApp.gyp
make



git-svn-id: http://skia.googlecode.com/svn/trunk@1446 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gyp/xml.gyp b/gyp/xml.gyp
new file mode 100644
index 0000000..8e825ad
--- /dev/null
+++ b/gyp/xml.gyp
@@ -0,0 +1,58 @@
+{
+  'includes': [
+    'target_defaults.gypi',
+  ],
+  'targets': [
+    {
+      'target_name': 'xml',
+      'type': 'static_library',
+      'include_dirs': [
+        '../include/config',
+        '../include/core',
+        '../include/xml',
+        '../include/utils',
+      ],
+      'sources': [
+        '../include/xml/SkBML_WXMLParser.h',
+        '../include/xml/SkBML_XMLParser.h',
+        '../include/xml/SkDOM.h',
+        '../include/xml/SkJS.h',
+        '../include/xml/SkXMLParser.h',
+        '../include/xml/SkXMLWriter.h',
+
+        '../src/xml/SkBML_Verbs.h',
+        '../src/xml/SkBML_XMLParser.cpp',
+        '../src/xml/SkDOM.cpp',
+        '../src/xml/SkJS.cpp',
+        '../src/xml/SkJSDisplayable.cpp',
+        '../src/xml/SkXMLParser.cpp',
+        '../src/xml/SkXMLPullParser.cpp',
+        '../src/xml/SkXMLWriter.cpp',
+      ],
+      'sources!': [
+          '../src/xml/SkXMLPullParser.cpp', #if 0 around class decl in header
+      ],
+      'conditions': [
+        [ 'OS == "win" or OS == "mac" or OS == "linux" or OS == "openbsd" or OS == "solaris"', {
+          'sources!': [
+            # no jsapi.h by default on system
+            '../include/xml/SkJS.h',
+            '../src/xml/SkJS.cpp',
+            '../src/xml/SkJSDisplayable.cpp',
+          ],
+        }],
+      ],
+      'direct_dependent_settings': {
+        'include_dirs': [
+          '../include/xml',
+        ],
+      },
+    },
+  ],
+}
+
+# Local Variables:
+# tab-width:2
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=2 shiftwidth=2: