{
  'targets': [
    {
        'target_name': 'informix_bindings'
      , 'informixdir': '<!(echo ${INFORMIXDIR:-/opt/informix})'
      , 'sources': [
              'lib/nodejs-db/binding.cxx'
            , 'lib/nodejs-db/connection.cxx'
            , 'lib/nodejs-db/events.cxx'
            , 'lib/nodejs-db/exception.cxx'
            , 'lib/nodejs-db/query.cxx'
            , 'lib/nodejs-db/result.cxx'
            , 'src/connection.cxx'
            , 'src/informix.cxx'
            , 'src/result.cxx'
            , 'src/query.cxx'
            , 'src/informix_bindings.cxx'
      ]
      , 'include_dirs': [
          '<!(echo $INFORMIXDIR/incl)'
        , '<!(echo $INFORMIXDIR/incl/dmi)'
        , '<!(echo $INFORMIXDIR/incl/esql)'
        , '<!(echo $INFORMIXDIR/incl/c++)'
        , 'lib'
      ]
      , 'defines': [
          'LINUX'
        , 'IT_HAS_DISTINCT_LONG_DOUBLE'
        , 'IT_COMPILER_HAS_LONG_LONG'
        , 'IT_DLLIB'
        , 'MITRACE_OFF'
        # , 'DEBUG'
      ]
      , 'cflags': [
          '-Wall'
        , '-g'
        , '-fsigned-char'
      ]
      , 'cflags_cc': [
          '-fexceptions'
        , '-std=c++11'
      ]
      , 'ldflags': [
          '-lpthread'
        , '-lm'
        , '-ldl'
        , '-lcrypt'
        , '-lnsl'
        , '-lifsql'
        , '-lifasf'
        , '-lifgen'
        , '-lifos'
        , '-lifgls'
        , '-lifglx'
        , '-lifc++'
        , '-lifdmi'
        , '<!(echo $INFORMIXDIR/lib/esql/checkapi.o)'
      ]
      , 'libraries': [
          '-L<!(echo $INFORMIXDIR/lib)'
        , '-L<!(echo $INFORMIXDIR/lib/esql)'
        , '-L<!(echo $INFORMIXDIR/lib/dmi)'
        , '-L<!(echo $INFORMIXDIR/lib/c++)'
      ]
      , 'conditions': [
          ['OS=="win"'
          , {
            # no Windows support yet...
          }
          , {
            'libraries': []
          }]
        , ['OS=="mac"'
          , {
            # no Mac support yet...
            'xcode_settings': {
              'OTHER_CFLAGS': []
            }
          }
        , {
          'cflags': []
        }]
      ]
    }
  ]
}

@@ -1277,67 +1277,215 @@
     
-, '-lifsql'%0A        , '-lifasf'%0A        , '-lifgen'%0A       
+# , '-lgls'%0A        , '-lifgls'%0A        # , '-lglx'%0A        , '-lifglx'%0A        # , '-lifsql'%0A        , '-lthsql'%0A        # , '-lifasf'%0A        , '-lthasf'%0A        # , '-lifgen'%0A        , '-lthgen'%0A        #
  , '
@@ -1497,36 +1497,35 @@
 s'%0A        , '-l
-ifgl
+tho
 s'%0A        , '-l
@@ -1514,32 +1514,34 @@
 hos'%0A       
+ #
  , '-lif
 glx'%0A       
@@ -1520,35 +1520,35 @@
        # , '-lif
-glx
+c++
 '%0A        , '-li
@@ -1542,26 +1542,26 @@
        , '-l
-if
+th
 c++'%0A       
@@ -1552,32 +1552,34 @@
 -lthc++'%0A       
+ #
  , '-lifdmi'%0A   
@@ -1575,16 +1575,36 @@
 lifdmi'%0A
+        , '-lthdmi'%0A
         

use thread enabled libs