Blob Blame History Raw
--- a/binding.gyp
+++ b/binding.gyp
@@ -3,8 +3,8 @@
     {
       'target_name': 'node_expat',
       'sources': [ 'node-expat.cc' ],
-      'dependencies': [
-        'deps/libexpat/libexpat.gyp:expat'
+      'libraries': [
+        '-lexpat',
       ]
     }
   ]
--- a/deps/libexpat/libexpat.gyp
+++ b/deps/libexpat/libexpat.gyp
@@ -47,31 +47,15 @@
       'product_prefix': 'lib',
       'type': 'static_library',
       'sources': [
-        'lib/xmlparse.c',
-        'lib/xmltok.c',
-        'lib/xmlrole.c',
+        '../node-expat.cc'
       ],
       'defines': [
         'PIC',
         'HAVE_EXPAT_CONFIG_H'
       ],
-      'include_dirs': [
-        '.',
-        'lib',
+      'libraries': [
+        '-lexpat',
       ],
-      'direct_dependent_settings': {
-        'include_dirs': [
-          '.',
-          'lib',
-        ],
-        'conditions': [
-          ['OS=="win"', {
-            'defines': [
-              'XML_STATIC'
-            ]
-          }]
-        ],
-      },
     },
 
     {