# vim: set ft=javascript
{
# NOTE: 'module_name' and 'module_path' come from the 'binary' property in package.json
# node-pre-gyp handles passing them down to node-gyp when you build from source
  "targets": [
  {
    "target_name": "<(module_name)",
      "include_dirs" : [
        "include",
        "<!(node -e \"require('nan')\")"
      ],
      "sources": [ "src/binding.cpp" ],
      'conditions': [
      ['OS=="mac"', {
        'xcode_settings': {
          'GCC_ENABLE_CPP_RTTI': 'YES',
          'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
        }
      }],
      ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
        'cflags_cc!': ['-fno-rtti', '-fno-exceptions'],
        'cflags_cc+': ['-frtti', '-D_REENTRANT'],
        "libraries": [ "<(module_root_dir)/lib/libgfcppcache.so" ]
      }]
    ]
  },
  {
    "target_name": "action_after_build",
    "type": "none",
    "dependencies": [ "<(module_name)" ],
    "copies": [
      {
        "files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
        "destination": "<(module_path)"
      }
    ]
  }
  ]
}

@@ -205,18 +205,22 @@
 s%22: %5B%0A  
-%7B%0A
+  %7B%0A  
     %22tar
@@ -346,302 +346,8 @@
  %5D,%0A
-      %22sources%22: %5B %22src/binding.cpp%22 %5D,%0A      'conditions': %5B%0A      %5B'OS==%22mac%22', %7B%0A        'xcode_settings': %7B%0A          'GCC_ENABLE_CPP_RTTI': 'YES',%0A          'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'%0A        %7D%0A      %7D%5D,%0A      %5B'OS==%22linux%22 or OS==%22freebsd%22 or OS==%22openbsd%22 or OS==%22solaris%22', %7B%0A  
     
@@ -398,26 +398,24 @@
 ns'%5D,%0A      
- 
- 
 'cflags_cc+'
@@ -440,26 +440,24 @@
 EENTRANT'%5D,%0A
-  
       %22libra
@@ -512,33 +512,64 @@
 o%22 %5D
+,
 %0A      
-%7D%5D%0A   
+%22sources%22: %5B %22src/binding.cpp%22
  %5D%0A
+  
   %7D,%0A  
-%7B%0A
+  %7B%0A  
     
@@ -605,16 +605,18 @@
 build%22,%0A
+  
     %22typ
@@ -631,16 +631,18 @@
 e%22,%0A    
+  
 %22depende
@@ -675,16 +675,18 @@
  %5D,%0A    
+  
 %22copies%22
@@ -691,26 +691,30 @@
 s%22: %5B%0A      
+ 
+ 
 %7B%0A
+  
         %22fil
@@ -768,16 +768,18 @@
         
+  
 %22destina
@@ -812,16 +812,22 @@
     
+  
 %7D%0A    
+ 
+ 
 %5D%0A
+  
   %7D%0A

Clean up binding.gyp