2013-04-12 05:46:58 +04:00
|
|
|
{
|
|
|
|
'variables': {
|
2014-12-29 20:51:47 +03:00
|
|
|
'project_name%': 'atom',
|
|
|
|
'product_name%': 'Atom',
|
2015-04-03 09:39:25 +03:00
|
|
|
|
2014-11-26 01:16:17 +03:00
|
|
|
'atom_source_root': '<!(["python", "tools/atom_source_root.py"])',
|
2013-04-12 05:46:58 +04:00
|
|
|
},
|
2015-04-03 09:39:25 +03:00
|
|
|
'includes': [
|
|
|
|
'filenames.gypi',
|
|
|
|
'vendor/native_mate/native_mate_files.gypi',
|
|
|
|
],
|
2013-06-01 10:29:35 +04:00
|
|
|
'target_defaults': {
|
2013-06-19 17:31:57 +04:00
|
|
|
'mac_framework_dirs': [
|
2014-05-18 19:35:07 +04:00
|
|
|
'<(atom_source_root)/external_binaries',
|
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',
|
|
|
|
],
|
2015-04-02 18:03:23 +03:00
|
|
|
'conditions': [
|
|
|
|
['libchromiumcontent_component', {
|
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
'defines': [ 'DEBUG' ],
|
|
|
|
'cflags': [ '-g', '-O0' ],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
2013-06-01 10:29:35 +04:00
|
|
|
},
|
2013-04-12 05:46:58 +04:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': '<(project_name)',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
2015-02-04 03:07:29 +03:00
|
|
|
'compile_coffee',
|
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-03-16 04:30:26 +04:00
|
|
|
'INFOPLIST_FILE': 'atom/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',
|
2014-12-29 20:49:10 +03:00
|
|
|
'<(PRODUCT_DIR)/<(product_name) Framework.framework',
|
2014-05-18 19:35:07 +04:00
|
|
|
'external_binaries/Squirrel.framework',
|
|
|
|
'external_binaries/ReactiveCocoa.framework',
|
|
|
|
'external_binaries/Mantle.framework',
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
|
|
|
},
|
2013-04-14 19:24:46 +04:00
|
|
|
{
|
2014-03-16 11:19:09 +04:00
|
|
|
'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources',
|
2013-04-14 19:24:46 +04:00
|
|
|
'files': [
|
2014-03-16 04:30:26 +04:00
|
|
|
'atom/browser/default_app',
|
2013-04-14 19:24:46 +04:00
|
|
|
],
|
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)',
|
|
|
|
],
|
|
|
|
},
|
2014-05-29 11:54:45 +04:00
|
|
|
# The application doesn't have real localizations, it just has
|
|
|
|
# empty .lproj directories, which is enough to convince Cocoa
|
|
|
|
# atom-shell supports those languages.
|
|
|
|
{
|
|
|
|
'postbuild_name': 'Make Empty Localizations',
|
2014-05-29 13:13:24 +04:00
|
|
|
'variables': {
|
2015-04-03 09:39:25 +03:00
|
|
|
'apply_locales_cmd': ['python', 'tools/mac/apply_locales.py'],
|
2014-05-29 13:13:24 +04:00
|
|
|
'locale_dirs': [
|
|
|
|
'>!@(<(apply_locales_cmd) -d ZZLOCALE.lproj <(locales))',
|
|
|
|
],
|
|
|
|
},
|
2014-05-29 11:54:45 +04:00
|
|
|
'action': [
|
|
|
|
'tools/mac/make_locale_dirs.sh',
|
2014-05-29 13:13:24 +04:00
|
|
|
'<@(locale_dirs)',
|
2014-05-29 11:54:45 +04:00
|
|
|
],
|
|
|
|
},
|
2013-04-12 05:46:58 +04:00
|
|
|
]
|
2014-05-29 15:08:59 +04:00
|
|
|
}, { # OS=="mac"
|
|
|
|
'dependencies': [
|
|
|
|
'make_locale_paks',
|
|
|
|
],
|
|
|
|
}], # OS!="mac"
|
2013-07-06 04:29:08 +04:00
|
|
|
['OS=="win"', {
|
|
|
|
'copies': [
|
|
|
|
{
|
2015-04-06 09:26:06 +03:00
|
|
|
'variables': {
|
|
|
|
'conditions': [
|
|
|
|
['libchromiumcontent_component', {
|
|
|
|
'copied_libraries': '<(libchromiumcontent_shared_libraries)',
|
|
|
|
}, {
|
|
|
|
'copied_libraries': [],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
2013-07-06 04:29:08 +04:00
|
|
|
'destination': '<(PRODUCT_DIR)',
|
|
|
|
'files': [
|
2015-04-06 09:26:06 +03:00
|
|
|
'<@(copied_libraries)',
|
2015-04-02 18:03:23 +03:00
|
|
|
'<(libchromiumcontent_dir)/ffmpegsumo.dll',
|
|
|
|
'<(libchromiumcontent_dir)/libEGL.dll',
|
|
|
|
'<(libchromiumcontent_dir)/libGLESv2.dll',
|
|
|
|
'<(libchromiumcontent_dir)/icudtl.dat',
|
|
|
|
'<(libchromiumcontent_dir)/content_resources_200_percent.pak',
|
|
|
|
'<(libchromiumcontent_dir)/content_shell.pak',
|
|
|
|
'<(libchromiumcontent_dir)/ui_resources_200_percent.pak',
|
|
|
|
'<(libchromiumcontent_dir)/natives_blob.bin',
|
|
|
|
'<(libchromiumcontent_dir)/snapshot_blob.bin',
|
2015-03-29 13:51:02 +03:00
|
|
|
'external_binaries/d3dcompiler_47.dll',
|
2014-07-31 10:12:01 +04:00
|
|
|
'external_binaries/msvcp120.dll',
|
|
|
|
'external_binaries/msvcr120.dll',
|
|
|
|
'external_binaries/vccorlib120.dll',
|
2014-05-18 19:35:07 +04:00
|
|
|
'external_binaries/xinput1_3.dll',
|
2013-07-06 04:29:08 +04:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2014-03-16 11:19:09 +04:00
|
|
|
'destination': '<(PRODUCT_DIR)/resources',
|
2013-07-06 04:29:08 +04:00
|
|
|
'files': [
|
2014-03-16 04:30:26 +04:00
|
|
|
'atom/browser/default_app',
|
2013-07-06 04:29:08 +04:00
|
|
|
]
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}], # OS=="win"
|
2014-02-14 18:39:57 +04:00
|
|
|
['OS=="linux"', {
|
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'destination': '<(PRODUCT_DIR)',
|
|
|
|
'files': [
|
2015-04-02 18:03:23 +03:00
|
|
|
'<(libchromiumcontent_dir)/libffmpegsumo.so',
|
|
|
|
'<(libchromiumcontent_dir)/icudtl.dat',
|
|
|
|
'<(libchromiumcontent_dir)/content_shell.pak',
|
|
|
|
'<(libchromiumcontent_dir)/natives_blob.bin',
|
|
|
|
'<(libchromiumcontent_dir)/snapshot_blob.bin',
|
2014-02-14 18:39:57 +04:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2014-03-16 11:19:09 +04:00
|
|
|
'destination': '<(PRODUCT_DIR)/resources',
|
2014-02-14 18:39:57 +04:00
|
|
|
'files': [
|
2014-03-16 04:30:26 +04:00
|
|
|
'atom/browser/default_app',
|
2014-02-14 18:39:57 +04:00
|
|
|
]
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}], # 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': [
|
2015-02-04 03:46:52 +03:00
|
|
|
'atom_coffee2c',
|
2013-04-12 05:46:58 +04:00
|
|
|
'vendor/brightray/brightray.gyp:brightray',
|
2015-04-01 15:26:46 +03:00
|
|
|
'vendor/node/node.gyp:node',
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
2014-08-21 11:38:20 +04:00
|
|
|
'defines': [
|
2014-12-29 20:39:21 +03:00
|
|
|
'PRODUCT_NAME="<(product_name)"',
|
2014-08-21 11:38:20 +04:00
|
|
|
# This is defined in skia/skia_common.gypi.
|
|
|
|
'SK_SUPPORT_LEGACY_GETTOPDEVICE',
|
2014-12-10 03:37:05 +03:00
|
|
|
# Disable warnings for g_settings_list_schemas.
|
|
|
|
'GLIB_DISABLE_DEPRECATION_WARNINGS',
|
2015-03-14 02:33:06 +03:00
|
|
|
# Defined in Chromium but not exposed in its gyp file.
|
2015-03-13 03:03:16 +03:00
|
|
|
'V8_USE_EXTERNAL_STARTUP_DATA',
|
2015-03-14 02:33:06 +03:00
|
|
|
'ENABLE_PLUGINS',
|
2015-04-07 07:21:16 +03:00
|
|
|
# Needed by Node.
|
|
|
|
'NODE_WANT_INTERNALS=1',
|
2014-08-21 11:38:20 +04:00
|
|
|
],
|
2013-04-12 05:46:58 +04:00
|
|
|
'sources': [
|
|
|
|
'<@(lib_sources)',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
2014-06-29 09:53:24 +04:00
|
|
|
'chromium_src',
|
2014-02-24 05:52:20 +04:00
|
|
|
'vendor/brightray',
|
2014-04-15 07:15:46 +04:00
|
|
|
'vendor/native_mate',
|
2015-02-04 03:46:52 +03:00
|
|
|
# Include atom_natives.h.
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)',
|
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',
|
2015-01-07 07:53:06 +03:00
|
|
|
# The `third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h` is using `platform/PlatformExport.h`.
|
|
|
|
'vendor/brightray/vendor/download/libchromiumcontent/src/third_party/WebKit/Source',
|
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"', {
|
2014-11-01 08:44:28 +03:00
|
|
|
'sources': [
|
|
|
|
'<@(lib_sources_win)',
|
|
|
|
],
|
2013-07-09 06:22:38 +04:00
|
|
|
'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 06:22:38 +04:00
|
|
|
],
|
|
|
|
},
|
2013-11-12 14:07:25 +04:00
|
|
|
'dependencies': [
|
2015-04-06 09:21:21 +03:00
|
|
|
# Node is built as static_library on Windows, so we also need to
|
|
|
|
# include its dependencies here.
|
|
|
|
'vendor/node/deps/cares/cares.gyp:cares',
|
|
|
|
'vendor/node/deps/http_parser/http_parser.gyp:http_parser',
|
|
|
|
'vendor/node/deps/uv/uv.gyp:libuv',
|
|
|
|
'vendor/node/deps/zlib/zlib.gyp:zlib',
|
|
|
|
# Build with breakpad support.
|
2013-11-12 14:07:25 +04:00
|
|
|
'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
|
|
|
],
|
|
|
|
},
|
2014-02-26 16:39:20 +04:00
|
|
|
# Required settings of using breakpad.
|
|
|
|
'include_dirs': [
|
|
|
|
'vendor/breakpad/src',
|
|
|
|
],
|
|
|
|
'cflags': [
|
2014-10-21 08:07:10 +04:00
|
|
|
'<!@(pkg-config --cflags dbus-1)',
|
2014-10-08 06:14:12 +04:00
|
|
|
'-Wno-deprecated-register',
|
2014-02-26 16:39:20 +04:00
|
|
|
'-Wno-empty-body',
|
2014-10-21 07:47:52 +04:00
|
|
|
'-Wno-reserved-user-defined-literal',
|
2014-02-26 16:39:20 +04:00
|
|
|
],
|
2014-02-26 11:20:57 +04:00
|
|
|
'dependencies': [
|
|
|
|
'vendor/breakpad/breakpad.gyp:breakpad_client',
|
|
|
|
],
|
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
|
|
|
{
|
2015-02-04 03:07:29 +03:00
|
|
|
'target_name': 'compile_coffee',
|
2013-04-14 18:48:35 +04:00
|
|
|
'type': 'none',
|
2015-02-13 08:05:51 +03:00
|
|
|
'actions': [
|
2013-04-14 18:48:35 +04:00
|
|
|
{
|
2015-02-13 08:05:51 +03:00
|
|
|
'action_name': 'compile_coffee',
|
|
|
|
'variables': {
|
|
|
|
'conditions': [
|
|
|
|
['OS=="mac"', {
|
|
|
|
'resources_path': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources',
|
|
|
|
},{
|
|
|
|
'resources_path': '<(PRODUCT_DIR)/resources',
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
2013-04-14 18:48:35 +04:00
|
|
|
'inputs': [
|
2015-02-13 08:05:51 +03:00
|
|
|
'<@(coffee_sources)',
|
2013-04-14 18:48:35 +04:00
|
|
|
],
|
2015-02-13 08:05:51 +03:00
|
|
|
'outputs': [
|
|
|
|
'<(resources_path)/atom.asar',
|
2013-04-14 18:48:35 +04:00
|
|
|
],
|
2015-02-13 08:05:51 +03:00
|
|
|
'action': [
|
|
|
|
'python',
|
|
|
|
'tools/coffee2asar.py',
|
|
|
|
'<@(_outputs)',
|
|
|
|
'<@(_inputs)',
|
|
|
|
],
|
|
|
|
}
|
2013-04-14 18:48:35 +04:00
|
|
|
],
|
2015-02-04 03:07:29 +03:00
|
|
|
}, # target compile_coffee
|
2015-02-04 03:46:52 +03:00
|
|
|
{
|
|
|
|
'target_name': 'atom_coffee2c',
|
|
|
|
'type': 'none',
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'atom_coffee2c',
|
|
|
|
'inputs': [
|
|
|
|
'<@(coffee2c_sources)',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/atom_natives.h',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'python',
|
|
|
|
'tools/coffee2c.py',
|
|
|
|
'<@(_outputs)',
|
|
|
|
'<@(_inputs)',
|
|
|
|
],
|
|
|
|
}
|
|
|
|
],
|
|
|
|
}, # target atom_coffee2c
|
2013-11-15 18:52:08 +04:00
|
|
|
{
|
|
|
|
'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',
|
2014-03-03 05:50:48 +04:00
|
|
|
'tools/posix/generate_breakpad_symbols.py',
|
2013-11-15 18:52:08 +04:00
|
|
|
'--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',
|
2015-04-02 18:03:23 +03:00
|
|
|
'--libchromiumcontent-dir=<(libchromiumcontent_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)',
|
2015-04-02 18:03:23 +03:00
|
|
|
'<(libchromiumcontent_dir)',
|
2013-11-26 17:34:27 +04:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}], # OS=="win"
|
2014-03-03 05:44:16 +04:00
|
|
|
['OS=="linux"', {
|
|
|
|
'dependencies': [
|
|
|
|
'vendor/breakpad/breakpad.gyp:dump_syms',
|
|
|
|
],
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'Dump Symbols',
|
|
|
|
'inputs': [
|
|
|
|
'<(PRODUCT_DIR)/<(project_name)',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/Atom-Shell.breakpad.syms',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'python',
|
2014-03-03 05:50:48 +04:00
|
|
|
'tools/posix/generate_breakpad_symbols.py',
|
2014-03-03 05:44:16 +04:00
|
|
|
'--build-dir=<(PRODUCT_DIR)',
|
|
|
|
'--binary=<(PRODUCT_DIR)/<(project_name)',
|
|
|
|
'--symbols-dir=<(PRODUCT_DIR)/Atom-Shell.breakpad.syms',
|
2015-04-02 18:03:23 +03:00
|
|
|
'--libchromiumcontent-dir=<(libchromiumcontent_dir)',
|
2014-03-03 05:44:16 +04:00
|
|
|
'--clear',
|
|
|
|
'--jobs=16',
|
|
|
|
],
|
|
|
|
},
|
2014-03-03 08:55:04 +04:00
|
|
|
{
|
|
|
|
'action_name': 'Strip Binary',
|
|
|
|
'inputs': [
|
|
|
|
'<(PRODUCT_DIR)/libchromiumcontent.so',
|
|
|
|
'<(PRODUCT_DIR)/libffmpegsumo.so',
|
|
|
|
'<(PRODUCT_DIR)/<(project_name)',
|
2014-03-03 10:17:48 +04:00
|
|
|
# Add the syms folder as input would force this action to run
|
|
|
|
# after the 'Dump Symbols' action. And since it is a folder,
|
|
|
|
# it would be ignored by the 'strip' command.
|
|
|
|
'<(PRODUCT_DIR)/Atom-Shell.breakpad.syms',
|
2014-03-03 08:55:04 +04:00
|
|
|
],
|
|
|
|
'outputs': [
|
2014-03-03 10:17:48 +04:00
|
|
|
# Gyp action requires a output file, add a fake one here.
|
2014-03-03 08:55:04 +04:00
|
|
|
'<(PRODUCT_DIR)/dummy_file',
|
|
|
|
],
|
2014-08-11 15:08:29 +04:00
|
|
|
'action': [
|
|
|
|
'tools/posix/strip.sh',
|
|
|
|
'<@(_inputs)',
|
|
|
|
],
|
2014-03-03 08:55:04 +04:00
|
|
|
},
|
2014-03-03 05:44:16 +04:00
|
|
|
],
|
|
|
|
}], # OS=="linux"
|
2013-11-15 18:52:08 +04:00
|
|
|
],
|
|
|
|
}, # target <(project_name>_dump_symbols
|
2014-09-12 17:48:45 +04:00
|
|
|
{
|
|
|
|
'target_name': 'copy_chromedriver',
|
|
|
|
'type': 'none',
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'Copy ChromeDriver Binary',
|
|
|
|
'variables': {
|
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
|
|
|
'chromedriver_binary': 'chromedriver.exe',
|
|
|
|
},{
|
|
|
|
'chromedriver_binary': 'chromedriver',
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'inputs': [
|
2015-04-02 18:03:23 +03:00
|
|
|
'<(libchromiumcontent_dir)/<(chromedriver_binary)',
|
2014-09-12 17:48:45 +04:00
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/<(chromedriver_binary)',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'python',
|
|
|
|
'tools/copy_binary.py',
|
|
|
|
'<@(_inputs)',
|
|
|
|
'<@(_outputs)',
|
|
|
|
],
|
|
|
|
}
|
|
|
|
],
|
|
|
|
}, # copy_chromedriver
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['OS=="mac"', {
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': '<(project_name)_framework',
|
2014-12-29 20:49:10 +03:00
|
|
|
'product_name': '<(product_name) Framework',
|
2013-04-12 05:46:58 +04:00
|
|
|
'type': 'shared_library',
|
|
|
|
'dependencies': [
|
|
|
|
'<(project_name)_lib',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'<@(framework_sources)',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
'vendor',
|
2015-04-02 18:03:23 +03:00
|
|
|
'<(libchromiumcontent_src_dir)',
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
2015-01-17 02:54:38 +03:00
|
|
|
'defines': [
|
|
|
|
'PRODUCT_NAME="<(product_name)"',
|
|
|
|
],
|
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-07-02 12:38:11 +04:00
|
|
|
'$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
|
2014-05-18 19:35:07 +04:00
|
|
|
'external_binaries/Squirrel.framework',
|
|
|
|
'external_binaries/ReactiveCocoa.framework',
|
|
|
|
'external_binaries/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-03-16 04:30:26 +04:00
|
|
|
'atom/common/resources/mac/MainMenu.xib',
|
2015-04-02 18:03:23 +03:00
|
|
|
'<(libchromiumcontent_dir)/content_shell.pak',
|
|
|
|
'<(libchromiumcontent_dir)/icudtl.dat',
|
|
|
|
'<(libchromiumcontent_dir)/natives_blob.bin',
|
|
|
|
'<(libchromiumcontent_dir)/snapshot_blob.bin',
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
|
|
|
'xcode_settings': {
|
2014-03-16 04:30:26 +04:00
|
|
|
'INFOPLIST_FILE': 'atom/common/resources/mac/Info.plist',
|
2014-12-29 20:49:10 +03:00
|
|
|
'LD_DYLIB_INSTALL_NAME': '@rpath/<(product_name) Framework.framework/<(product_name) Framework',
|
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': [
|
|
|
|
{
|
2015-04-03 06:38:04 +03:00
|
|
|
'variables': {
|
|
|
|
'conditions': [
|
|
|
|
['libchromiumcontent_component', {
|
|
|
|
'copied_libraries': '<(libchromiumcontent_shared_libraries)',
|
|
|
|
}, {
|
2015-04-07 07:21:16 +03:00
|
|
|
'copied_libraries': [],
|
2015-04-03 06:38:04 +03:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
2014-12-29 20:49:10 +03:00
|
|
|
'destination': '<(PRODUCT_DIR)/<(product_name) Framework.framework/Versions/A/Libraries',
|
2013-04-12 05:46:58 +04:00
|
|
|
'files': [
|
2015-04-03 06:38:04 +03:00
|
|
|
'<@(copied_libraries)',
|
2015-04-02 18:03:23 +03:00
|
|
|
'<(libchromiumcontent_dir)/ffmpegsumo.so',
|
2013-04-12 05:46:58 +04:00
|
|
|
],
|
|
|
|
},
|
2013-11-13 09:55:40 +04:00
|
|
|
{
|
2014-12-29 20:49:10 +03:00
|
|
|
'destination': '<(PRODUCT_DIR)/<(product_name) Framework.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',
|
2015-01-01 18:51:59 +03:00
|
|
|
'<(product_name) Framework',
|
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-03-16 04:30:26 +04:00
|
|
|
'INFOPLIST_FILE': 'atom/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
|
|
|
],
|
2014-05-29 15:08:59 +04:00
|
|
|
}, { # OS=="mac"
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'make_locale_paks',
|
|
|
|
'type': 'none',
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'Make Empty Paks',
|
|
|
|
'inputs': [
|
2014-12-12 06:29:36 +03:00
|
|
|
'tools/make_locale_paks.py',
|
2014-05-29 15:08:59 +04:00
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/locales'
|
|
|
|
],
|
|
|
|
'action': [
|
2014-12-12 06:29:36 +03:00
|
|
|
'python',
|
|
|
|
'tools/make_locale_paks.py',
|
2014-05-29 15:08:59 +04:00
|
|
|
'<(PRODUCT_DIR)',
|
|
|
|
'<@(locales)',
|
|
|
|
],
|
|
|
|
'msvs_cygwin_shell': 0,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}], # 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': [
|
2015-04-06 09:21:21 +03:00
|
|
|
'<(PRODUCT_DIR)/<(project_name).lib',
|
2013-08-31 12:37:01 +04:00
|
|
|
],
|
|
|
|
'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
|
|
|
],
|
|
|
|
}
|