2013-04-12 01:46:58 +00:00
|
|
|
{
|
|
|
|
'variables': {
|
|
|
|
'project_name': 'atom',
|
|
|
|
'product_name': 'Atom',
|
|
|
|
'app_sources': [
|
|
|
|
'app/atom_main.cc',
|
|
|
|
],
|
2013-05-14 07:50:33 +00:00
|
|
|
'bundle_sources': [
|
|
|
|
'browser/mac/atom.icns',
|
|
|
|
],
|
2013-04-14 14:48:35 +00:00
|
|
|
'coffee_sources': [
|
2013-05-02 16:05:09 +00:00
|
|
|
'browser/api/lib/app.coffee',
|
2013-05-30 12:16:54 +00:00
|
|
|
'browser/api/lib/atom-delegate.coffee',
|
2013-06-03 09:59:34 +00:00
|
|
|
'browser/api/lib/auto-updater.coffee',
|
2013-05-30 12:16:54 +00:00
|
|
|
'browser/api/lib/browser-window.coffee',
|
2013-06-01 07:57:37 +00:00
|
|
|
'browser/api/lib/crash-reporter.coffee',
|
2013-05-03 11:31:24 +00:00
|
|
|
'browser/api/lib/dialog.coffee',
|
2013-04-23 04:18:07 +00:00
|
|
|
'browser/api/lib/ipc.coffee',
|
2013-05-14 11:24:52 +00:00
|
|
|
'browser/api/lib/menu.coffee',
|
2013-05-30 12:16:54 +00:00
|
|
|
'browser/api/lib/menu-item.coffee',
|
2013-08-03 07:58:59 +00:00
|
|
|
'browser/api/lib/power-monitor.coffee',
|
2013-04-14 14:48:35 +00:00
|
|
|
'browser/atom/atom.coffee',
|
2013-05-30 12:16:54 +00:00
|
|
|
'browser/atom/objects-registry.coffee',
|
|
|
|
'browser/atom/rpc-server.coffee',
|
|
|
|
'common/api/lib/callbacks-registry.coffee',
|
2013-04-30 08:10:25 +00:00
|
|
|
'common/api/lib/clipboard.coffee',
|
2013-05-30 12:16:54 +00:00
|
|
|
'common/api/lib/id-weak-map.coffee',
|
2013-04-29 13:57:05 +00:00
|
|
|
'common/api/lib/shell.coffee',
|
2013-04-23 04:18:07 +00:00
|
|
|
'renderer/api/lib/ipc.coffee',
|
2013-04-24 08:43:01 +00:00
|
|
|
'renderer/api/lib/remote.coffee',
|
2013-04-14 14:48:35 +00:00
|
|
|
],
|
2013-04-12 01:46:58 +00:00
|
|
|
'lib_sources': [
|
|
|
|
'app/atom_main_delegate.cc',
|
|
|
|
'app/atom_main_delegate.h',
|
2013-05-02 16:05:09 +00:00
|
|
|
'browser/api/atom_api_app.cc',
|
|
|
|
'browser/api/atom_api_app.h',
|
2013-06-03 09:59:34 +00:00
|
|
|
'browser/api/atom_api_auto_updater.cc',
|
|
|
|
'browser/api/atom_api_auto_updater.h',
|
2013-04-23 04:18:07 +00:00
|
|
|
'browser/api/atom_api_browser_ipc.cc',
|
|
|
|
'browser/api/atom_api_browser_ipc.h',
|
2013-06-01 07:57:37 +00:00
|
|
|
'browser/api/atom_api_crash_reporter.h',
|
2013-07-04 07:54:34 +00:00
|
|
|
'browser/api/atom_api_crash_reporter.cc',
|
2013-05-03 13:03:26 +00:00
|
|
|
'browser/api/atom_api_dialog.cc',
|
|
|
|
'browser/api/atom_api_dialog.h',
|
2013-04-18 13:42:20 +00:00
|
|
|
'browser/api/atom_api_event.cc',
|
|
|
|
'browser/api/atom_api_event.h',
|
2013-04-15 16:25:08 +00:00
|
|
|
'browser/api/atom_api_event_emitter.cc',
|
|
|
|
'browser/api/atom_api_event_emitter.h',
|
2013-05-06 12:27:09 +00:00
|
|
|
'browser/api/atom_api_menu.cc',
|
|
|
|
'browser/api/atom_api_menu.h',
|
|
|
|
'browser/api/atom_api_menu_mac.h',
|
|
|
|
'browser/api/atom_api_menu_mac.mm',
|
2013-07-05 01:44:56 +00:00
|
|
|
'browser/api/atom_api_menu_win.cc',
|
|
|
|
'browser/api/atom_api_menu_win.h',
|
2013-08-03 07:58:59 +00:00
|
|
|
'browser/api/atom_api_power_monitor.cc',
|
|
|
|
'browser/api/atom_api_power_monitor.h',
|
2013-04-15 15:01:12 +00:00
|
|
|
'browser/api/atom_api_window.cc',
|
|
|
|
'browser/api/atom_api_window.h',
|
2013-04-21 06:53:26 +00:00
|
|
|
'browser/api/atom_browser_bindings.cc',
|
|
|
|
'browser/api/atom_browser_bindings.h',
|
2013-06-02 12:23:04 +00:00
|
|
|
'browser/auto_updater.cc',
|
|
|
|
'browser/auto_updater.h',
|
|
|
|
'browser/auto_updater_delegate.cc',
|
|
|
|
'browser/auto_updater_delegate.h',
|
|
|
|
'browser/auto_updater_mac.mm',
|
2013-07-04 07:37:45 +00:00
|
|
|
'browser/auto_updater_win.cc',
|
2013-05-02 15:03:14 +00: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 01:46:58 +00:00
|
|
|
'browser/atom_browser_client.cc',
|
|
|
|
'browser/atom_browser_client.h',
|
2013-04-15 16:25:08 +00:00
|
|
|
'browser/atom_browser_context.cc',
|
|
|
|
'browser/atom_browser_context.h',
|
2013-04-12 01:46:58 +00:00
|
|
|
'browser/atom_browser_main_parts.cc',
|
|
|
|
'browser/atom_browser_main_parts.h',
|
2013-05-02 12:09:19 +00:00
|
|
|
'browser/atom_browser_main_parts_mac.mm',
|
2013-04-12 07:24:36 +00:00
|
|
|
'browser/atom_event_processing_window.h',
|
|
|
|
'browser/atom_event_processing_window.mm',
|
2013-04-30 15:56:50 +00:00
|
|
|
'browser/atom_javascript_dialog_manager.cc',
|
|
|
|
'browser/atom_javascript_dialog_manager.h',
|
2013-05-02 15:43:23 +00:00
|
|
|
'browser/browser.cc',
|
|
|
|
'browser/browser.h',
|
|
|
|
'browser/browser_mac.mm',
|
2013-07-04 12:58:28 +00:00
|
|
|
'browser/browser_win.cc',
|
2013-05-03 02:53:54 +00:00
|
|
|
'browser/browser_observer.h',
|
2013-07-04 07:54:34 +00:00
|
|
|
'browser/crash_reporter.h',
|
|
|
|
'browser/crash_reporter_mac.mm',
|
|
|
|
'browser/crash_reporter_win.cc',
|
2013-04-12 07:04:46 +00:00
|
|
|
'browser/native_window.cc',
|
|
|
|
'browser/native_window.h',
|
|
|
|
'browser/native_window_mac.h',
|
|
|
|
'browser/native_window_mac.mm',
|
2013-07-05 10:33:37 +00:00
|
|
|
'browser/native_window_win.cc',
|
|
|
|
'browser/native_window_win.h',
|
2013-04-18 12:50:58 +00:00
|
|
|
'browser/native_window_observer.h',
|
2013-08-13 09:07:25 +00:00
|
|
|
'browser/ui/accelerator_util.cc',
|
|
|
|
'browser/ui/accelerator_util.h',
|
|
|
|
'browser/ui/accelerator_util_mac.mm',
|
|
|
|
'browser/ui/accelerator_util_win.cc',
|
2013-08-14 14:24:21 +00:00
|
|
|
'browser/ui/atom_menu_controller_mac.h',
|
|
|
|
'browser/ui/atom_menu_controller_mac.mm',
|
2013-08-13 08:51:47 +00:00
|
|
|
'browser/ui/file_dialog.h',
|
|
|
|
'browser/ui/file_dialog_mac.mm',
|
|
|
|
'browser/ui/file_dialog_win.cc',
|
|
|
|
'browser/ui/message_box.h',
|
|
|
|
'browser/ui/message_box_mac.mm',
|
|
|
|
'browser/ui/message_box_win.cc',
|
2013-08-13 09:00:30 +00:00
|
|
|
'browser/ui/nsalert_synchronous_sheet_mac.h',
|
|
|
|
'browser/ui/nsalert_synchronous_sheet_mac.mm',
|
2013-08-17 08:42:12 +00: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 14:54:09 +00:00
|
|
|
'browser/window_list.cc',
|
|
|
|
'browser/window_list.h',
|
|
|
|
'browser/window_list_observer.h',
|
2013-04-21 06:53:26 +00:00
|
|
|
'common/api/api_messages.cc',
|
|
|
|
'common/api/api_messages.h',
|
2013-04-30 08:10:25 +00:00
|
|
|
'common/api/atom_api_clipboard.cc',
|
|
|
|
'common/api/atom_api_clipboard.h',
|
2013-04-25 13:46:04 +00:00
|
|
|
'common/api/atom_api_id_weak_map.cc',
|
|
|
|
'common/api/atom_api_id_weak_map.h',
|
2013-04-29 13:57:05 +00:00
|
|
|
'common/api/atom_api_shell.cc',
|
|
|
|
'common/api/atom_api_shell.h',
|
2013-04-25 08:30:31 +00:00
|
|
|
'common/api/atom_api_v8_util.cc',
|
2013-04-21 06:53:26 +00:00
|
|
|
'common/api/atom_bindings.cc',
|
|
|
|
'common/api/atom_bindings.h',
|
|
|
|
'common/api/atom_extensions.cc',
|
|
|
|
'common/api/atom_extensions.h',
|
2013-04-25 10:25:18 +00:00
|
|
|
'common/api/object_life_monitor.cc',
|
|
|
|
'common/api/object_life_monitor.h',
|
2013-04-13 10:39:09 +00:00
|
|
|
'common/node_bindings.cc',
|
|
|
|
'common/node_bindings.h',
|
2013-07-22 05:02:02 +00:00
|
|
|
'common/node_bindings_mac.cc',
|
2013-04-13 15:05:13 +00:00
|
|
|
'common/node_bindings_mac.h',
|
2013-07-22 08:05:35 +00:00
|
|
|
'common/node_bindings_win.cc',
|
|
|
|
'common/node_bindings_win.h',
|
2013-04-12 07:04:46 +00:00
|
|
|
'common/options_switches.cc',
|
|
|
|
'common/options_switches.h',
|
2013-04-29 12:41:11 +00:00
|
|
|
'common/platform_util.h',
|
2013-07-02 10:47:51 +00:00
|
|
|
'common/platform_util_mac.mm',
|
|
|
|
'common/platform_util_win.cc',
|
2013-04-17 12:05:43 +00:00
|
|
|
'common/v8_value_converter_impl.cc',
|
|
|
|
'common/v8_value_converter_impl.h',
|
2013-04-23 04:18:07 +00:00
|
|
|
'renderer/api/atom_api_renderer_ipc.cc',
|
|
|
|
'renderer/api/atom_api_renderer_ipc.h',
|
2013-04-22 08:27:34 +00:00
|
|
|
'renderer/api/atom_renderer_bindings.cc',
|
|
|
|
'renderer/api/atom_renderer_bindings.h',
|
2013-04-12 01:46:58 +00: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 00:29:08 +00:00
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
|
|
|
'app_sources': [
|
|
|
|
'app/win/resource.h',
|
|
|
|
'app/win/atom.rc',
|
|
|
|
'<(libchromiumcontent_src_dir)/content/app/startup_helper_win.cc',
|
|
|
|
],
|
|
|
|
}], # OS=="win"
|
|
|
|
],
|
2013-06-01 06:29:35 +00:00
|
|
|
'fix_framework_link_command': [
|
|
|
|
'install_name_tool',
|
|
|
|
'-change',
|
2013-06-02 07:48:08 +00:00
|
|
|
'@loader_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle',
|
|
|
|
'@rpath/Sparkle.framework/Versions/A/Sparkle',
|
|
|
|
'-change',
|
2013-06-01 06:29:35 +00:00
|
|
|
'@executable_path/../Frameworks/Quincy.framework/Versions/A/Quincy',
|
|
|
|
'@rpath/Quincy.framework/Versions/A/Quincy',
|
|
|
|
'${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
|
|
|
|
],
|
2013-07-02 04:10:14 +00:00
|
|
|
'atom_source_root': '<!(python tools/atom_source_root.py)',
|
2013-04-12 01:46:58 +00:00
|
|
|
},
|
2013-06-01 06:29:35 +00:00
|
|
|
'target_defaults': {
|
2013-06-19 13:31:57 +00:00
|
|
|
'mac_framework_dirs': [
|
2013-07-02 04:10:14 +00:00
|
|
|
'<(atom_source_root)/frameworks',
|
2013-06-19 13:31:57 +00:00
|
|
|
],
|
2013-07-22 08:05:35 +00:00
|
|
|
'includes': [
|
|
|
|
# Rules for excluding e.g. foo_win.cc from the build on non-Windows.
|
|
|
|
'filename_rules.gypi',
|
|
|
|
],
|
2013-07-23 08:37:00 +00:00
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
'defines': [
|
|
|
|
'DEBUG',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2013-06-01 06:29:35 +00:00
|
|
|
},
|
2013-04-12 01:46:58 +00:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': '<(project_name)',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
2013-04-14 14:48:35 +00:00
|
|
|
'generated_sources',
|
2013-04-12 01:46:58 +00: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',
|
2013-06-19 13:31:57 +00:00
|
|
|
'LD_RUNPATH_SEARCH_PATHS': [
|
|
|
|
'@executable_path/../Frameworks',
|
|
|
|
],
|
2013-04-12 01:46:58 +00:00
|
|
|
},
|
2013-07-06 00:29:08 +00:00
|
|
|
'mac_bundle_resources': [
|
|
|
|
'<@(bundle_sources)',
|
|
|
|
],
|
2013-04-12 01:46:58 +00:00
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Frameworks',
|
|
|
|
'files': [
|
|
|
|
'<(PRODUCT_DIR)/<(product_name) Helper.app',
|
|
|
|
'<(PRODUCT_DIR)/<(product_name).framework',
|
2013-06-02 07:48:08 +00:00
|
|
|
'frameworks/Sparkle.framework',
|
|
|
|
'frameworks/Quincy.framework',
|
2013-04-12 01:46:58 +00:00
|
|
|
],
|
|
|
|
},
|
2013-04-14 15:24:46 +00:00
|
|
|
{
|
2013-04-15 07:39:54 +00:00
|
|
|
'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources/browser',
|
2013-04-14 15:24:46 +00:00
|
|
|
'files': [
|
|
|
|
'browser/default_app',
|
|
|
|
],
|
2013-05-11 13:07:03 +00:00
|
|
|
},
|
2013-04-12 01:46:58 +00:00
|
|
|
],
|
|
|
|
'postbuilds': [
|
2013-06-01 06:29:35 +00:00
|
|
|
{
|
|
|
|
'postbuild_name': 'Fix Framework Link',
|
|
|
|
'action': [
|
|
|
|
'<@(fix_framework_link_command)',
|
|
|
|
],
|
|
|
|
},
|
2013-04-12 01:46:58 +00:00
|
|
|
{
|
|
|
|
# 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 00:29:08 +00:00
|
|
|
}], # OS=="mac"
|
|
|
|
['OS=="win"', {
|
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'destination': '<(PRODUCT_DIR)',
|
|
|
|
'files': [
|
|
|
|
'<(libchromiumcontent_library_dir)/chromiumcontent.dll',
|
|
|
|
'<(libchromiumcontent_library_dir)/icudt.dll',
|
|
|
|
'<(libchromiumcontent_library_dir)/libGLESv2.dll',
|
2013-07-08 01:55:38 +00:00
|
|
|
'<(libchromiumcontent_resources_dir)/content_shell.pak',
|
2013-07-06 00:29:08 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'destination': '<(PRODUCT_DIR)/resources/browser',
|
|
|
|
'files': [
|
|
|
|
'browser/default_app',
|
|
|
|
]
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}], # OS=="win"
|
2013-04-12 01:46:58 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': '<(project_name)_lib',
|
|
|
|
'type': 'static_library',
|
|
|
|
'dependencies': [
|
|
|
|
'vendor/brightray/brightray.gyp:brightray',
|
2013-04-12 14:52:32 +00:00
|
|
|
'vendor/node/node.gyp:node',
|
2013-04-12 01:46:58 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'<@(lib_sources)',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
'vendor',
|
|
|
|
],
|
2013-07-01 14:21:31 +00:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'export_dependent_settings': [
|
|
|
|
'vendor/brightray/brightray.gyp:brightray',
|
|
|
|
],
|
2013-07-09 02:22:38 +00:00
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-limm32.lib',
|
|
|
|
'-loleacc.lib',
|
2013-08-01 07:39:53 +00:00
|
|
|
'-lComdlg32.lib',
|
2013-07-09 04:26:31 +00:00
|
|
|
'<(atom_source_root)/<(libchromiumcontent_library_dir)/chromiumviews.lib',
|
2013-07-09 02:22:38 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
2013-04-12 01:46:58 +00:00
|
|
|
},
|
2013-04-14 14:48:35 +00:00
|
|
|
{
|
|
|
|
'target_name': 'generated_sources',
|
|
|
|
'type': 'none',
|
|
|
|
'sources': [
|
|
|
|
'<@(coffee_sources)',
|
|
|
|
],
|
|
|
|
'rules': [
|
|
|
|
{
|
|
|
|
'rule_name': 'coffee',
|
|
|
|
'extension': 'coffee',
|
|
|
|
'inputs': [
|
2013-06-24 08:24:19 +00:00
|
|
|
'script/compile-coffee.py',
|
2013-04-14 14:48:35 +00:00
|
|
|
],
|
2013-07-06 00:29:08 +00: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',
|
|
|
|
],
|
|
|
|
}], # OS=="mac"
|
|
|
|
['OS=="win"', {
|
|
|
|
'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',
|
|
|
|
],
|
|
|
|
}], # OS=="win"
|
2013-04-14 14:48:35 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2013-04-12 01:46:58 +00: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)',
|
|
|
|
],
|
2013-07-01 14:21:31 +00:00
|
|
|
'export_dependent_settings': [
|
|
|
|
'<(project_name)_lib',
|
|
|
|
],
|
2013-06-01 06:29:35 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
|
2013-06-02 07:48:08 +00:00
|
|
|
'frameworks/Sparkle.framework',
|
2013-06-01 06:29:35 +00:00
|
|
|
'frameworks/Quincy.framework',
|
|
|
|
],
|
|
|
|
},
|
2013-04-12 01:46:58 +00:00
|
|
|
'mac_bundle': 1,
|
|
|
|
'mac_bundle_resources': [
|
|
|
|
'browser/mac/MainMenu.xib',
|
|
|
|
'<(libchromiumcontent_resources_dir)/content_shell.pak',
|
|
|
|
],
|
|
|
|
'xcode_settings': {
|
2013-06-19 13:31:57 +00:00
|
|
|
'LIBRARY_SEARCH_PATHS': [
|
|
|
|
'<(libchromiumcontent_library_dir)',
|
|
|
|
],
|
2013-04-12 01:46:58 +00:00
|
|
|
'LD_DYLIB_INSTALL_NAME': '@rpath/<(product_name).framework/<(product_name)',
|
2013-06-19 13:31:57 +00:00
|
|
|
'LD_RUNPATH_SEARCH_PATHS': [
|
|
|
|
'@loader_path/Libraries',
|
2013-04-12 01:46:58 +00:00
|
|
|
],
|
2013-06-27 11:53:57 +00:00
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'-ObjC',
|
|
|
|
],
|
2013-04-12 01:46:58 +00:00
|
|
|
},
|
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'destination': '<(PRODUCT_DIR)/<(product_name).framework/Versions/A/Libraries',
|
|
|
|
'files': [
|
|
|
|
'<(libchromiumcontent_library_dir)/ffmpegsumo.so',
|
|
|
|
'<(libchromiumcontent_library_dir)/libchromiumcontent.dylib',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2013-06-01 06:29:35 +00:00
|
|
|
'postbuilds': [
|
|
|
|
{
|
|
|
|
'postbuild_name': 'Fix Framework Link',
|
|
|
|
'action': [
|
|
|
|
'<@(fix_framework_link_command)',
|
|
|
|
],
|
|
|
|
},
|
2013-06-26 02:31:32 +00:00
|
|
|
{
|
|
|
|
'postbuild_name': 'Add symlinks for framework subdirectories',
|
|
|
|
'action': [
|
|
|
|
'tools/mac/create-framework-subdir-symlinks.sh',
|
|
|
|
'<(product_name)',
|
|
|
|
'Libraries',
|
|
|
|
'Frameworks',
|
|
|
|
],
|
|
|
|
},
|
2013-06-01 06:29:35 +00:00
|
|
|
],
|
|
|
|
}, # target framework
|
2013-04-12 01:46:58 +00: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': {
|
|
|
|
'INFOPLIST_FILE': 'renderer/mac/Info.plist',
|
2013-06-19 13:31:57 +00:00
|
|
|
'LD_RUNPATH_SEARCH_PATHS': [
|
|
|
|
'@executable_path/../../..',
|
|
|
|
],
|
2013-04-12 01:46:58 +00:00
|
|
|
},
|
2013-06-01 06:29:35 +00:00
|
|
|
'postbuilds': [
|
|
|
|
{
|
|
|
|
'postbuild_name': 'Fix Framework Link',
|
|
|
|
'action': [
|
|
|
|
'<@(fix_framework_link_command)',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}, # target helper
|
2013-04-12 01:46:58 +00:00
|
|
|
],
|
2013-06-19 13:31:57 +00:00
|
|
|
}], # OS==Mac
|
2013-04-12 01:46:58 +00:00
|
|
|
],
|
|
|
|
}
|