old_contents: {
    'variables': {
      'platform': '<(OS)',
    },
    'conditions': [
      # Replace gyp platform with node platform, blech
      ['platform == "mac"', {'variables': {'platform': 'darwin'}}],
      ['platform == "win"', {'variables': {'platform': 'win32'}}],
    ],
    'targets': [
      {
        #'target_name': 'glfw-<(platform)-<(target_arch)',
        'target_name': 'glfw',
        'defines': [
          'VERSION=0.2.0'
        ],
        'sources': [ 'src/atb.cc', 'src/glfw.cc' ],
        'include_dirs': [
          '<(module_root_dir)/deps/include',
        ],
        'library_dirs': [
          '<(module_root_dir)/deps/<(platform)',
        ],
        'conditions': [
          ['OS=="linux"', {'libraries': ['-lAntTweakBar', '-lglfw3', '-lGLEW']}],
          ['OS=="mac"', {
            'libraries': ['<(module_root_dir)/deps/darwin/libglfw3.a','-lAntTweakBar', '-lGLEW', '-framework OpenGL']
          }],
          ['OS=="win"', {
            'libraries': [
              'AntTweakBar64.lib',
              'glew64s.lib', 
              'glfw64dll.lib', 
              'opengl32.lib'
              ],
            'defines' : [
              'WIN32_LEAN_AND_MEAN',
              'VC_EXTRALEAN'
            ]
            },
          ],
        ],
      }
    ]
  }
  
new_contents: {
    'variables': {
      'platform': '<(OS)',
    },
    'conditions': [
      # Replace gyp platform with node platform, blech
      ['platform == "mac"', {'variables': {'platform': 'darwin'}}],
      ['platform == "win"', {'variables': {'platform': 'win32'}}],
    ],
    'targets': [
      {
        #'target_name': 'glfw-<(platform)-<(target_arch)',
        'target_name': 'glfw',
        'defines': [
          'VERSION=0.2.0'
        ],
        'sources': [ 'src/atb.cc', 'src/glfw.cc' ],
        'include_dirs': [
          '<(module_root_dir)/deps/include',
        ],
        'library_dirs': [
          '<(module_root_dir)/deps/<(platform)',
        ],
        'conditions': [
          ['OS=="linux"', {'libraries': ['-lAntTweakBar', '`pkg-config --libs glfw3`', '-lGLEW']}],
          ['OS=="mac"', {
            'libraries': ['<(module_root_dir)/deps/darwin/libglfw3.a','-lAntTweakBar', '-lGLEW', '-framework OpenGL']
          }],
          ['OS=="win"', {
            'libraries': [
              'AntTweakBar64.lib',
              'glew64s.lib', 
              'glfw64dll.lib', 
              'opengl32.lib'
              ],
            'defines' : [
              'WIN32_LEAN_AND_MEAN',
              'VC_EXTRALEAN'
            ]
            },
          ],
        ],
      }
    ]
  }
  
subject: Use pkg-config --libs glfw3