<commit_before>{
  'variables': {
    'project_name': 'atom',
    'product_name': 'Atom',
    'framework_name': 'Atom Framework',
    'app_sources': [
      'app/atom_main.cc',
      'app/atom_main.h',
    ],
    'bundle_sources': [
      'browser/resources/mac/atom.icns',
    ],
    'coffee_sources': [
      'browser/api/lib/app.coffee',
      'browser/api/lib/atom-delegate.coffee',
      'browser/api/lib/auto-updater.coffee',
      'browser/api/lib/browser-window.coffee',
      'browser/api/lib/dialog.coffee',
      'browser/api/lib/ipc.coffee',
      'browser/api/lib/menu.coffee',
      'browser/api/lib/menu-item.coffee',
      'browser/api/lib/power-monitor.coffee',
      'browser/api/lib/protocol.coffee',
      'browser/lib/init.coffee',
      'browser/lib/objects-registry.coffee',
      'browser/lib/rpc-server.coffee',
      'common/api/lib/callbacks-registry.coffee',
      'common/api/lib/clipboard.coffee',
      'common/api/lib/crash-reporter.coffee',
      'common/api/lib/id-weak-map.coffee',
      'common/api/lib/screen.coffee',
      'common/api/lib/shell.coffee',
      'common/lib/init.coffee',
      'renderer/lib/init.coffee',
      'renderer/api/lib/ipc.coffee',
      'renderer/api/lib/remote.coffee',
    ],
    'lib_sources': [
      'app/atom_main_delegate.cc',
      'app/atom_main_delegate.h',
      'app/atom_main_delegate_mac.mm',
      'browser/api/atom_api_app.cc',
      'browser/api/atom_api_app.h',
      'browser/api/atom_api_auto_updater.cc',
      'browser/api/atom_api_auto_updater.h',
      'browser/api/atom_api_browser_ipc.cc',
      'browser/api/atom_api_browser_ipc.h',
      'browser/api/atom_api_dialog.cc',
      'browser/api/atom_api_dialog.h',
      'browser/api/atom_api_event.cc',
      'browser/api/atom_api_event.h',
      'browser/api/atom_api_menu.cc',
      'browser/api/atom_api_menu.h',
      'browser/api/atom_api_menu_gtk.cc',
      'browser/api/atom_api_menu_gtk.h',
      'browser/api/atom_api_menu_mac.h',
      'browser/api/atom_api_menu_mac.mm',
      'browser/api/atom_api_menu_win.cc',
      'browser/api/atom_api_menu_win.h',
      'browser/api/atom_api_power_monitor.cc',
      'browser/api/atom_api_power_monitor.h',
      'browser/api/atom_api_protocol.cc',
      'browser/api/atom_api_protocol.h',
      'browser/api/atom_api_window.cc',
      'browser/api/atom_api_window.h',
      'browser/api/atom_browser_bindings.cc',
      'browser/api/atom_browser_bindings.h',
      'browser/auto_updater.cc',
      'browser/auto_updater.h',
      'browser/auto_updater_delegate.h',
      'browser/auto_updater_linux.cc',
      'browser/auto_updater_mac.mm',
      'browser/auto_updater_win.cc',
      'browser/atom_application_mac.h',
      'browser/atom_application_mac.mm',
      'browser/atom_application_delegate_mac.h',
      'browser/atom_application_delegate_mac.mm',
      'browser/atom_browser_client.cc',
      'browser/atom_browser_client.h',
      'browser/atom_browser_context.cc',
      'browser/atom_browser_context.h',
      'browser/atom_browser_main_parts.cc',
      'browser/atom_browser_main_parts.h',
      'browser/atom_browser_main_parts_mac.mm',
      'browser/atom_javascript_dialog_manager.cc',
      'browser/atom_javascript_dialog_manager.h',
      'browser/browser.cc',
      'browser/browser.h',
      'browser/browser_linux.cc',
      'browser/browser_mac.mm',
      'browser/browser_win.cc',
      'browser/browser_observer.h',
      'browser/native_window.cc',
      'browser/native_window.h',
      'browser/native_window_gtk.cc',
      'browser/native_window_gtk.h',
      'browser/native_window_mac.h',
      'browser/native_window_mac.mm',
      'browser/native_window_win.cc',
      'browser/native_window_win.h',
      'browser/native_window_observer.h',
      'browser/net/adapter_request_job.cc',
      'browser/net/adapter_request_job.h',
      'browser/net/atom_url_request_context_getter.cc',
      'browser/net/atom_url_request_context_getter.h',
      'browser/net/atom_url_request_job_factory.cc',
      'browser/net/atom_url_request_job_factory.h',
      'browser/net/url_request_string_job.cc',
      'browser/net/url_request_string_job.h',
      'browser/ui/accelerator_util.cc',
      'browser/ui/accelerator_util.h',
      'browser/ui/accelerator_util_gtk.cc',
      'browser/ui/accelerator_util_mac.mm',
      'browser/ui/accelerator_util_win.cc',
      'browser/ui/cocoa/atom_menu_controller.h',
      'browser/ui/cocoa/atom_menu_controller.mm',
      'browser/ui/cocoa/event_processing_window.h',
      'browser/ui/cocoa/event_processing_window.mm',
      'browser/ui/cocoa/nsalert_synchronous_sheet.h',
      'browser/ui/cocoa/nsalert_synchronous_sheet.mm',
      'browser/ui/file_dialog.h',
      'browser/ui/file_dialog_gtk.cc',
      'browser/ui/file_dialog_mac.mm',
      'browser/ui/file_dialog_win.cc',
      'browser/ui/gtk/gtk_custom_menu.cc',
      'browser/ui/gtk/gtk_custom_menu.h',
      'browser/ui/gtk/gtk_custom_menu_item.cc',
      'browser/ui/gtk/gtk_custom_menu_item.h',
      'browser/ui/gtk/gtk_window_util.cc',
      'browser/ui/gtk/gtk_window_util.h',
      'browser/ui/message_box.h',
      'browser/ui/message_box_gtk.cc',
      'browser/ui/message_box_mac.mm',
      'browser/ui/message_box_win.cc',
      'browser/ui/win/menu_2.cc',
      'browser/ui/win/menu_2.h',
      'browser/ui/win/native_menu_win.cc',
      'browser/ui/win/native_menu_win.h',
      'browser/window_list.cc',
      'browser/window_list.h',
      'browser/window_list_observer.h',
      'common/api/api_messages.cc',
      'common/api/api_messages.h',
      'common/api/atom_api_clipboard.cc',
      'common/api/atom_api_clipboard.h',
      'common/api/atom_api_crash_reporter.cc',
      'common/api/atom_api_crash_reporter.h',
      'common/api/atom_api_event_emitter.cc',
      'common/api/atom_api_event_emitter.h',
      'common/api/atom_api_id_weak_map.cc',
      'common/api/atom_api_id_weak_map.h',
      'common/api/atom_api_screen.cc',
      'common/api/atom_api_screen.h',
      'common/api/atom_api_shell.cc',
      'common/api/atom_api_shell.h',
      'common/api/atom_api_v8_util.cc',
      'common/api/atom_bindings.cc',
      'common/api/atom_bindings.h',
      'common/api/atom_extensions.cc',
      'common/api/atom_extensions.h',
      'common/api/object_life_monitor.cc',
      'common/api/object_life_monitor.h',
      'common/crash_reporter/crash_reporter.cc',
      'common/crash_reporter/crash_reporter.h',
      'common/crash_reporter/crash_reporter_linux.cc',
      'common/crash_reporter/crash_reporter_linux.h',
      'common/crash_reporter/crash_reporter_mac.h',
      'common/crash_reporter/crash_reporter_mac.mm',
      'common/crash_reporter/crash_reporter_win.cc',
      'common/crash_reporter/crash_reporter_win.h',
      'common/crash_reporter/win/crash_service.cc',
      'common/crash_reporter/win/crash_service.h',
      'common/crash_reporter/win/crash_service_main.cc',
      'common/crash_reporter/win/crash_service_main.h',
      'common/draggable_region.cc',
      'common/draggable_region.h',
      'common/linux/application_info.cc',
      'common/node_bindings.cc',
      'common/node_bindings.h',
      'common/node_bindings_linux.cc',
      'common/node_bindings_linux.h',
      'common/node_bindings_mac.cc',
      'common/node_bindings_mac.h',
      'common/node_bindings_win.cc',
      'common/node_bindings_win.h',
      'common/options_switches.cc',
      'common/options_switches.h',
      'common/platform_util.h',
      'common/platform_util_linux.cc',
      'common/platform_util_mac.mm',
      'common/platform_util_win.cc',
      'common/swap_or_assign.h',
      'common/v8/node_common.h',
      'common/v8/scoped_persistent.h',
      'common/v8/native_type_conversions.h',
      'common/v8/v8_value_converter.cc',
      'common/v8/v8_value_converter.h',
      'renderer/api/atom_api_renderer_ipc.cc',
      'renderer/api/atom_api_renderer_ipc.h',
      'renderer/api/atom_renderer_bindings.cc',
      'renderer/api/atom_renderer_bindings.h',
      'renderer/atom_render_view_observer.cc',
      'renderer/atom_render_view_observer.h',
      'renderer/atom_renderer_client.cc',
      'renderer/atom_renderer_client.h',
    ],
    'framework_sources': [
      'app/atom_library_main.cc',
      'app/atom_library_main.h',
    ],
    'conditions': [
      ['OS=="win"', {
        'app_sources': [
          'browser/resources/win/resource.h',
          'browser/resources/win/atom.ico',
          'browser/resources/win/atom.rc',
          '<(libchromiumcontent_src_dir)/content/app/startup_helper_win.cc',
        ],
      }],  # OS=="win"
    ],
    'atom_source_root': '<!(python tools/atom_source_root.py)',
  },
  'target_defaults': {
    'mac_framework_dirs': [
      '<(atom_source_root)/frameworks',
    ],
    'includes': [
       # Rules for excluding e.g. foo_win.cc from the build on non-Windows.
      'filename_rules.gypi',
    ],
    'configurations': {
      'Debug': {
        'defines': [
          'DEBUG',
        ],
      },
    },
  },
  'targets': [
    {
      'target_name': '<(project_name)',
      'type': 'executable',
      'dependencies': [
        'generated_sources',
        '<(project_name)_lib',
      ],
      'sources': [
        '<@(app_sources)',
      ],
      'include_dirs': [
        '.',
      ],
      'conditions': [
        ['OS=="mac"', {
          'product_name': '<(product_name)',
          'mac_bundle': 1,
          'dependencies!': [
            '<(project_name)_lib',
          ],
          'dependencies': [
            '<(project_name)_framework',
            '<(project_name)_helper',
          ],
          'xcode_settings': {
            'INFOPLIST_FILE': 'browser/resources/mac/Info.plist',
            'LD_RUNPATH_SEARCH_PATHS': [
              '@executable_path/../Frameworks',
            ],
          },
          'mac_bundle_resources': [
            '<@(bundle_sources)',
          ],
          'copies': [
            {
              'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Frameworks',
              'files': [
                '<(PRODUCT_DIR)/<(product_name) Helper.app',
                '<(PRODUCT_DIR)/<(framework_name).framework',
                'frameworks/Squirrel.framework',
                'frameworks/ReactiveCocoa.framework',
                'frameworks/Mantle.framework',
              ],
            },
            {
              'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/browser',
              'files': [
                'browser/default_app',
              ],
            },
          ],
          'postbuilds': [
            {
              # This postbuid step is responsible for creating the following
              # helpers:
              #
              # <(product_name) EH.app and <(product_name) NP.app are created
              # from <(product_name).app.
              #
              # The EH helper is marked for an executable heap. The NP helper
              # is marked for no PIE (ASLR).
              'postbuild_name': 'Make More Helpers',
              'action': [
                'vendor/brightray/tools/mac/make_more_helpers.sh',
                'Frameworks',
                '<(product_name)',
              ],
            },
          ]
        }],  # OS=="mac"
        ['OS=="win"', {
          'copies': [
            {
              'destination': '<(PRODUCT_DIR)',
              'files': [
                '<(libchromiumcontent_library_dir)/chromiumcontent.dll',
                '<(libchromiumcontent_library_dir)/ffmpegsumo.dll',
                '<(libchromiumcontent_library_dir)/icudt.dll',
                '<(libchromiumcontent_library_dir)/libGLESv2.dll',
                '<(libchromiumcontent_resources_dir)/content_shell.pak',
              ],
            },
            {
              'destination': '<(PRODUCT_DIR)/resources/browser',
              'files': [
                'browser/default_app',
              ]
            },
          ],
        }],  # OS=="win"
        ['OS=="linux"', {
          'copies': [
            {
              'destination': '<(PRODUCT_DIR)',
              'files': [
                '<(libchromiumcontent_library_dir)/libchromiumcontent.so',
                '<(libchromiumcontent_library_dir)/libffmpegsumo.so',
                '<(libchromiumcontent_resources_dir)/content_shell.pak',
              ],
            },
            {
              'destination': '<(PRODUCT_DIR)/resources/browser',
              'files': [
                'browser/default_app',
              ]
            },
          ],
        }],  # OS=="linux"
      ],
    },  # target <(project_name)
    {
      'target_name': '<(project_name)_lib',
      'type': 'static_library',
      'dependencies': [
        'vendor/brightray/brightray.gyp:brightray',
        'vendor/node/node.gyp:node_lib',
      ],
      'sources': [
        '<@(lib_sources)',
      ],
      'include_dirs': [
        '.',
        'vendor',
        # Include directories for uv and node.
        'vendor/node/src',
        'vendor/node/deps/http_parser',
        'vendor/node/deps/uv/include',
        # The `node.h` is using `#include"v8.h"`.
        'vendor/brightray/vendor/download/libchromiumcontent/src/v8/include',
        # The `node.h` is using `#include"ares.h"`.
        'vendor/node/deps/cares/include',
      ],
      'direct_dependent_settings': {
        'include_dirs': [
          '.',
        ],
      },
      'export_dependent_settings': [
        'vendor/brightray/brightray.gyp:brightray',
      ],
      'conditions': [
        ['OS=="win"', {
          'link_settings': {
            'libraries': [
              '-limm32.lib',
              '-loleacc.lib',
              '-lComdlg32.lib',
              '-lWininet.lib',
              '<(atom_source_root)/<(libchromiumcontent_library_dir)/chromiumviews.lib',
            ],
          },
          'dependencies': [
            'vendor/breakpad/breakpad.gyp:breakpad_handler',
            'vendor/breakpad/breakpad.gyp:breakpad_sender',
          ],
        }],
        ['OS=="mac"', {
          'dependencies': [
            'vendor/breakpad/breakpad.gyp:breakpad',
          ],
        }],
      ],
    },  # target <(product_name)_lib
    {
      'target_name': 'generated_sources',
      'type': 'none',
      'sources': [
        '<@(coffee_sources)',
      ],
      'rules': [
        {
          'rule_name': 'coffee',
          'extension': 'coffee',<commit_msg>linux: Make binary search for libraries under current directory.<commit_after>{
  'variables': {
    'project_name': 'atom',
    'product_name': 'Atom',
    'framework_name': 'Atom Framework',
    'app_sources': [
      'app/atom_main.cc',
      'app/atom_main.h',
    ],
    'bundle_sources': [
      'browser/resources/mac/atom.icns',
    ],
    'coffee_sources': [
      'browser/api/lib/app.coffee',
      'browser/api/lib/atom-delegate.coffee',
      'browser/api/lib/auto-updater.coffee',
      'browser/api/lib/browser-window.coffee',
      'browser/api/lib/dialog.coffee',
      'browser/api/lib/ipc.coffee',
      'browser/api/lib/menu.coffee',
      'browser/api/lib/menu-item.coffee',
      'browser/api/lib/power-monitor.coffee',
      'browser/api/lib/protocol.coffee',
      'browser/lib/init.coffee',
      'browser/lib/objects-registry.coffee',
      'browser/lib/rpc-server.coffee',
      'common/api/lib/callbacks-registry.coffee',
      'common/api/lib/clipboard.coffee',
      'common/api/lib/crash-reporter.coffee',
      'common/api/lib/id-weak-map.coffee',
      'common/api/lib/screen.coffee',
      'common/api/lib/shell.coffee',
      'common/lib/init.coffee',
      'renderer/lib/init.coffee',
      'renderer/api/lib/ipc.coffee',
      'renderer/api/lib/remote.coffee',
    ],
    'lib_sources': [
      'app/atom_main_delegate.cc',
      'app/atom_main_delegate.h',
      'app/atom_main_delegate_mac.mm',
      'browser/api/atom_api_app.cc',
      'browser/api/atom_api_app.h',
      'browser/api/atom_api_auto_updater.cc',
      'browser/api/atom_api_auto_updater.h',
      'browser/api/atom_api_browser_ipc.cc',
      'browser/api/atom_api_browser_ipc.h',
      'browser/api/atom_api_dialog.cc',
      'browser/api/atom_api_dialog.h',
      'browser/api/atom_api_event.cc',
      'browser/api/atom_api_event.h',
      'browser/api/atom_api_menu.cc',
      'browser/api/atom_api_menu.h',
      'browser/api/atom_api_menu_gtk.cc',
      'browser/api/atom_api_menu_gtk.h',
      'browser/api/atom_api_menu_mac.h',
      'browser/api/atom_api_menu_mac.mm',
      'browser/api/atom_api_menu_win.cc',
      'browser/api/atom_api_menu_win.h',
      'browser/api/atom_api_power_monitor.cc',
      'browser/api/atom_api_power_monitor.h',
      'browser/api/atom_api_protocol.cc',
      'browser/api/atom_api_protocol.h',
      'browser/api/atom_api_window.cc',
      'browser/api/atom_api_window.h',
      'browser/api/atom_browser_bindings.cc',
      'browser/api/atom_browser_bindings.h',
      'browser/auto_updater.cc',
      'browser/auto_updater.h',
      'browser/auto_updater_delegate.h',
      'browser/auto_updater_linux.cc',
      'browser/auto_updater_mac.mm',
      'browser/auto_updater_win.cc',
      'browser/atom_application_mac.h',
      'browser/atom_application_mac.mm',
      'browser/atom_application_delegate_mac.h',
      'browser/atom_application_delegate_mac.mm',
      'browser/atom_browser_client.cc',
      'browser/atom_browser_client.h',
      'browser/atom_browser_context.cc',
      'browser/atom_browser_context.h',
      'browser/atom_browser_main_parts.cc',
      'browser/atom_browser_main_parts.h',
      'browser/atom_browser_main_parts_mac.mm',
      'browser/atom_javascript_dialog_manager.cc',
      'browser/atom_javascript_dialog_manager.h',
      'browser/browser.cc',
      'browser/browser.h',
      'browser/browser_linux.cc',
      'browser/browser_mac.mm',
      'browser/browser_win.cc',
      'browser/browser_observer.h',
      'browser/native_window.cc',
      'browser/native_window.h',
      'browser/native_window_gtk.cc',
      'browser/native_window_gtk.h',
      'browser/native_window_mac.h',
      'browser/native_window_mac.mm',
      'browser/native_window_win.cc',
      'browser/native_window_win.h',
      'browser/native_window_observer.h',
      'browser/net/adapter_request_job.cc',
      'browser/net/adapter_request_job.h',
      'browser/net/atom_url_request_context_getter.cc',
      'browser/net/atom_url_request_context_getter.h',
      'browser/net/atom_url_request_job_factory.cc',
      'browser/net/atom_url_request_job_factory.h',
      'browser/net/url_request_string_job.cc',
      'browser/net/url_request_string_job.h',
      'browser/ui/accelerator_util.cc',
      'browser/ui/accelerator_util.h',
      'browser/ui/accelerator_util_gtk.cc',
      'browser/ui/accelerator_util_mac.mm',
      'browser/ui/accelerator_util_win.cc',
      'browser/ui/cocoa/atom_menu_controller.h',
      'browser/ui/cocoa/atom_menu_controller.mm',
      'browser/ui/cocoa/event_processing_window.h',
      'browser/ui/cocoa/event_processing_window.mm',
      'browser/ui/cocoa/nsalert_synchronous_sheet.h',
      'browser/ui/cocoa/nsalert_synchronous_sheet.mm',
      'browser/ui/file_dialog.h',
      'browser/ui/file_dialog_gtk.cc',
      'browser/ui/file_dialog_mac.mm',
      'browser/ui/file_dialog_win.cc',
      'browser/ui/gtk/gtk_custom_menu.cc',
      'browser/ui/gtk/gtk_custom_menu.h',
      'browser/ui/gtk/gtk_custom_menu_item.cc',
      'browser/ui/gtk/gtk_custom_menu_item.h',
      'browser/ui/gtk/gtk_window_util.cc',
      'browser/ui/gtk/gtk_window_util.h',
      'browser/ui/message_box.h',
      'browser/ui/message_box_gtk.cc',
      'browser/ui/message_box_mac.mm',
      'browser/ui/message_box_win.cc',
      'browser/ui/win/menu_2.cc',
      'browser/ui/win/menu_2.h',
      'browser/ui/win/native_menu_win.cc',
      'browser/ui/win/native_menu_win.h',
      'browser/window_list.cc',
      'browser/window_list.h',
      'browser/window_list_observer.h',
      'common/api/api_messages.cc',
      'common/api/api_messages.h',
      'common/api/atom_api_clipboard.cc',
      'common/api/atom_api_clipboard.h',
      'common/api/atom_api_crash_reporter.cc',
      'common/api/atom_api_crash_reporter.h',
      'common/api/atom_api_event_emitter.cc',
      'common/api/atom_api_event_emitter.h',
      'common/api/atom_api_id_weak_map.cc',
      'common/api/atom_api_id_weak_map.h',
      'common/api/atom_api_screen.cc',
      'common/api/atom_api_screen.h',
      'common/api/atom_api_shell.cc',
      'common/api/atom_api_shell.h',
      'common/api/atom_api_v8_util.cc',
      'common/api/atom_bindings.cc',
      'common/api/atom_bindings.h',
      'common/api/atom_extensions.cc',
      'common/api/atom_extensions.h',
      'common/api/object_life_monitor.cc',
      'common/api/object_life_monitor.h',
      'common/crash_reporter/crash_reporter.cc',
      'common/crash_reporter/crash_reporter.h',
      'common/crash_reporter/crash_reporter_linux.cc',
      'common/crash_reporter/crash_reporter_linux.h',
      'common/crash_reporter/crash_reporter_mac.h',
      'common/crash_reporter/crash_reporter_mac.mm',
      'common/crash_reporter/crash_reporter_win.cc',
      'common/crash_reporter/crash_reporter_win.h',
      'common/crash_reporter/win/crash_service.cc',
      'common/crash_reporter/win/crash_service.h',
      'common/crash_reporter/win/crash_service_main.cc',
      'common/crash_reporter/win/crash_service_main.h',
      'common/draggable_region.cc',
      'common/draggable_region.h',
      'common/linux/application_info.cc',
      'common/node_bindings.cc',
      'common/node_bindings.h',
      'common/node_bindings_linux.cc',
      'common/node_bindings_linux.h',
      'common/node_bindings_mac.cc',
      'common/node_bindings_mac.h',
      'common/node_bindings_win.cc',
      'common/node_bindings_win.h',
      'common/options_switches.cc',
      'common/options_switches.h',
      'common/platform_util.h',
      'common/platform_util_linux.cc',
      'common/platform_util_mac.mm',
      'common/platform_util_win.cc',
      'common/swap_or_assign.h',
      'common/v8/node_common.h',
      'common/v8/scoped_persistent.h',
      'common/v8/native_type_conversions.h',
      'common/v8/v8_value_converter.cc',
      'common/v8/v8_value_converter.h',
      'renderer/api/atom_api_renderer_ipc.cc',
      'renderer/api/atom_api_renderer_ipc.h',
      'renderer/api/atom_renderer_bindings.cc',
      'renderer/api/atom_renderer_bindings.h',
      'renderer/atom_render_view_observer.cc',
      'renderer/atom_render_view_observer.h',
      'renderer/atom_renderer_client.cc',
      'renderer/atom_renderer_client.h',
    ],
    'framework_sources': [
      'app/atom_library_main.cc',
      'app/atom_library_main.h',
    ],
    'conditions': [
      ['OS=="win"', {
        'app_sources': [
          'browser/resources/win/resource.h',
          'browser/resources/win/atom.ico',
          'browser/resources/win/atom.rc',
          '<(libchromiumcontent_src_dir)/content/app/startup_helper_win.cc',
        ],
      }],  # OS=="win"
    ],
    'atom_source_root': '<!(python tools/atom_source_root.py)',
  },
  'target_defaults': {
    'mac_framework_dirs': [
      '<(atom_source_root)/frameworks',
    ],
    'includes': [
       # Rules for excluding e.g. foo_win.cc from the build on non-Windows.
      'filename_rules.gypi',
    ],
    'configurations': {
      'Debug': {
        'defines': [
          'DEBUG',
        ],
      },
    },
  },
  'targets': [
    {
      'target_name': '<(project_name)',
      'type': 'executable',
      'dependencies': [
        'generated_sources',
        '<(project_name)_lib',
      ],
      'sources': [
        '<@(app_sources)',
      ],
      'include_dirs': [
        '.',
      ],
      'conditions': [
        ['OS=="mac"', {
          'product_name': '<(product_name)',
          'mac_bundle': 1,
          'dependencies!': [
            '<(project_name)_lib',
          ],
          'dependencies': [
            '<(project_name)_framework',
            '<(project_name)_helper',
          ],
          'xcode_settings': {
            'INFOPLIST_FILE': 'browser/resources/mac/Info.plist',
            'LD_RUNPATH_SEARCH_PATHS': [
              '@executable_path/../Frameworks',
            ],
          },
          'mac_bundle_resources': [
            '<@(bundle_sources)',
          ],
          'copies': [
            {
              'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Frameworks',
              'files': [
                '<(PRODUCT_DIR)/<(product_name) Helper.app',
                '<(PRODUCT_DIR)/<(framework_name).framework',
                'frameworks/Squirrel.framework',
                'frameworks/ReactiveCocoa.framework',
                'frameworks/Mantle.framework',
              ],
            },
            {
              'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/browser',
              'files': [
                'browser/default_app',
              ],
            },
          ],
          'postbuilds': [
            {
              # This postbuid step is responsible for creating the following
              # helpers:
              #
              # <(product_name) EH.app and <(product_name) NP.app are created
              # from <(product_name).app.
              #
              # The EH helper is marked for an executable heap. The NP helper
              # is marked for no PIE (ASLR).
              'postbuild_name': 'Make More Helpers',
              'action': [
                'vendor/brightray/tools/mac/make_more_helpers.sh',
                'Frameworks',
                '<(product_name)',
              ],
            },
          ]
        }],  # OS=="mac"
        ['OS=="win"', {
          'copies': [
            {
              'destination': '<(PRODUCT_DIR)',
              'files': [
                '<(libchromiumcontent_library_dir)/chromiumcontent.dll',
                '<(libchromiumcontent_library_dir)/ffmpegsumo.dll',
                '<(libchromiumcontent_library_dir)/icudt.dll',
                '<(libchromiumcontent_library_dir)/libGLESv2.dll',
                '<(libchromiumcontent_resources_dir)/content_shell.pak',
              ],
            },
            {
              'destination': '<(PRODUCT_DIR)/resources/browser',
              'files': [
                'browser/default_app',
              ]
            },
          ],
        }],  # OS=="win"
        ['OS=="linux"', {
          'copies': [
            {
              'destination': '<(PRODUCT_DIR)',
              'files': [
                '<(libchromiumcontent_library_dir)/libchromiumcontent.so',
                '<(libchromiumcontent_library_dir)/libffmpegsumo.so',
                '<(libchromiumcontent_resources_dir)/content_shell.pak',
              ],
            },
            {
              'destination': '<(PRODUCT_DIR)/resources/browser',
              'files': [
                'browser/default_app',
              ]
            },
          ],
        }],  # OS=="linux"
      ],
    },  # target <(project_name)
    {
      'target_name': '<(project_name)_lib',
      'type': 'static_library',
      'dependencies': [
        'vendor/brightray/brightray.gyp:brightray',
        'vendor/node/node.gyp:node_lib',
      ],
      'sources': [
        '<@(lib_sources)',
      ],
      'include_dirs': [
        '.',
        'vendor',
        # Include directories for uv and node.
        'vendor/node/src',
        'vendor/node/deps/http_parser',
        'vendor/node/deps/uv/include',
        # The `node.h` is using `#include"v8.h"`.
        'vendor/brightray/vendor/download/libchromiumcontent/src/v8/include',
        # The `node.h` is using `#include"ares.h"`.
        'vendor/node/deps/cares/include',
      ],
      'direct_dependent_settings': {
        'include_dirs': [
          '.',
        ],
      },
      'export_dependent_settings': [
        'vendor/brightray/brightray.gyp:brightray',
      ],
      'conditions': [
        ['OS=="win"', {
          'link_settings': {
            'libraries': [
              '-limm32.lib',
              '-loleacc.lib',
              '-lComdlg32.lib',
              '-lWininet.lib',
              '<(atom_source_root)/<(libchromiumcontent_library_dir)/chromiumviews.lib',
            ],
          },
          'dependencies': [
            'vendor/breakpad/breakpad.gyp:breakpad_handler',
            'vendor/breakpad/breakpad.gyp:breakpad_sender',
          ],
        }],  # OS=="win"
        ['OS=="mac"', {
          'dependencies': [
            'vendor/breakpad/breakpad.gyp:breakpad',
          ],
        }],  # OS=="mac"
        ['OS=="linux"', {
          'link_settings': {
            # Make binary search for libraries under current directory, so we
            # don't have to manually set $LD_LIBRARY_PATH:
            # http://serverfault.com/questions/279068/cant-find-so-in-the-same-directory-as-the-executable
            'ldflags': [
              '-rpath \$$ORIGIN',
            ],
          },
        }],  # OS=="linux"
      ],
    },  # target <(product_name)_lib
    {
      'target_name': 'generated_sources',
      'type': 'none',
      'sources': [
        '<@(coffee_sources)',
      ],
      'rules': [
        {
          'rule_name': 'coffee',
          'extension': 'coffee',
{'fraction_non_alphanumeric': 0.15001018399076652, 'fraction_numerical': 0.0014257587073121054, 'mean_word_length': 2.2038064165307234, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5635774', 'n_tokens_mistral': 10198, 'n_tokens_neox': 10080, 'n_words': 878}