2013-04-12 05:46:58 +04:00
|
|
|
{
|
|
|
|
'variables': {
|
|
|
|
'project_name': 'atom',
|
|
|
|
'product_name': 'Atom',
|
2013-11-25 11:37:39 +04:00
|
|
|
'framework_name': 'Atom Framework',
|
2013-04-12 05:46:58 +04:00
|
|
|
'app_sources': [
|
|
|
|
'app/atom_main.cc',
|
2013-11-05 09:12:13 +04:00
|
|
|
'app/atom_main.h',
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
2013-05-14 11:50:33 +04:00
|
|
|
'bundle_sources': [
|
2014-01-31 15:34:31 +04:00
|
|
|
'browser/resources/mac/atom.icns',
|
2013-05-14 11:50:33 +04:00
|
|
|
],
|
2013-04-14 18:48:35 +04:00
|
|
|
'coffee_sources': [
|
2013-05-02 20:05:09 +04:00
|
|
|
'browser/api/lib/app.coffee',
|
2014-01-07 05:50:00 +04:00
|
|
|
'browser/api/lib/atom-delegate.coffee',
|
2013-06-03 13:59:34 +04:00
|
|
|
'browser/api/lib/auto-updater.coffee',
|
2013-05-30 16:16:54 +04:00
|
|
|
'browser/api/lib/browser-window.coffee',
|
2013-05-03 15:31:24 +04:00
|
|
|
'browser/api/lib/dialog.coffee',
|
2013-04-23 08:18:07 +04:00
|
|
|
'browser/api/lib/ipc.coffee',
|
2013-05-14 15:24:52 +04:00
|
|
|
'browser/api/lib/menu.coffee',
|
2013-05-30 16:16:54 +04:00
|
|
|
'browser/api/lib/menu-item.coffee',
|
2013-08-03 11:58:59 +04:00
|
|
|
'browser/api/lib/power-monitor.coffee',
|
2013-08-24 11:26:10 +04:00
|
|
|
'browser/api/lib/protocol.coffee',
|
2013-12-15 10:20:28 +04:00
|
|
|
'browser/lib/init.coffee',
|
|
|
|
'browser/lib/objects-registry.coffee',
|
|
|
|
'browser/lib/rpc-server.coffee',
|
2013-05-30 16:16:54 +04:00
|
|
|
'common/api/lib/callbacks-registry.coffee',
|
2013-04-30 12:10:25 +04:00
|
|
|
'common/api/lib/clipboard.coffee',
|
2013-11-13 13:29:35 +04:00
|
|
|
'common/api/lib/crash-reporter.coffee',
|
2013-05-30 16:16:54 +04:00
|
|
|
'common/api/lib/id-weak-map.coffee',
|
2014-01-07 16:00:25 +04:00
|
|
|
'common/api/lib/screen.coffee',
|
2013-04-29 17:57:05 +04:00
|
|
|
'common/api/lib/shell.coffee',
|
2014-01-13 09:57:08 +04:00
|
|
|
'common/lib/init.coffee',
|
2013-12-15 10:20:28 +04:00
|
|
|
'renderer/lib/init.coffee',
|
2013-04-23 08:18:07 +04:00
|
|
|
'renderer/api/lib/ipc.coffee',
|
2013-04-24 12:43:01 +04:00
|
|
|
'renderer/api/lib/remote.coffee',
|
2013-04-14 18:48:35 +04:00
|
|
|
],
|
2013-04-12 05:46:58 +04:00
|
|
|
'lib_sources': [
|
|
|
|
'app/atom_main_delegate.cc',
|
|
|
|
'app/atom_main_delegate.h',
|
2013-09-12 13:51:45 +04:00
|
|
|
'app/atom_main_delegate_mac.mm',
|
2013-05-02 20:05:09 +04:00
|
|
|
'browser/api/atom_api_app.cc',
|
|
|
|
'browser/api/atom_api_app.h',
|
2013-06-03 13:59:34 +04:00
|
|
|
'browser/api/atom_api_auto_updater.cc',
|
|
|
|
'browser/api/atom_api_auto_updater.h',
|
2013-04-23 08:18:07 +04:00
|
|
|
'browser/api/atom_api_browser_ipc.cc',
|
|
|
|
'browser/api/atom_api_browser_ipc.h',
|
2013-05-03 17:03:26 +04:00
|
|
|
'browser/api/atom_api_dialog.cc',
|
|
|
|
'browser/api/atom_api_dialog.h',
|
2013-04-18 17:42:20 +04:00
|
|
|
'browser/api/atom_api_event.cc',
|
|
|
|
'browser/api/atom_api_event.h',
|
2013-05-06 16:27:09 +04:00
|
|
|
'browser/api/atom_api_menu.cc',
|
|
|
|
'browser/api/atom_api_menu.h',
|
2014-02-14 17:41:20 +04:00
|
|
|
'browser/api/atom_api_menu_gtk.cc',
|
|
|
|
'browser/api/atom_api_menu_gtk.h',
|
2013-05-06 16:27:09 +04:00
|
|
|
'browser/api/atom_api_menu_mac.h',
|
|
|
|
'browser/api/atom_api_menu_mac.mm',
|
2013-07-05 05:44:56 +04:00
|
|
|
'browser/api/atom_api_menu_win.cc',
|
|
|
|
'browser/api/atom_api_menu_win.h',
|
2013-08-03 11:58:59 +04:00
|
|
|
'browser/api/atom_api_power_monitor.cc',
|
|
|
|
'browser/api/atom_api_power_monitor.h',
|
2013-08-24 11:26:10 +04:00
|
|
|
'browser/api/atom_api_protocol.cc',
|
|
|
|
'browser/api/atom_api_protocol.h',
|
2013-04-15 19:01:12 +04:00
|
|
|
'browser/api/atom_api_window.cc',
|
|
|
|
'browser/api/atom_api_window.h',
|
2013-04-21 10:53:26 +04:00
|
|
|
'browser/api/atom_browser_bindings.cc',
|
|
|
|
'browser/api/atom_browser_bindings.h',
|
2013-06-02 16:23:04 +04:00
|
|
|
'browser/auto_updater.cc',
|
|
|
|
'browser/auto_updater.h',
|
|
|
|
'browser/auto_updater_delegate.h',
|
2014-01-02 18:15:02 +04:00
|
|
|
'browser/auto_updater_linux.cc',
|
2013-06-02 16:23:04 +04:00
|
|
|
'browser/auto_updater_mac.mm',
|
2013-07-04 11:37:45 +04:00
|
|
|
'browser/auto_updater_win.cc',
|
2013-05-02 19:03:14 +04:00
|
|
|
'browser/atom_application_mac.h',
|
|
|
|
'browser/atom_application_mac.mm',
|
|
|
|
'browser/atom_application_delegate_mac.h',
|
|
|
|
'browser/atom_application_delegate_mac.mm',
|
2013-04-12 05:46:58 +04:00
|
|
|
'browser/atom_browser_client.cc',
|
|
|
|
'browser/atom_browser_client.h',
|
2013-04-15 20:25:08 +04:00
|
|
|
'browser/atom_browser_context.cc',
|
|
|
|
'browser/atom_browser_context.h',
|
2013-04-12 05:46:58 +04:00
|
|
|
'browser/atom_browser_main_parts.cc',
|
|
|
|
'browser/atom_browser_main_parts.h',
|
2013-05-02 16:09:19 +04:00
|
|
|
'browser/atom_browser_main_parts_mac.mm',
|
2013-04-30 19:56:50 +04:00
|
|
|
'browser/atom_javascript_dialog_manager.cc',
|
|
|
|
'browser/atom_javascript_dialog_manager.h',
|
2013-05-02 19:43:23 +04:00
|
|
|
'browser/browser.cc',
|
|
|
|
'browser/browser.h',
|
2014-01-02 18:47:54 +04:00
|
|
|
'browser/browser_linux.cc',
|
2013-05-02 19:43:23 +04:00
|
|
|
'browser/browser_mac.mm',
|
2013-07-04 16:58:28 +04:00
|
|
|
'browser/browser_win.cc',
|
2013-05-03 06:53:54 +04:00
|
|
|
'browser/browser_observer.h',
|
2013-04-12 11:04:46 +04:00
|
|
|
'browser/native_window.cc',
|
|
|
|
'browser/native_window.h',
|
2014-01-15 17:28:00 +04:00
|
|
|
'browser/native_window_gtk.cc',
|
|
|
|
'browser/native_window_gtk.h',
|
2013-04-12 11:04:46 +04:00
|
|
|
'browser/native_window_mac.h',
|
|
|
|
'browser/native_window_mac.mm',
|
2013-07-05 14:33:37 +04:00
|
|
|
'browser/native_window_win.cc',
|
|
|
|
'browser/native_window_win.h',
|
2013-04-18 16:50:58 +04:00
|
|
|
'browser/native_window_observer.h',
|
2013-08-30 16:02:17 +04:00
|
|
|
'browser/net/adapter_request_job.cc',
|
|
|
|
'browser/net/adapter_request_job.h',
|
2013-09-20 12:47:47 +04:00
|
|
|
'browser/net/atom_url_request_context_getter.cc',
|
|
|
|
'browser/net/atom_url_request_context_getter.h',
|
2013-08-30 12:10:36 +04:00
|
|
|
'browser/net/atom_url_request_job_factory.cc',
|
|
|
|
'browser/net/atom_url_request_job_factory.h',
|
2013-08-30 12:16:41 +04:00
|
|
|
'browser/net/url_request_string_job.cc',
|
|
|
|
'browser/net/url_request_string_job.h',
|
2013-08-13 13:07:25 +04:00
|
|
|
'browser/ui/accelerator_util.cc',
|
|
|
|
'browser/ui/accelerator_util.h',
|
2014-01-02 18:12:05 +04:00
|
|
|
'browser/ui/accelerator_util_gtk.cc',
|
2013-08-13 13:07:25 +04:00
|
|
|
'browser/ui/accelerator_util_mac.mm',
|
|
|
|
'browser/ui/accelerator_util_win.cc',
|
2014-01-16 06:15:35 +04:00
|
|
|
'browser/ui/cocoa/atom_menu_controller.h',
|
|
|
|
'browser/ui/cocoa/atom_menu_controller.mm',
|
2014-01-16 06:09:36 +04:00
|
|
|
'browser/ui/cocoa/event_processing_window.h',
|
|
|
|
'browser/ui/cocoa/event_processing_window.mm',
|
2014-01-16 06:06:05 +04:00
|
|
|
'browser/ui/cocoa/nsalert_synchronous_sheet.h',
|
|
|
|
'browser/ui/cocoa/nsalert_synchronous_sheet.mm',
|
2013-08-13 12:51:47 +04:00
|
|
|
'browser/ui/file_dialog.h',
|
2014-02-14 18:07:23 +04:00
|
|
|
'browser/ui/file_dialog_gtk.cc',
|
2013-08-13 12:51:47 +04:00
|
|
|
'browser/ui/file_dialog_mac.mm',
|
|
|
|
'browser/ui/file_dialog_win.cc',
|
2014-02-14 17:59:41 +04:00
|
|
|
'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',
|
2013-08-13 12:51:47 +04:00
|
|
|
'browser/ui/message_box.h',
|
2014-02-14 18:07:23 +04:00
|
|
|
'browser/ui/message_box_gtk.cc',
|
2013-08-13 12:51:47 +04:00
|
|
|
'browser/ui/message_box_mac.mm',
|
|
|
|
'browser/ui/message_box_win.cc',
|
2013-08-17 12:42:12 +04:00
|
|
|
'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',
|
2013-05-02 18:54:09 +04:00
|
|
|
'browser/window_list.cc',
|
|
|
|
'browser/window_list.h',
|
|
|
|
'browser/window_list_observer.h',
|
2013-04-21 10:53:26 +04:00
|
|
|
'common/api/api_messages.cc',
|
|
|
|
'common/api/api_messages.h',
|
2013-04-30 12:10:25 +04:00
|
|
|
'common/api/atom_api_clipboard.cc',
|
|
|
|
'common/api/atom_api_clipboard.h',
|
2013-11-13 13:29:35 +04:00
|
|
|
'common/api/atom_api_crash_reporter.cc',
|
|
|
|
'common/api/atom_api_crash_reporter.h',
|
2014-01-07 15:32:40 +04:00
|
|
|
'common/api/atom_api_event_emitter.cc',
|
|
|
|
'common/api/atom_api_event_emitter.h',
|
2013-04-25 17:46:04 +04:00
|
|
|
'common/api/atom_api_id_weak_map.cc',
|
|
|
|
'common/api/atom_api_id_weak_map.h',
|
2014-01-07 16:00:25 +04:00
|
|
|
'common/api/atom_api_screen.cc',
|
|
|
|
'common/api/atom_api_screen.h',
|
2013-04-29 17:57:05 +04:00
|
|
|
'common/api/atom_api_shell.cc',
|
|
|
|
'common/api/atom_api_shell.h',
|
2013-04-25 12:30:31 +04:00
|
|
|
'common/api/atom_api_v8_util.cc',
|
2013-04-21 10:53:26 +04:00
|
|
|
'common/api/atom_bindings.cc',
|
|
|
|
'common/api/atom_bindings.h',
|
|
|
|
'common/api/atom_extensions.cc',
|
|
|
|
'common/api/atom_extensions.h',
|
2013-04-25 14:25:18 +04:00
|
|
|
'common/api/object_life_monitor.cc',
|
|
|
|
'common/api/object_life_monitor.h',
|
2013-11-14 09:33:09 +04:00
|
|
|
'common/crash_reporter/crash_reporter.cc',
|
2013-11-13 13:29:35 +04:00
|
|
|
'common/crash_reporter/crash_reporter.h',
|
2014-01-15 16:01:03 +04:00
|
|
|
'common/crash_reporter/crash_reporter_linux.cc',
|
|
|
|
'common/crash_reporter/crash_reporter_linux.h',
|
2013-11-14 09:33:09 +04:00
|
|
|
'common/crash_reporter/crash_reporter_mac.h',
|
2013-11-13 13:29:35 +04:00
|
|
|
'common/crash_reporter/crash_reporter_mac.mm',
|
|
|
|
'common/crash_reporter/crash_reporter_win.cc',
|
2013-11-14 09:42:28 +04:00
|
|
|
'common/crash_reporter/crash_reporter_win.h',
|
2013-11-23 16:26:47 +04:00
|
|
|
'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',
|
2013-09-05 15:46:12 +04:00
|
|
|
'common/draggable_region.cc',
|
|
|
|
'common/draggable_region.h',
|
2013-12-31 16:24:30 +04:00
|
|
|
'common/linux/application_info.cc',
|
2013-04-13 14:39:09 +04:00
|
|
|
'common/node_bindings.cc',
|
|
|
|
'common/node_bindings.h',
|
2014-02-14 18:39:57 +04:00
|
|
|
'common/node_bindings_linux.cc',
|
|
|
|
'common/node_bindings_linux.h',
|
2013-07-22 09:02:02 +04:00
|
|
|
'common/node_bindings_mac.cc',
|
2013-04-13 19:05:13 +04:00
|
|
|
'common/node_bindings_mac.h',
|
2013-07-22 12:05:35 +04:00
|
|
|
'common/node_bindings_win.cc',
|
|
|
|
'common/node_bindings_win.h',
|
2013-04-12 11:04:46 +04:00
|
|
|
'common/options_switches.cc',
|
|
|
|
'common/options_switches.h',
|
2013-04-29 16:41:11 +04:00
|
|
|
'common/platform_util.h',
|
2013-12-31 16:59:14 +04:00
|
|
|
'common/platform_util_linux.cc',
|
2013-07-02 14:47:51 +04:00
|
|
|
'common/platform_util_mac.mm',
|
|
|
|
'common/platform_util_win.cc',
|
2013-12-05 19:25:14 +04:00
|
|
|
'common/swap_or_assign.h',
|
2013-12-11 11:48:19 +04:00
|
|
|
'common/v8/node_common.h',
|
|
|
|
'common/v8/scoped_persistent.h',
|
|
|
|
'common/v8/native_type_conversions.h',
|
2013-12-23 18:42:21 +04:00
|
|
|
'common/v8/v8_value_converter.cc',
|
|
|
|
'common/v8/v8_value_converter.h',
|
2013-04-23 08:18:07 +04:00
|
|
|
'renderer/api/atom_api_renderer_ipc.cc',
|
|
|
|
'renderer/api/atom_api_renderer_ipc.h',
|
2013-04-22 12:27:34 +04:00
|
|
|
'renderer/api/atom_renderer_bindings.cc',
|
|
|
|
'renderer/api/atom_renderer_bindings.h',
|
2013-04-12 05:46:58 +04:00
|
|
|
'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',
|
|
|
|
],
|
2013-07-06 04:29:08 +04:00
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
|
|
|
'app_sources': [
|
2014-01-31 15:34:31 +04:00
|
|
|
'browser/resources/win/resource.h',
|
|
|
|
'browser/resources/win/atom.ico',
|
|
|
|
'browser/resources/win/atom.rc',
|
2013-07-06 04:29:08 +04:00
|
|
|
'<(libchromiumcontent_src_dir)/content/app/startup_helper_win.cc',
|
|
|
|
],
|
|
|
|
}], # OS=="win"
|
|
|
|
],
|
2013-07-02 08:10:14 +04:00
|
|
|
'atom_source_root': '<!(python tools/atom_source_root.py)',
|
2013-04-12 05:46:58 +04:00
|
|
|
},
|
2013-06-01 10:29:35 +04:00
|
|
|
'target_defaults': {
|
2013-06-19 17:31:57 +04:00
|
|
|
'mac_framework_dirs': [
|
2013-07-02 08:10:14 +04:00
|
|
|
'<(atom_source_root)/frameworks',
|
2013-06-19 17:31:57 +04:00
|
|
|
],
|
2013-07-22 12:05:35 +04:00
|
|
|
'includes': [
|
|
|
|
# Rules for excluding e.g. foo_win.cc from the build on non-Windows.
|
|
|
|
'filename_rules.gypi',
|
|
|
|
],
|
2013-07-23 12:37:00 +04:00
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
2014-02-19 15:39:51 +04:00
|
|
|
'defines': [ 'DEBUG', '_DEBUG' ],
|
|
|
|
'cflags': [ '-g', '-O0' ],
|
2013-07-23 12:37:00 +04:00
|
|
|
},
|
|
|
|
},
|
2013-06-01 10:29:35 +04:00
|
|
|
},
|
2013-04-12 05:46:58 +04:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': '<(project_name)',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
2013-04-14 18:48:35 +04:00
|
|
|
'generated_sources',
|
2013-04-12 05:46:58 +04:00
|
|
|
'<(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': {
|
2014-01-31 15:34:31 +04:00
|
|
|
'INFOPLIST_FILE': 'browser/resources/mac/Info.plist',
|
2013-06-19 17:31:57 +04:00
|
|
|
'LD_RUNPATH_SEARCH_PATHS': [
|
|
|
|
'@executable_path/../Frameworks',
|
|
|
|
],
|
2013-04-12 05:46:58 +04:00
|
|
|
},
|
2013-07-06 04:29:08 +04:00
|
|
|
'mac_bundle_resources': [
|
|
|
|
'<@(bundle_sources)',
|
|
|
|
],
|
2013-04-12 05:46:58 +04:00
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Frameworks',
|
|
|
|
'files': [
|
|
|
|
'<(PRODUCT_DIR)/<(product_name) Helper.app',
|
2013-11-25 11:37:39 +04:00
|
|
|
'<(PRODUCT_DIR)/<(framework_name).framework',
|
2014-01-21 04:25:48 +04:00
|
|
|
'frameworks/Squirrel.framework',
|
|
|
|
'frameworks/ReactiveCocoa.framework',
|
|
|
|
'frameworks/Mantle.framework',
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
|
|
|
},
|
2013-04-14 19:24:46 +04:00
|
|
|
{
|
2013-04-15 11:39:54 +04:00
|
|
|
'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/browser',
|
2013-04-14 19:24:46 +04:00
|
|
|
'files': [
|
|
|
|
'browser/default_app',
|
|
|
|
],
|
2013-05-11 17:07:03 +04:00
|
|
|
},
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
|
|
|
'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)',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|
2013-07-06 04:29:08 +04:00
|
|
|
}], # OS=="mac"
|
|
|
|
['OS=="win"', {
|
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'destination': '<(PRODUCT_DIR)',
|
|
|
|
'files': [
|
|
|
|
'<(libchromiumcontent_library_dir)/chromiumcontent.dll',
|
2013-08-31 07:13:11 +04:00
|
|
|
'<(libchromiumcontent_library_dir)/ffmpegsumo.dll',
|
2013-07-06 04:29:08 +04:00
|
|
|
'<(libchromiumcontent_library_dir)/icudt.dll',
|
|
|
|
'<(libchromiumcontent_library_dir)/libGLESv2.dll',
|
2013-07-08 05:55:38 +04:00
|
|
|
'<(libchromiumcontent_resources_dir)/content_shell.pak',
|
2013-07-06 04:29:08 +04:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'destination': '<(PRODUCT_DIR)/resources/browser',
|
|
|
|
'files': [
|
|
|
|
'browser/default_app',
|
|
|
|
]
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}], # OS=="win"
|
2014-02-14 18:39:57 +04:00
|
|
|
['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"
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
2013-11-15 18:52:08 +04:00
|
|
|
}, # target <(project_name)
|
2013-04-12 05:46:58 +04:00
|
|
|
{
|
|
|
|
'target_name': '<(project_name)_lib',
|
|
|
|
'type': 'static_library',
|
|
|
|
'dependencies': [
|
|
|
|
'vendor/brightray/brightray.gyp:brightray',
|
2013-12-20 10:20:24 +04:00
|
|
|
'vendor/node/node.gyp:node_lib',
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'<@(lib_sources)',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
'vendor',
|
2013-12-12 10:07:00 +04:00
|
|
|
# Include directories for uv and node.
|
|
|
|
'vendor/node/src',
|
|
|
|
'vendor/node/deps/http_parser',
|
|
|
|
'vendor/node/deps/uv/include',
|
2013-12-09 19:18:36 +04:00
|
|
|
# The `node.h` is using `#include"v8.h"`.
|
|
|
|
'vendor/brightray/vendor/download/libchromiumcontent/src/v8/include',
|
2013-12-11 11:48:19 +04:00
|
|
|
# The `node.h` is using `#include"ares.h"`.
|
|
|
|
'vendor/node/deps/cares/include',
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
2013-07-01 18:21:31 +04:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'export_dependent_settings': [
|
|
|
|
'vendor/brightray/brightray.gyp:brightray',
|
|
|
|
],
|
2013-07-09 06:22:38 +04:00
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-limm32.lib',
|
|
|
|
'-loleacc.lib',
|
2013-08-01 11:39:53 +04:00
|
|
|
'-lComdlg32.lib',
|
2013-11-24 13:35:58 +04:00
|
|
|
'-lWininet.lib',
|
2013-07-09 08:26:31 +04:00
|
|
|
'<(atom_source_root)/<(libchromiumcontent_library_dir)/chromiumviews.lib',
|
2013-07-09 06:22:38 +04:00
|
|
|
],
|
|
|
|
},
|
2013-11-12 14:07:25 +04:00
|
|
|
'dependencies': [
|
|
|
|
'vendor/breakpad/breakpad.gyp:breakpad_handler',
|
|
|
|
'vendor/breakpad/breakpad.gyp:breakpad_sender',
|
|
|
|
],
|
2014-02-14 19:11:57 +04:00
|
|
|
}], # OS=="win"
|
2013-11-12 14:07:25 +04:00
|
|
|
['OS=="mac"', {
|
|
|
|
'dependencies': [
|
|
|
|
'vendor/breakpad/breakpad.gyp:breakpad',
|
|
|
|
],
|
2014-02-14 19:11:57 +04:00
|
|
|
}], # OS=="mac"
|
|
|
|
['OS=="linux"', {
|
|
|
|
'link_settings': {
|
|
|
|
'ldflags': [
|
2014-02-21 13:22:05 +04:00
|
|
|
# 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
|
2014-02-14 19:11:57 +04:00
|
|
|
'-rpath \$$ORIGIN',
|
2014-02-21 13:22:05 +04:00
|
|
|
# Make native module dynamic loading work.
|
|
|
|
'-rdynamic',
|
2014-02-14 19:11:57 +04:00
|
|
|
],
|
|
|
|
},
|
|
|
|
}], # OS=="linux"
|
2013-07-09 06:22:38 +04:00
|
|
|
],
|
2013-11-15 18:52:08 +04:00
|
|
|
}, # target <(product_name)_lib
|
2013-04-14 18:48:35 +04:00
|
|
|
{
|
|
|
|
'target_name': 'generated_sources',
|
|
|
|
'type': 'none',
|
|
|
|
'sources': [
|
|
|
|
'<@(coffee_sources)',
|
|
|
|
],
|
|
|
|
'rules': [
|
|
|
|
{
|
|
|
|
'rule_name': 'coffee',
|
|
|
|
'extension': 'coffee',
|
|
|
|
'inputs': [
|
2013-06-24 12:24:19 +04:00
|
|
|
'script/compile-coffee.py',
|
2013-04-14 18:48:35 +04:00
|
|
|
],
|
2013-07-06 04:29:08 +04:00
|
|
|
'conditions': [
|
|
|
|
['OS=="mac"', {
|
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'python',
|
|
|
|
'script/compile-coffee.py',
|
|
|
|
'<(RULE_INPUT_PATH)',
|
|
|
|
'<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
|
|
|
|
],
|
2013-11-08 15:56:30 +04:00
|
|
|
},{ # OS=="mac"
|
2013-07-06 04:29:08 +04:00
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/resources/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'python',
|
|
|
|
'script/compile-coffee.py',
|
|
|
|
'<(RULE_INPUT_PATH)',
|
|
|
|
'<(PRODUCT_DIR)/resources/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
|
|
|
|
],
|
2013-11-08 15:56:30 +04:00
|
|
|
}], # OS=="win" or OS=="linux"
|
2013-04-14 18:48:35 +04:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2013-11-15 18:52:08 +04:00
|
|
|
}, # target generated_sources
|
|
|
|
{
|
|
|
|
'target_name': '<(project_name)_dump_symbols',
|
|
|
|
'type': 'none',
|
|
|
|
'dependencies': [
|
|
|
|
'<(project_name)',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['OS=="mac"', {
|
|
|
|
'dependencies': [
|
|
|
|
'vendor/breakpad/breakpad.gyp:dump_syms',
|
|
|
|
],
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'Dump Symbols',
|
|
|
|
'inputs': [
|
|
|
|
'<(PRODUCT_DIR)/<(product_name).app/Contents/MacOS/<(product_name)',
|
|
|
|
],
|
|
|
|
'outputs': [
|
2013-11-26 17:34:27 +04:00
|
|
|
'<(PRODUCT_DIR)/Atom-Shell.breakpad.syms',
|
2013-11-15 18:52:08 +04:00
|
|
|
],
|
|
|
|
'action': [
|
2013-11-28 16:11:06 +04:00
|
|
|
'python',
|
2013-11-15 18:52:08 +04:00
|
|
|
'tools/mac/generate_breakpad_symbols.py',
|
|
|
|
'--build-dir=<(PRODUCT_DIR)',
|
|
|
|
'--binary=<(PRODUCT_DIR)/<(product_name).app/Contents/MacOS/<(product_name)',
|
2013-11-24 19:17:48 +04:00
|
|
|
'--symbols-dir=<(PRODUCT_DIR)/Atom-Shell.breakpad.syms',
|
2013-11-23 13:07:38 +04:00
|
|
|
'--libchromiumcontent-dir=<(libchromiumcontent_library_dir)',
|
2013-11-15 18:52:08 +04:00
|
|
|
'--clear',
|
|
|
|
'--jobs=16',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}], # OS=="mac"
|
2013-11-26 17:34:27 +04:00
|
|
|
['OS=="win"', {
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'Dump Symbols',
|
|
|
|
'inputs': [
|
|
|
|
'<(PRODUCT_DIR)/<(project_name).exe',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/Atom-Shell.breakpad.syms',
|
|
|
|
],
|
|
|
|
'action': [
|
2013-11-28 16:11:06 +04:00
|
|
|
'python',
|
2013-11-26 17:34:27 +04:00
|
|
|
'tools/win/generate_breakpad_symbols.py',
|
|
|
|
'--symbols-dir=<(PRODUCT_DIR)/Atom-Shell.breakpad.syms',
|
|
|
|
'--jobs=16',
|
|
|
|
'<(PRODUCT_DIR)',
|
|
|
|
'<(libchromiumcontent_library_dir)',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}], # OS=="win"
|
2013-11-15 18:52:08 +04:00
|
|
|
],
|
|
|
|
}, # target <(project_name>_dump_symbols
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['OS=="mac"', {
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': '<(project_name)_framework',
|
2013-11-25 11:37:39 +04:00
|
|
|
'product_name': '<(framework_name)',
|
2013-04-12 05:46:58 +04:00
|
|
|
'type': 'shared_library',
|
|
|
|
'dependencies': [
|
|
|
|
'<(project_name)_lib',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'<@(framework_sources)',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
'vendor',
|
|
|
|
'<(libchromiumcontent_include_dir)',
|
|
|
|
],
|
2013-07-01 18:21:31 +04:00
|
|
|
'export_dependent_settings': [
|
|
|
|
'<(project_name)_lib',
|
|
|
|
],
|
2013-06-01 10:29:35 +04:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
|
2014-01-21 04:25:48 +04:00
|
|
|
'frameworks/Squirrel.framework',
|
|
|
|
'frameworks/ReactiveCocoa.framework',
|
|
|
|
'frameworks/Mantle.framework',
|
2013-06-01 10:29:35 +04:00
|
|
|
],
|
|
|
|
},
|
2013-04-12 05:46:58 +04:00
|
|
|
'mac_bundle': 1,
|
|
|
|
'mac_bundle_resources': [
|
2014-01-31 15:34:31 +04:00
|
|
|
'common/resources/mac/MainMenu.xib',
|
2013-04-12 05:46:58 +04:00
|
|
|
'<(libchromiumcontent_resources_dir)/content_shell.pak',
|
|
|
|
],
|
|
|
|
'xcode_settings': {
|
2014-01-31 15:34:31 +04:00
|
|
|
'INFOPLIST_FILE': 'common/resources/mac/Info.plist',
|
2013-06-19 17:31:57 +04:00
|
|
|
'LIBRARY_SEARCH_PATHS': [
|
|
|
|
'<(libchromiumcontent_library_dir)',
|
|
|
|
],
|
2013-11-25 11:37:39 +04:00
|
|
|
'LD_DYLIB_INSTALL_NAME': '@rpath/<(framework_name).framework/<(framework_name)',
|
2013-06-19 17:31:57 +04:00
|
|
|
'LD_RUNPATH_SEARCH_PATHS': [
|
|
|
|
'@loader_path/Libraries',
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
2013-06-27 15:53:57 +04:00
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'-ObjC',
|
|
|
|
],
|
2013-04-12 05:46:58 +04:00
|
|
|
},
|
|
|
|
'copies': [
|
|
|
|
{
|
2013-11-25 11:37:39 +04:00
|
|
|
'destination': '<(PRODUCT_DIR)/<(framework_name).framework/Versions/A/Libraries',
|
2013-04-12 05:46:58 +04:00
|
|
|
'files': [
|
|
|
|
'<(libchromiumcontent_library_dir)/ffmpegsumo.so',
|
|
|
|
'<(libchromiumcontent_library_dir)/libchromiumcontent.dylib',
|
|
|
|
],
|
|
|
|
},
|
2013-11-13 09:55:40 +04:00
|
|
|
{
|
2013-11-25 11:37:39 +04:00
|
|
|
'destination': '<(PRODUCT_DIR)/<(framework_name).framework/Versions/A/Resources',
|
2013-11-13 09:55:40 +04:00
|
|
|
'files': [
|
|
|
|
'<(PRODUCT_DIR)/Inspector',
|
|
|
|
'<(PRODUCT_DIR)/crash_report_sender.app',
|
|
|
|
],
|
|
|
|
},
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
2013-06-01 10:29:35 +04:00
|
|
|
'postbuilds': [
|
2013-06-26 06:31:32 +04:00
|
|
|
{
|
|
|
|
'postbuild_name': 'Add symlinks for framework subdirectories',
|
|
|
|
'action': [
|
|
|
|
'tools/mac/create-framework-subdir-symlinks.sh',
|
2013-11-25 11:37:39 +04:00
|
|
|
'<(framework_name)',
|
2013-06-26 06:31:32 +04:00
|
|
|
'Libraries',
|
|
|
|
'Frameworks',
|
|
|
|
],
|
|
|
|
},
|
2013-06-01 10:29:35 +04:00
|
|
|
],
|
|
|
|
}, # target framework
|
2013-04-12 05:46:58 +04:00
|
|
|
{
|
|
|
|
'target_name': '<(project_name)_helper',
|
|
|
|
'product_name': '<(product_name) Helper',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
|
|
|
'<(project_name)_framework',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'<@(app_sources)',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
],
|
|
|
|
'mac_bundle': 1,
|
|
|
|
'xcode_settings': {
|
2014-01-31 15:34:31 +04:00
|
|
|
'INFOPLIST_FILE': 'renderer/resources/mac/Info.plist',
|
2013-06-19 17:31:57 +04:00
|
|
|
'LD_RUNPATH_SEARCH_PATHS': [
|
|
|
|
'@executable_path/../../..',
|
|
|
|
],
|
2013-04-12 05:46:58 +04:00
|
|
|
},
|
2013-06-01 10:29:35 +04:00
|
|
|
}, # target helper
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
2013-06-19 17:31:57 +04:00
|
|
|
}], # OS==Mac
|
2013-08-31 12:37:01 +04:00
|
|
|
['OS=="win"', {
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'generate_node_lib',
|
|
|
|
'type': 'none',
|
|
|
|
'dependencies': [
|
|
|
|
'<(project_name)',
|
|
|
|
],
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'Create node.lib',
|
|
|
|
'inputs': [
|
|
|
|
'<(PRODUCT_DIR)/atom.lib',
|
|
|
|
'<(libchromiumcontent_library_dir)/chromiumcontent.dll.lib',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/node.lib',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'lib.exe',
|
|
|
|
'/nologo',
|
|
|
|
# We can't use <(_outputs) here because that escapes the
|
|
|
|
# backslash in the path, which confuses lib.exe.
|
|
|
|
'/OUT:<(PRODUCT_DIR)\\node.lib',
|
|
|
|
'<@(_inputs)',
|
|
|
|
],
|
|
|
|
'msvs_cygwin_shell': 0,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}, # target generate_node_lib
|
|
|
|
],
|
|
|
|
}], # OS==win
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
|
|
|
}
|