2013-04-12 05:46:58 +04:00
|
|
|
{
|
|
|
|
'variables': {
|
|
|
|
'project_name': 'atom',
|
|
|
|
'product_name': 'Atom',
|
|
|
|
'app_sources': [
|
|
|
|
'app/atom_main.cc',
|
|
|
|
],
|
2013-04-14 18:48:35 +04:00
|
|
|
'coffee_sources': [
|
2013-05-02 20:05:09 +04:00
|
|
|
'browser/api/lib/app.coffee',
|
2013-04-15 11:39:54 +04:00
|
|
|
'browser/api/lib/atom.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-04-17 16:05:43 +04:00
|
|
|
'browser/api/lib/window.coffee',
|
2013-04-14 18:48:35 +04:00
|
|
|
'browser/atom/atom.coffee',
|
2013-04-24 12:43:01 +04:00
|
|
|
'browser/atom/objects_registry.coffee',
|
|
|
|
'browser/atom/rpc_server.coffee',
|
2013-05-05 16:30:38 +04:00
|
|
|
'common/api/lib/callbacks_registry.coffee',
|
2013-04-30 12:10:25 +04:00
|
|
|
'common/api/lib/clipboard.coffee',
|
2013-04-25 17:46:04 +04:00
|
|
|
'common/api/lib/id_weak_map.coffee',
|
2013-04-29 17:57:05 +04:00
|
|
|
'common/api/lib/shell.coffee',
|
2013-05-03 15:31:24 +04:00
|
|
|
'renderer/api/lib/dialog.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-05-02 20:05:09 +04:00
|
|
|
'browser/api/atom_api_app.cc',
|
|
|
|
'browser/api/atom_api_app.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-04-15 20:25:08 +04:00
|
|
|
'browser/api/atom_api_event_emitter.cc',
|
|
|
|
'browser/api/atom_api_event_emitter.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-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-12 11:24:36 +04:00
|
|
|
'browser/atom_event_processing_window.h',
|
|
|
|
'browser/atom_event_processing_window.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',
|
|
|
|
'browser/browser_mac.mm',
|
2013-05-03 06:53:54 +04:00
|
|
|
'browser/browser_observer.h',
|
2013-05-03 17:03:26 +04:00
|
|
|
'browser/message_box.h',
|
|
|
|
'browser/message_box_mac.mm',
|
2013-04-12 11:04:46 +04:00
|
|
|
'browser/native_window.cc',
|
|
|
|
'browser/native_window.h',
|
|
|
|
'browser/native_window_mac.h',
|
|
|
|
'browser/native_window_mac.mm',
|
2013-04-18 16:50:58 +04:00
|
|
|
'browser/native_window_observer.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-04-25 15:41:23 +04:00
|
|
|
'common/api/atom_api_idle_gc.cc',
|
2013-04-25 17:46:04 +04:00
|
|
|
'common/api/atom_api_id_weak_map.cc',
|
|
|
|
'common/api/atom_api_id_weak_map.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-04-13 14:39:09 +04:00
|
|
|
'common/node_bindings.cc',
|
|
|
|
'common/node_bindings.h',
|
2013-04-13 19:05:13 +04:00
|
|
|
'common/node_bindings_mac.h',
|
|
|
|
'common/node_bindings_mac.mm',
|
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_mac.mm',
|
|
|
|
'common/platform_util.h',
|
2013-04-17 16:05:43 +04:00
|
|
|
'common/v8_value_converter_impl.cc',
|
|
|
|
'common/v8_value_converter_impl.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-04-12 18:52:32 +04:00
|
|
|
'includes': [
|
|
|
|
'vendor/brightray/brightray.gypi'
|
|
|
|
],
|
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': {
|
|
|
|
'INFOPLIST_FILE': 'browser/mac/Info.plist',
|
|
|
|
'LD_RUNPATH_SEARCH_PATHS': '@executable_path/../Frameworks',
|
|
|
|
},
|
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Frameworks',
|
|
|
|
'files': [
|
|
|
|
'<(PRODUCT_DIR)/<(product_name) Helper.app',
|
|
|
|
'<(PRODUCT_DIR)/<(product_name).framework',
|
|
|
|
],
|
|
|
|
},
|
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-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)',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': '<(project_name)_lib',
|
|
|
|
'type': 'static_library',
|
|
|
|
'dependencies': [
|
|
|
|
'vendor/brightray/brightray.gyp:brightray',
|
2013-04-12 18:52:32 +04:00
|
|
|
'vendor/node/node.gyp:node',
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'<@(lib_sources)',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
'vendor',
|
|
|
|
],
|
2013-04-29 17:57:05 +04:00
|
|
|
'conditions': [
|
|
|
|
['OS=="mac"', {
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
2013-04-12 05:46:58 +04:00
|
|
|
},
|
2013-04-14 18:48:35 +04:00
|
|
|
{
|
|
|
|
'target_name': 'generated_sources',
|
|
|
|
'type': 'none',
|
|
|
|
'sources': [
|
|
|
|
'<@(coffee_sources)',
|
|
|
|
],
|
|
|
|
'rules': [
|
|
|
|
{
|
|
|
|
'rule_name': 'coffee',
|
|
|
|
'extension': 'coffee',
|
|
|
|
'inputs': [
|
|
|
|
'script/compile-coffee',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'sh',
|
|
|
|
'script/compile-coffee',
|
|
|
|
'<(RULE_INPUT_PATH)',
|
|
|
|
'<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['OS=="mac"', {
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': '<(project_name)_framework',
|
|
|
|
'product_name': '<(product_name)',
|
|
|
|
'type': 'shared_library',
|
|
|
|
'dependencies': [
|
|
|
|
'<(project_name)_lib',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'<@(framework_sources)',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
'vendor',
|
|
|
|
'<(libchromiumcontent_include_dir)',
|
|
|
|
],
|
|
|
|
'mac_bundle': 1,
|
|
|
|
'mac_bundle_resources': [
|
|
|
|
'browser/mac/MainMenu.xib',
|
|
|
|
'<(libchromiumcontent_resources_dir)/content_shell.pak',
|
|
|
|
],
|
|
|
|
'xcode_settings': {
|
|
|
|
'LIBRARY_SEARCH_PATHS': '<(libchromiumcontent_library_dir)',
|
|
|
|
'LD_DYLIB_INSTALL_NAME': '@rpath/<(product_name).framework/<(product_name)',
|
|
|
|
'LD_RUNPATH_SEARCH_PATHS': '@loader_path/Libraries',
|
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'-ObjC',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'destination': '<(PRODUCT_DIR)/<(product_name).framework/Versions/A/Libraries',
|
|
|
|
'files': [
|
|
|
|
'<(libchromiumcontent_library_dir)/ffmpegsumo.so',
|
|
|
|
'<(libchromiumcontent_library_dir)/libchromiumcontent.dylib',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'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': {
|
|
|
|
'INFOPLIST_FILE': 'renderer/mac/Info.plist',
|
|
|
|
'LD_RUNPATH_SEARCH_PATHS': '@executable_path/../../../../Frameworks',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}
|