2013-04-12 09:46:58 +08:00
|
|
|
{
|
|
|
|
'variables': {
|
2015-04-14 17:23:03 +08:00
|
|
|
'project_name%': 'electron',
|
|
|
|
'product_name%': 'Electron',
|
2015-04-14 16:09:34 +08:00
|
|
|
'company_name%': 'GitHub, Inc',
|
|
|
|
'company_abbr%': 'github',
|
2018-12-17 11:14:38 -08:00
|
|
|
'version%': '3.0.13',
|
2016-08-20 12:19:14 -03:00
|
|
|
'js2c_input_dir': '<(SHARED_INTERMEDIATE_DIR)/js2c',
|
2013-04-12 09:46:58 +08:00
|
|
|
},
|
2015-04-03 14:39:25 +08:00
|
|
|
'includes': [
|
2017-06-26 11:13:05 +02:00
|
|
|
'features.gypi',
|
2015-04-03 14:39:25 +08:00
|
|
|
'filenames.gypi',
|
2018-06-22 11:36:03 +10:00
|
|
|
'native_mate/native_mate_files.gypi',
|
2015-04-03 14:39:25 +08:00
|
|
|
],
|
2013-06-01 14:29:35 +08:00
|
|
|
'target_defaults': {
|
2015-04-14 14:13:03 +08:00
|
|
|
'defines': [
|
|
|
|
'ATOM_PRODUCT_NAME="<(product_name)"',
|
|
|
|
'ATOM_PROJECT_NAME="<(project_name)"',
|
|
|
|
],
|
2015-07-03 09:49:55 +08:00
|
|
|
'conditions': [
|
|
|
|
['OS=="mac"', {
|
|
|
|
'mac_framework_dirs': [
|
|
|
|
'<(source_root)/external_binaries',
|
|
|
|
],
|
|
|
|
}],
|
2018-06-13 18:15:34 +02:00
|
|
|
['enable_desktop_capturer==1', {
|
|
|
|
'defines': [
|
|
|
|
'ENABLE_DESKTOP_CAPTURER',
|
|
|
|
],
|
|
|
|
}], # enable_desktop_capturer==1
|
2017-06-26 11:13:05 +02:00
|
|
|
['enable_osr==1', {
|
|
|
|
'defines': [
|
|
|
|
'ENABLE_OSR',
|
|
|
|
],
|
|
|
|
}], # enable_osr==1
|
2018-03-15 17:51:48 +09:00
|
|
|
['enable_pdf_viewer==1', {
|
|
|
|
'defines': [
|
|
|
|
'ENABLE_PDF_VIEWER',
|
|
|
|
],
|
|
|
|
}], # enable_pdf_viewer
|
|
|
|
['enable_run_as_node==1', {
|
2018-01-24 00:17:15 +01:00
|
|
|
'defines': [
|
|
|
|
'ENABLE_RUN_AS_NODE',
|
|
|
|
],
|
|
|
|
}], # enable_run_as_node
|
2018-05-24 15:35:50 +09:00
|
|
|
['enable_view_api==1', {
|
|
|
|
'defines': [
|
|
|
|
'ENABLE_VIEW_API',
|
|
|
|
],
|
|
|
|
}], # enable_view_api
|
2013-06-19 21:31:57 +08:00
|
|
|
],
|
2013-06-01 14:29:35 +08:00
|
|
|
},
|
2013-04-12 09:46:58 +08:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': '<(project_name)',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
2016-01-11 17:00:59 -08:00
|
|
|
'js2asar',
|
2016-03-30 11:50:17 -07:00
|
|
|
'app2asar',
|
2013-04-12 09:46:58 +08: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': {
|
2015-04-14 16:09:34 +08:00
|
|
|
'ATOM_BUNDLE_ID': 'com.<(company_abbr).<(project_name)',
|
2014-03-16 08:30:26 +08:00
|
|
|
'INFOPLIST_FILE': 'atom/browser/resources/mac/Info.plist',
|
2013-06-19 21:31:57 +08:00
|
|
|
'LD_RUNPATH_SEARCH_PATHS': [
|
|
|
|
'@executable_path/../Frameworks',
|
|
|
|
],
|
2013-04-12 09:46:58 +08:00
|
|
|
},
|
2013-07-06 08:29:08 +08:00
|
|
|
'mac_bundle_resources': [
|
|
|
|
'<@(bundle_sources)',
|
|
|
|
],
|
2013-04-12 09:46:58 +08:00
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Frameworks',
|
|
|
|
'files': [
|
|
|
|
'<(PRODUCT_DIR)/<(product_name) Helper.app',
|
2014-12-29 09:49:10 -08:00
|
|
|
'<(PRODUCT_DIR)/<(product_name) Framework.framework',
|
2013-04-12 09:46:58 +08: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': [
|
2017-05-09 13:39:23 -07:00
|
|
|
'tools/mac/make_more_helpers.sh',
|
2013-04-12 09:46:58 +08:00
|
|
|
'Frameworks',
|
|
|
|
'<(product_name)',
|
|
|
|
],
|
|
|
|
},
|
2014-05-29 15:54:45 +08:00
|
|
|
# The application doesn't have real localizations, it just has
|
|
|
|
# empty .lproj directories, which is enough to convince Cocoa
|
2016-03-31 09:26:11 -07:00
|
|
|
# that Electron supports those languages.
|
2014-05-29 15:54:45 +08:00
|
|
|
{
|
|
|
|
'postbuild_name': 'Make Empty Localizations',
|
2014-05-29 17:13:24 +08:00
|
|
|
'variables': {
|
2015-04-03 14:39:25 +08:00
|
|
|
'apply_locales_cmd': ['python', 'tools/mac/apply_locales.py'],
|
2014-05-29 17:13:24 +08:00
|
|
|
'locale_dirs': [
|
|
|
|
'>!@(<(apply_locales_cmd) -d ZZLOCALE.lproj <(locales))',
|
|
|
|
],
|
|
|
|
},
|
2014-05-29 15:54:45 +08:00
|
|
|
'action': [
|
|
|
|
'tools/mac/make_locale_dirs.sh',
|
2014-05-29 17:13:24 +08:00
|
|
|
'<@(locale_dirs)',
|
2014-05-29 15:54:45 +08:00
|
|
|
],
|
|
|
|
},
|
2015-09-28 15:02:36 +08:00
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['mas_build==0', {
|
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Frameworks',
|
|
|
|
'files': [
|
|
|
|
'external_binaries/Squirrel.framework',
|
|
|
|
'external_binaries/ReactiveCocoa.framework',
|
|
|
|
'external_binaries/Mantle.framework',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}],
|
2017-10-17 16:28:29 +09:00
|
|
|
['mas_build==1', {
|
|
|
|
'dependencies': [
|
|
|
|
'<(project_name)_login_helper',
|
|
|
|
],
|
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Library/LoginItems',
|
|
|
|
'files': [
|
|
|
|
'<(PRODUCT_DIR)/<(product_name) Login Helper.app',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}],
|
2015-09-28 15:02:36 +08:00
|
|
|
],
|
2014-05-29 19:08:59 +08:00
|
|
|
}], # OS!="mac"
|
2013-07-06 08:29:08 +08:00
|
|
|
['OS=="win"', {
|
2015-07-06 14:01:01 +08:00
|
|
|
'include_dirs': [
|
|
|
|
'<(libchromiumcontent_dir)/gen/ui/resources',
|
|
|
|
],
|
2015-07-08 13:30:04 +08:00
|
|
|
'msvs_settings': {
|
|
|
|
'VCManifestTool': {
|
|
|
|
'EmbedManifest': 'true',
|
|
|
|
'AdditionalManifestFiles': 'atom/browser/resources/win/atom.manifest',
|
2017-04-11 13:08:15 -07:00
|
|
|
},
|
|
|
|
'VCLinkerTool': {
|
2017-04-11 14:54:34 -07:00
|
|
|
# Chrome builds with this minimum environment which makes e.g.
|
|
|
|
# GetSystemMetrics(SM_CXSIZEFRAME) return Windows XP/2003
|
|
|
|
# compatible metrics. See: https://crbug.com/361720
|
|
|
|
#
|
|
|
|
# The following two settings translate to a linker flag
|
|
|
|
# of /SUBSYSTEM:WINDOWS,5.02
|
|
|
|
'MinimumRequiredVersion': '5.02',
|
|
|
|
'SubSystem': '2',
|
2018-05-01 02:04:27 +10:00
|
|
|
'AdditionalDependencies': [
|
|
|
|
'wtsapi32.lib',
|
|
|
|
],
|
2017-04-11 13:08:15 -07:00
|
|
|
},
|
2015-07-08 13:30:04 +08:00
|
|
|
},
|
2013-07-06 08:29:08 +08:00
|
|
|
'copies': [
|
|
|
|
{
|
2015-04-06 14:26:06 +08:00
|
|
|
'variables': {
|
|
|
|
'conditions': [
|
|
|
|
['libchromiumcontent_component', {
|
2015-04-09 20:58:11 +08:00
|
|
|
'copied_libraries': [
|
|
|
|
'<@(libchromiumcontent_shared_libraries)',
|
|
|
|
'<@(libchromiumcontent_shared_v8_libraries)',
|
|
|
|
],
|
2015-04-06 14:26:06 +08:00
|
|
|
}, {
|
2015-05-13 09:50:56 +08:00
|
|
|
'copied_libraries': [
|
2016-02-17 22:21:14 +08:00
|
|
|
'<(libchromiumcontent_dir)/ffmpeg.dll',
|
2015-05-13 09:50:56 +08:00
|
|
|
],
|
2015-04-06 14:26:06 +08:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
2013-07-06 08:29:08 +08:00
|
|
|
'destination': '<(PRODUCT_DIR)',
|
|
|
|
'files': [
|
2015-04-06 14:26:06 +08:00
|
|
|
'<@(copied_libraries)',
|
2015-12-30 10:46:22 +05:30
|
|
|
'<(libchromiumcontent_dir)/locales',
|
2015-04-02 23:03:23 +08:00
|
|
|
'<(libchromiumcontent_dir)/libEGL.dll',
|
|
|
|
'<(libchromiumcontent_dir)/libGLESv2.dll',
|
|
|
|
'<(libchromiumcontent_dir)/icudtl.dat',
|
2016-07-25 12:10:39 +09:00
|
|
|
'<(libchromiumcontent_dir)/blink_image_resources_200_percent.pak',
|
2015-04-02 23:03:23 +08:00
|
|
|
'<(libchromiumcontent_dir)/content_resources_200_percent.pak',
|
|
|
|
'<(libchromiumcontent_dir)/content_shell.pak',
|
|
|
|
'<(libchromiumcontent_dir)/ui_resources_200_percent.pak',
|
2016-07-25 12:10:39 +09:00
|
|
|
'<(libchromiumcontent_dir)/views_resources_200_percent.pak',
|
2015-04-02 23:03:23 +08:00
|
|
|
'<(libchromiumcontent_dir)/natives_blob.bin',
|
2018-04-24 20:17:53 -07:00
|
|
|
'<(libchromiumcontent_dir)/v8_context_snapshot.bin',
|
2015-03-29 18:51:02 +08:00
|
|
|
'external_binaries/d3dcompiler_47.dll',
|
2013-07-06 08:29:08 +08:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2015-07-02 07:10:05 +00:00
|
|
|
}, {
|
|
|
|
'dependencies': [
|
|
|
|
'vendor/breakpad/breakpad.gyp:dump_syms#host',
|
|
|
|
],
|
2013-07-06 08:29:08 +08:00
|
|
|
}], # OS=="win"
|
2014-02-14 14:39:57 +00:00
|
|
|
['OS=="linux"', {
|
|
|
|
'copies': [
|
|
|
|
{
|
2015-04-07 17:26:21 +08:00
|
|
|
'variables': {
|
|
|
|
'conditions': [
|
|
|
|
['libchromiumcontent_component', {
|
2015-04-09 20:58:11 +08:00
|
|
|
'copied_libraries': [
|
2015-04-10 12:07:53 +08:00
|
|
|
'<(PRODUCT_DIR)/lib/libnode.so',
|
2015-04-09 20:58:11 +08:00
|
|
|
'<@(libchromiumcontent_shared_libraries)',
|
|
|
|
'<@(libchromiumcontent_shared_v8_libraries)',
|
|
|
|
],
|
2015-04-07 17:26:21 +08:00
|
|
|
}, {
|
2015-04-09 20:58:11 +08:00
|
|
|
'copied_libraries': [
|
2015-04-10 12:07:53 +08:00
|
|
|
'<(PRODUCT_DIR)/lib/libnode.so',
|
2016-02-17 22:21:14 +08:00
|
|
|
'<(libchromiumcontent_dir)/libffmpeg.so',
|
2015-04-09 20:58:11 +08:00
|
|
|
],
|
2015-04-07 17:26:21 +08:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
2014-02-14 14:39:57 +00:00
|
|
|
'destination': '<(PRODUCT_DIR)',
|
|
|
|
'files': [
|
2015-04-07 17:26:21 +08:00
|
|
|
'<@(copied_libraries)',
|
2015-12-30 10:46:22 +05:30
|
|
|
'<(libchromiumcontent_dir)/locales',
|
2015-04-02 23:03:23 +08:00
|
|
|
'<(libchromiumcontent_dir)/icudtl.dat',
|
2016-07-29 10:51:31 +09:00
|
|
|
'<(libchromiumcontent_dir)/blink_image_resources_200_percent.pak',
|
|
|
|
'<(libchromiumcontent_dir)/content_resources_200_percent.pak',
|
2015-04-02 23:03:23 +08:00
|
|
|
'<(libchromiumcontent_dir)/content_shell.pak',
|
2016-07-29 10:51:31 +09:00
|
|
|
'<(libchromiumcontent_dir)/ui_resources_200_percent.pak',
|
|
|
|
'<(libchromiumcontent_dir)/views_resources_200_percent.pak',
|
2015-04-02 23:03:23 +08:00
|
|
|
'<(libchromiumcontent_dir)/natives_blob.bin',
|
2018-04-24 20:17:53 -07:00
|
|
|
'<(libchromiumcontent_dir)/v8_context_snapshot.bin',
|
2014-02-14 14:39:57 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}], # OS=="linux"
|
2013-04-12 09:46:58 +08:00
|
|
|
],
|
2013-11-15 22:52:08 +08:00
|
|
|
}, # target <(project_name)
|
2013-04-12 09:46:58 +08:00
|
|
|
{
|
|
|
|
'target_name': '<(project_name)_lib',
|
|
|
|
'type': 'static_library',
|
|
|
|
'dependencies': [
|
2016-01-11 17:00:59 -08:00
|
|
|
'atom_js2c',
|
2017-05-09 13:38:14 -07:00
|
|
|
'brightray/brightray.gyp:brightray',
|
2018-03-03 15:09:49 +05:30
|
|
|
'vendor/node/node.gyp:node_lib',
|
2013-04-12 09:46:58 +08:00
|
|
|
],
|
2014-08-21 15:38:20 +08:00
|
|
|
'defines': [
|
2016-07-21 00:52:44 -06:00
|
|
|
# We need to access internal implementations of Node.
|
|
|
|
'NODE_WANT_INTERNALS=1',
|
|
|
|
'NODE_SHARED_MODE',
|
2017-07-11 10:09:02 -07:00
|
|
|
'HAVE_OPENSSL=1',
|
2017-05-15 09:07:52 -07:00
|
|
|
'HAVE_INSPECTOR=1',
|
2014-08-21 15:38:20 +08:00
|
|
|
# This is defined in skia/skia_common.gypi.
|
|
|
|
'SK_SUPPORT_LEGACY_GETTOPDEVICE',
|
2014-12-09 16:37:05 -08:00
|
|
|
# Disable warnings for g_settings_list_schemas.
|
|
|
|
'GLIB_DISABLE_DEPRECATION_WARNINGS',
|
2015-03-13 16:33:06 -07:00
|
|
|
# Defined in Chromium but not exposed in its gyp file.
|
2015-03-12 17:03:16 -07:00
|
|
|
'V8_USE_EXTERNAL_STARTUP_DATA',
|
2017-10-26 11:29:55 +02:00
|
|
|
|
|
|
|
# Import V8 symbols from shared library (node.dll / libnode.so)
|
2017-01-09 13:31:36 +01:00
|
|
|
'USING_V8_SHARED',
|
2017-01-23 15:52:27 +09:00
|
|
|
'USING_V8_PLATFORM_SHARED',
|
|
|
|
'USING_V8_BASE_SHARED',
|
2017-08-26 23:31:21 +03:00
|
|
|
|
|
|
|
# See Chromium src/third_party/protobuf/BUILD.gn
|
|
|
|
'GOOGLE_PROTOBUF_NO_RTTI',
|
|
|
|
'GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER',
|
2017-12-18 15:17:03 +11:00
|
|
|
|
|
|
|
# Enables SkBitmap size 64 operations
|
|
|
|
'SK_SUPPORT_LEGACY_SAFESIZE64',
|
2018-09-07 22:43:39 -07:00
|
|
|
|
2018-09-18 10:36:25 -07:00
|
|
|
# Enables flash support
|
|
|
|
'ENABLE_PEPPER_FLASH',
|
|
|
|
|
2018-09-07 22:43:39 -07:00
|
|
|
# Enables widevine cdm support
|
|
|
|
'WIDEVINE_CDM_AVAILABLE',
|
2014-08-21 15:38:20 +08:00
|
|
|
],
|
2013-04-12 09:46:58 +08:00
|
|
|
'sources': [
|
|
|
|
'<@(lib_sources)',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
2014-06-29 05:53:24 +00:00
|
|
|
'chromium_src',
|
2018-06-22 11:36:03 +10:00
|
|
|
'native_mate',
|
2015-02-03 16:46:52 -08:00
|
|
|
# Include atom_natives.h.
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)',
|
2013-12-12 14:07:00 +08:00
|
|
|
# Include directories for uv and node.
|
|
|
|
'vendor/node/src',
|
|
|
|
'vendor/node/deps/http_parser',
|
|
|
|
'vendor/node/deps/uv/include',
|
2013-12-09 23:18:36 +08:00
|
|
|
# The `node.h` is using `#include"v8.h"`.
|
2015-04-09 20:58:11 +08:00
|
|
|
'<(libchromiumcontent_src_dir)/v8/include',
|
2013-12-11 15:48:19 +08:00
|
|
|
# The `node.h` is using `#include"ares.h"`.
|
|
|
|
'vendor/node/deps/cares/include',
|
2015-01-06 20:53:06 -08:00
|
|
|
# The `third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h` is using `platform/PlatformExport.h`.
|
2015-04-09 20:58:11 +08:00
|
|
|
'<(libchromiumcontent_src_dir)/third_party/WebKit/Source',
|
2015-10-02 17:50:10 +08:00
|
|
|
# The 'third_party/libyuv/include/libyuv/scale_argb.h' is using 'libyuv/basic_types.h'.
|
|
|
|
'<(libchromiumcontent_src_dir)/third_party/libyuv/include',
|
|
|
|
# The 'third_party/webrtc/modules/desktop_capture/desktop_frame.h' is using 'webrtc/base/scoped_ptr.h'.
|
|
|
|
'<(libchromiumcontent_src_dir)/third_party/',
|
2015-12-16 11:06:38 +01:00
|
|
|
'<(libchromiumcontent_src_dir)/components/cdm',
|
|
|
|
'<(libchromiumcontent_src_dir)/third_party/widevine',
|
2018-05-01 16:22:39 -07:00
|
|
|
'<(libchromiumcontent_src_dir)/third_party/widevine/cdm/stub',
|
2017-08-26 23:31:21 +03:00
|
|
|
'<(libchromiumcontent_src_dir)/third_party/protobuf/src',
|
2017-12-18 18:25:43 +11:00
|
|
|
# The 'third_party/webrtc/modules/desktop_capture/desktop_capture_options.h' is using 'rtc_base/constructormagic.h'.
|
|
|
|
'<(libchromiumcontent_src_dir)/third_party/webrtc',
|
|
|
|
# leveldb includes are required
|
|
|
|
'<(libchromiumcontent_src_dir)/third_party/leveldatabase/src',
|
|
|
|
'<(libchromiumcontent_src_dir)/third_party/leveldatabase/src/include',
|
2013-04-12 09:46:58 +08:00
|
|
|
],
|
2013-07-01 22:21:31 +08:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'export_dependent_settings': [
|
2017-05-09 13:38:14 -07:00
|
|
|
'brightray/brightray.gyp:brightray',
|
2013-07-01 22:21:31 +08:00
|
|
|
],
|
2013-07-09 10:22:38 +08:00
|
|
|
'conditions': [
|
2018-03-15 17:51:48 +09:00
|
|
|
['enable_pdf_viewer==1', {
|
|
|
|
'dependencies': [
|
|
|
|
'vendor/pdf_viewer/pdf_viewer.gyp:pdf_viewer',
|
|
|
|
],
|
|
|
|
}], # enable_pdf_viewer
|
2015-04-09 20:58:11 +08:00
|
|
|
['libchromiumcontent_component', {
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [ '<@(libchromiumcontent_v8_libraries)' ],
|
|
|
|
},
|
2018-08-24 08:23:15 -07:00
|
|
|
'sources': [
|
|
|
|
'<@(lib_sources_location_provider)',
|
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
# Enable fake location provider to mock geolocation
|
|
|
|
# responses in component build. Should not be enabled
|
|
|
|
# for release build. If you need to test with chromium's
|
|
|
|
# location provider, remove this definition.
|
|
|
|
'OVERRIDE_LOCATION_PROVIDER',
|
|
|
|
],
|
2015-04-09 20:58:11 +08:00
|
|
|
}],
|
2013-07-09 10:22:38 +08:00
|
|
|
['OS=="win"', {
|
2014-11-01 13:44:28 +08:00
|
|
|
'sources': [
|
|
|
|
'<@(lib_sources_win)',
|
|
|
|
],
|
2013-07-09 10:22:38 +08:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-limm32.lib',
|
|
|
|
'-loleacc.lib',
|
2015-07-08 13:30:04 +08:00
|
|
|
'-lcomctl32.lib',
|
|
|
|
'-lcomdlg32.lib',
|
|
|
|
'-lwininet.lib',
|
2015-10-03 10:41:08 +08:00
|
|
|
'-lwinmm.lib',
|
2016-09-16 13:17:58 -07:00
|
|
|
'-lcrypt32.lib',
|
2016-10-13 11:46:55 -07:00
|
|
|
'-luiautomationcore.lib',
|
2018-05-28 15:43:40 +02:00
|
|
|
'-lPropsys.lib'
|
2013-07-09 10:22:38 +08:00
|
|
|
],
|
|
|
|
},
|
2013-11-12 18:07:25 +08:00
|
|
|
'dependencies': [
|
2015-04-06 14:21:21 +08: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 18:07:25 +08:00
|
|
|
'vendor/breakpad/breakpad.gyp:breakpad_handler',
|
|
|
|
'vendor/breakpad/breakpad.gyp:breakpad_sender',
|
|
|
|
],
|
2014-02-14 15:11:57 +00:00
|
|
|
}], # OS=="win"
|
2015-09-28 14:52:55 +08:00
|
|
|
['OS=="mac" and mas_build==0', {
|
2013-11-12 18:07:25 +08:00
|
|
|
'dependencies': [
|
2015-05-29 23:25:11 +08:00
|
|
|
'vendor/crashpad/client/client.gyp:crashpad_client',
|
|
|
|
'vendor/crashpad/handler/handler.gyp:crashpad_handler',
|
2013-11-12 18:07:25 +08:00
|
|
|
],
|
2015-10-09 21:30:41 +08:00
|
|
|
'link_settings': {
|
|
|
|
# Do not link with QTKit for mas build.
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
|
|
|
|
],
|
|
|
|
},
|
2016-05-13 13:41:40 +09:00
|
|
|
'xcode_settings': {
|
|
|
|
# ReactiveCocoa which is used by Squirrel requires using __weak.
|
|
|
|
'CLANG_ENABLE_OBJC_WEAK': 'YES',
|
2018-04-17 17:06:00 -07:00
|
|
|
'OTHER_CFLAGS': [
|
|
|
|
'-Wunguarded-availability',
|
|
|
|
'-Wobjc-missing-property-synthesis',
|
|
|
|
],
|
2016-05-13 13:41:40 +09:00
|
|
|
},
|
2015-09-28 14:52:55 +08:00
|
|
|
}], # OS=="mac" and mas_build==0
|
|
|
|
['OS=="mac" and mas_build==1', {
|
|
|
|
'defines': [
|
|
|
|
'MAS_BUILD',
|
|
|
|
],
|
|
|
|
'sources!': [
|
2015-09-28 15:02:36 +08:00
|
|
|
'atom/browser/auto_updater_mac.mm',
|
2015-09-28 14:52:55 +08:00
|
|
|
'atom/common/crash_reporter/crash_reporter_mac.h',
|
|
|
|
'atom/common/crash_reporter/crash_reporter_mac.mm',
|
|
|
|
],
|
2018-06-20 20:50:56 +09:00
|
|
|
'dependencies': [
|
|
|
|
# Somehow we have code from Chromium using crashpad, very likely
|
|
|
|
# from components/crash.
|
|
|
|
# Since we do not actually invoke code from components/crash, this
|
|
|
|
# dependency should be eventually optimized out by linker.
|
|
|
|
'vendor/crashpad/client/client.gyp:crashpad_client',
|
|
|
|
],
|
2015-09-28 14:52:55 +08:00
|
|
|
}], # OS=="mac" and mas_build==1
|
2014-02-14 15:11:57 +00:00
|
|
|
['OS=="linux"', {
|
2016-04-19 10:47:28 +05:30
|
|
|
'sources': [
|
2016-11-03 10:47:03 +05:30
|
|
|
'<@(lib_sources_linux)',
|
2016-04-19 10:47:28 +05:30
|
|
|
'<@(lib_sources_nss)',
|
|
|
|
],
|
2014-02-14 15:11:57 +00:00
|
|
|
'link_settings': {
|
|
|
|
'ldflags': [
|
2014-02-21 17:22:05 +08: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
|
2017-11-22 11:14:20 +09:00
|
|
|
'-Wl,-rpath=\$$ORIGIN',
|
2014-02-21 17:22:05 +08:00
|
|
|
# Make native module dynamic loading work.
|
|
|
|
'-rdynamic',
|
2014-02-14 15:11:57 +00:00
|
|
|
],
|
|
|
|
},
|
2014-02-26 20:39:20 +08:00
|
|
|
# Required settings of using breakpad.
|
2015-04-09 09:59:57 +08:00
|
|
|
'cflags_cc': [
|
2014-02-26 20:39:20 +08:00
|
|
|
'-Wno-empty-body',
|
|
|
|
],
|
2015-04-09 09:59:57 +08:00
|
|
|
'include_dirs': [
|
|
|
|
'vendor/breakpad/src',
|
|
|
|
],
|
2014-02-26 15:20:57 +08:00
|
|
|
'dependencies': [
|
|
|
|
'vendor/breakpad/breakpad.gyp:breakpad_client',
|
|
|
|
],
|
2014-02-14 15:11:57 +00:00
|
|
|
}], # OS=="linux"
|
2017-11-21 21:48:06 +09:00
|
|
|
['OS=="linux" and clang==1', {
|
|
|
|
# Required settings of using breakpad.
|
|
|
|
'cflags_cc': [
|
|
|
|
'-Wno-reserved-user-defined-literal',
|
|
|
|
],
|
|
|
|
}], # OS=="linux" and clang==1
|
2013-07-09 10:22:38 +08:00
|
|
|
],
|
2013-11-15 22:52:08 +08:00
|
|
|
}, # target <(product_name)_lib
|
2013-04-14 22:48:35 +08:00
|
|
|
{
|
2016-01-11 17:00:59 -08:00
|
|
|
'target_name': 'js2asar',
|
2013-04-14 22:48:35 +08:00
|
|
|
'type': 'none',
|
2015-02-13 13:05:51 +08:00
|
|
|
'actions': [
|
2013-04-14 22:48:35 +08:00
|
|
|
{
|
2016-01-11 17:00:59 -08:00
|
|
|
'action_name': 'js2asar',
|
2015-02-13 13:05:51 +08:00
|
|
|
'variables': {
|
|
|
|
'conditions': [
|
|
|
|
['OS=="mac"', {
|
|
|
|
'resources_path': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources',
|
|
|
|
},{
|
|
|
|
'resources_path': '<(PRODUCT_DIR)/resources',
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
2013-04-14 22:48:35 +08:00
|
|
|
'inputs': [
|
2016-01-11 17:00:59 -08:00
|
|
|
'<@(js_sources)',
|
2013-04-14 22:48:35 +08:00
|
|
|
],
|
2015-02-13 13:05:51 +08:00
|
|
|
'outputs': [
|
2016-03-31 09:26:11 -07:00
|
|
|
'<(resources_path)/electron.asar',
|
2013-04-14 22:48:35 +08:00
|
|
|
],
|
2015-02-13 13:05:51 +08:00
|
|
|
'action': [
|
|
|
|
'python',
|
2016-01-11 17:00:59 -08:00
|
|
|
'tools/js2asar.py',
|
2015-02-13 13:05:51 +08:00
|
|
|
'<@(_outputs)',
|
2016-03-30 11:50:17 -07:00
|
|
|
'lib',
|
2015-02-13 13:05:51 +08:00
|
|
|
'<@(_inputs)',
|
|
|
|
],
|
|
|
|
}
|
2013-04-14 22:48:35 +08:00
|
|
|
],
|
2016-01-11 17:00:59 -08:00
|
|
|
}, # target js2asar
|
2016-03-30 11:50:17 -07:00
|
|
|
{
|
|
|
|
'target_name': 'app2asar',
|
|
|
|
'type': 'none',
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'app2asar',
|
|
|
|
'variables': {
|
|
|
|
'conditions': [
|
|
|
|
['OS=="mac"', {
|
|
|
|
'resources_path': '<(PRODUCT_DIR)/<(product_name).app/Contents/Resources',
|
|
|
|
},{
|
|
|
|
'resources_path': '<(PRODUCT_DIR)/resources',
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'inputs': [
|
|
|
|
'<@(default_app_sources)',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(resources_path)/default_app.asar',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'python',
|
|
|
|
'tools/js2asar.py',
|
|
|
|
'<@(_outputs)',
|
|
|
|
'default_app',
|
|
|
|
'<@(_inputs)',
|
|
|
|
],
|
|
|
|
}
|
|
|
|
],
|
|
|
|
}, # target app2asar
|
2016-08-20 12:19:14 -03:00
|
|
|
{
|
|
|
|
'target_name': 'atom_js2c_copy',
|
|
|
|
'type': 'none',
|
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'destination': '<(js2c_input_dir)',
|
|
|
|
'files': [
|
|
|
|
'<@(js2c_sources)',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}, # target atom_js2c_copy
|
2016-08-21 07:30:14 -03:00
|
|
|
{
|
|
|
|
'target_name': 'atom_browserify',
|
|
|
|
'type': 'none',
|
|
|
|
'dependencies': [
|
|
|
|
# depend on this target to ensure the '<(js2c_input_dir)' is created
|
|
|
|
'atom_js2c_copy',
|
|
|
|
],
|
2017-02-27 15:13:41 -03:00
|
|
|
'variables': {
|
|
|
|
'sandbox_args': [
|
|
|
|
'./lib/sandboxed_renderer/init.js',
|
|
|
|
'-r',
|
2017-03-21 10:41:23 -03:00
|
|
|
'./lib/sandboxed_renderer/api/exports/electron.js:electron',
|
|
|
|
'-r',
|
|
|
|
'./lib/sandboxed_renderer/api/exports/fs.js:fs',
|
|
|
|
'-r',
|
|
|
|
'./lib/sandboxed_renderer/api/exports/os.js:os',
|
|
|
|
'-r',
|
2017-04-05 17:42:24 -03:00
|
|
|
'./lib/sandboxed_renderer/api/exports/path.js:path',
|
|
|
|
'-r',
|
2017-03-21 10:41:23 -03:00
|
|
|
'./lib/sandboxed_renderer/api/exports/child_process.js:child_process'
|
2017-02-27 15:13:41 -03:00
|
|
|
],
|
|
|
|
'isolated_args': [
|
|
|
|
'lib/isolated_renderer/init.js',
|
|
|
|
]
|
|
|
|
},
|
2016-08-21 07:30:14 -03:00
|
|
|
'actions': [
|
|
|
|
{
|
2017-01-11 16:36:59 -08:00
|
|
|
'action_name': 'atom_browserify_sandbox',
|
2016-08-21 07:30:14 -03:00
|
|
|
'inputs': [
|
2017-02-27 15:13:41 -03:00
|
|
|
'<!@(python tools/list-browserify-deps.py <(sandbox_args))'
|
2016-08-21 07:30:14 -03:00
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(js2c_input_dir)/preload_bundle.js',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'npm',
|
|
|
|
'run',
|
2016-11-03 14:07:01 -07:00
|
|
|
'--silent',
|
2016-08-21 07:30:14 -03:00
|
|
|
'browserify',
|
|
|
|
'--',
|
2017-02-27 15:13:41 -03:00
|
|
|
'<@(sandbox_args)',
|
2016-08-21 07:30:14 -03:00
|
|
|
'-o',
|
|
|
|
'<@(_outputs)',
|
|
|
|
],
|
2017-01-11 16:36:59 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'action_name': 'atom_browserify_isolated_context',
|
|
|
|
'inputs': [
|
2017-02-27 15:13:41 -03:00
|
|
|
'<!@(python tools/list-browserify-deps.py <(isolated_args))'
|
2017-01-11 16:36:59 -08:00
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(js2c_input_dir)/isolated_bundle.js',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'npm',
|
|
|
|
'run',
|
|
|
|
'--silent',
|
|
|
|
'browserify',
|
|
|
|
'--',
|
2017-02-27 15:13:41 -03:00
|
|
|
'<@(isolated_args)',
|
2017-01-11 16:36:59 -08:00
|
|
|
'-o',
|
|
|
|
'<@(_outputs)',
|
|
|
|
],
|
|
|
|
},
|
2016-08-21 07:30:14 -03:00
|
|
|
],
|
|
|
|
}, # target atom_browserify
|
2015-02-03 16:46:52 -08:00
|
|
|
{
|
2016-01-11 17:00:59 -08:00
|
|
|
'target_name': 'atom_js2c',
|
2015-02-03 16:46:52 -08:00
|
|
|
'type': 'none',
|
2016-08-20 12:19:14 -03:00
|
|
|
'dependencies': [
|
|
|
|
'atom_js2c_copy',
|
2016-08-21 07:30:14 -03:00
|
|
|
'atom_browserify',
|
2016-08-20 12:19:14 -03:00
|
|
|
],
|
2015-02-03 16:46:52 -08:00
|
|
|
'actions': [
|
|
|
|
{
|
2016-01-11 17:00:59 -08:00
|
|
|
'action_name': 'atom_js2c',
|
2015-02-03 16:46:52 -08:00
|
|
|
'inputs': [
|
2016-08-20 12:19:14 -03:00
|
|
|
# List all input files that should trigger a rebuild with js2c
|
2016-01-11 17:00:59 -08:00
|
|
|
'<@(js2c_sources)',
|
2016-08-21 07:30:14 -03:00
|
|
|
'<(js2c_input_dir)/preload_bundle.js',
|
2017-01-11 16:36:59 -08:00
|
|
|
'<(js2c_input_dir)/isolated_bundle.js',
|
2015-02-03 16:46:52 -08:00
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/atom_natives.h',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'python',
|
2016-01-11 17:00:59 -08:00
|
|
|
'tools/js2c.py',
|
2018-05-01 16:22:39 -07:00
|
|
|
'vendor/node',
|
2015-02-03 16:46:52 -08:00
|
|
|
'<@(_outputs)',
|
2016-08-20 12:19:14 -03:00
|
|
|
'<(js2c_input_dir)',
|
2015-02-03 16:46:52 -08:00
|
|
|
],
|
|
|
|
}
|
|
|
|
],
|
2016-01-11 17:00:59 -08:00
|
|
|
}, # target atom_js2c
|
2013-04-12 09:46:58 +08:00
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['OS=="mac"', {
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': '<(project_name)_framework',
|
2014-12-29 09:49:10 -08:00
|
|
|
'product_name': '<(product_name) Framework',
|
2013-04-12 09:46:58 +08:00
|
|
|
'type': 'shared_library',
|
|
|
|
'dependencies': [
|
|
|
|
'<(project_name)_lib',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'<@(framework_sources)',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
'vendor',
|
2015-04-02 23:03:23 +08:00
|
|
|
'<(libchromiumcontent_src_dir)',
|
2013-04-12 09:46:58 +08:00
|
|
|
],
|
2013-07-01 22:21:31 +08:00
|
|
|
'export_dependent_settings': [
|
|
|
|
'<(project_name)_lib',
|
|
|
|
],
|
2013-06-01 14:29:35 +08:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
|
2014-07-02 16:38:11 +08:00
|
|
|
'$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
|
2016-10-12 17:21:56 -07:00
|
|
|
'$(SDKROOT)/System/Library/Frameworks/Quartz.framework',
|
2017-03-30 17:26:11 -04:00
|
|
|
'$(SDKROOT)/System/Library/Frameworks/Security.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/SecurityInterface.framework',
|
2017-10-17 16:28:29 +09:00
|
|
|
'$(SDKROOT)/System/Library/Frameworks/ServiceManagement.framework',
|
2017-11-30 14:27:33 +01:00
|
|
|
'$(SDKROOT)/System/Library/Frameworks/StoreKit.framework',
|
2013-06-01 14:29:35 +08:00
|
|
|
],
|
|
|
|
},
|
2013-04-12 09:46:58 +08:00
|
|
|
'mac_bundle': 1,
|
|
|
|
'mac_bundle_resources': [
|
2014-03-16 08:30:26 +08:00
|
|
|
'atom/common/resources/mac/MainMenu.xib',
|
2015-04-02 23:03:23 +08:00
|
|
|
'<(libchromiumcontent_dir)/icudtl.dat',
|
2018-05-30 16:13:34 +09:00
|
|
|
'<(libchromiumcontent_dir)/blink_image_resources_200_percent.pak',
|
|
|
|
'<(libchromiumcontent_dir)/content_resources_200_percent.pak',
|
|
|
|
'<(libchromiumcontent_dir)/content_shell.pak',
|
|
|
|
'<(libchromiumcontent_dir)/ui_resources_200_percent.pak',
|
|
|
|
'<(libchromiumcontent_dir)/views_resources_200_percent.pak',
|
2015-04-02 23:03:23 +08:00
|
|
|
'<(libchromiumcontent_dir)/natives_blob.bin',
|
2018-04-24 20:17:53 -07:00
|
|
|
'<(libchromiumcontent_dir)/v8_context_snapshot.bin',
|
2013-04-12 09:46:58 +08:00
|
|
|
],
|
|
|
|
'xcode_settings': {
|
2015-04-14 16:09:34 +08:00
|
|
|
'ATOM_BUNDLE_ID': 'com.<(company_abbr).<(project_name).framework',
|
2014-03-16 08:30:26 +08:00
|
|
|
'INFOPLIST_FILE': 'atom/common/resources/mac/Info.plist',
|
2014-12-29 09:49:10 -08:00
|
|
|
'LD_DYLIB_INSTALL_NAME': '@rpath/<(product_name) Framework.framework/<(product_name) Framework',
|
2013-06-19 21:31:57 +08:00
|
|
|
'LD_RUNPATH_SEARCH_PATHS': [
|
|
|
|
'@loader_path/Libraries',
|
2013-04-12 09:46:58 +08:00
|
|
|
],
|
2013-06-27 19:53:57 +08:00
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'-ObjC',
|
|
|
|
],
|
2013-04-12 09:46:58 +08:00
|
|
|
},
|
|
|
|
'copies': [
|
|
|
|
{
|
2015-04-03 11:38:04 +08:00
|
|
|
'variables': {
|
|
|
|
'conditions': [
|
|
|
|
['libchromiumcontent_component', {
|
2015-04-09 20:58:11 +08:00
|
|
|
'copied_libraries': [
|
|
|
|
'<(PRODUCT_DIR)/libnode.dylib',
|
|
|
|
'<@(libchromiumcontent_shared_libraries)',
|
|
|
|
'<@(libchromiumcontent_shared_v8_libraries)',
|
|
|
|
],
|
2015-04-03 11:38:04 +08:00
|
|
|
}, {
|
2015-04-09 20:58:11 +08:00
|
|
|
'copied_libraries': [
|
|
|
|
'<(PRODUCT_DIR)/libnode.dylib',
|
2016-02-17 22:21:14 +08:00
|
|
|
'<(libchromiumcontent_dir)/libffmpeg.dylib',
|
2015-04-09 20:58:11 +08:00
|
|
|
],
|
2015-04-03 11:38:04 +08:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
2014-12-29 09:49:10 -08:00
|
|
|
'destination': '<(PRODUCT_DIR)/<(product_name) Framework.framework/Versions/A/Libraries',
|
2013-04-12 09:46:58 +08:00
|
|
|
'files': [
|
2015-04-03 11:38:04 +08:00
|
|
|
'<@(copied_libraries)',
|
2013-04-12 09:46:58 +08:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2013-06-01 14:29:35 +08:00
|
|
|
'postbuilds': [
|
2015-04-07 17:26:21 +08:00
|
|
|
{
|
2015-04-09 20:58:11 +08:00
|
|
|
'postbuild_name': 'Fix path of libnode',
|
|
|
|
'action': [
|
|
|
|
'install_name_tool',
|
|
|
|
'-change',
|
|
|
|
'/usr/local/lib/libnode.dylib',
|
|
|
|
'@rpath/libnode.dylib',
|
|
|
|
'${BUILT_PRODUCTS_DIR}/<(product_name) Framework.framework/Versions/A/<(product_name) Framework',
|
|
|
|
],
|
|
|
|
},
|
2013-06-26 10:31:32 +08:00
|
|
|
{
|
|
|
|
'postbuild_name': 'Add symlinks for framework subdirectories',
|
|
|
|
'action': [
|
|
|
|
'tools/mac/create-framework-subdir-symlinks.sh',
|
2015-01-01 10:51:59 -05:00
|
|
|
'<(product_name) Framework',
|
2013-06-26 10:31:32 +08:00
|
|
|
'Libraries',
|
|
|
|
],
|
|
|
|
},
|
2016-01-08 12:38:00 +08:00
|
|
|
{
|
|
|
|
'postbuild_name': 'Copy locales',
|
|
|
|
'action': [
|
|
|
|
'tools/mac/copy-locales.py',
|
|
|
|
'-d',
|
|
|
|
'<(libchromiumcontent_dir)/locales',
|
|
|
|
'${BUILT_PRODUCTS_DIR}/<(product_name) Framework.framework/Resources',
|
|
|
|
'<@(locales)',
|
|
|
|
],
|
|
|
|
},
|
2013-06-01 14:29:35 +08:00
|
|
|
],
|
2015-09-28 14:52:55 +08:00
|
|
|
'conditions': [
|
2018-03-15 17:51:48 +09:00
|
|
|
['enable_pdf_viewer==1', {
|
|
|
|
'mac_bundle_resources': [
|
|
|
|
'<(PRODUCT_DIR)/pdf_viewer_resources.pak',
|
|
|
|
],
|
|
|
|
}], # enable_pdf_viewer
|
2015-09-28 14:52:55 +08:00
|
|
|
['mas_build==0', {
|
2015-09-28 15:02:36 +08:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'external_binaries/Squirrel.framework',
|
|
|
|
'external_binaries/ReactiveCocoa.framework',
|
|
|
|
'external_binaries/Mantle.framework',
|
|
|
|
],
|
|
|
|
},
|
2015-09-28 14:52:55 +08:00
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'destination': '<(PRODUCT_DIR)/<(product_name) Framework.framework/Versions/A/Resources',
|
|
|
|
'files': [
|
|
|
|
'<(PRODUCT_DIR)/crashpad_handler',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2013-06-01 14:29:35 +08:00
|
|
|
}, # target framework
|
2013-04-12 09:46:58 +08: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': {
|
2015-04-14 16:09:34 +08:00
|
|
|
'ATOM_BUNDLE_ID': 'com.<(company_abbr).<(project_name).helper',
|
2014-03-16 08:30:26 +08:00
|
|
|
'INFOPLIST_FILE': 'atom/renderer/resources/mac/Info.plist',
|
2013-06-19 21:31:57 +08:00
|
|
|
'LD_RUNPATH_SEARCH_PATHS': [
|
|
|
|
'@executable_path/../../..',
|
|
|
|
],
|
2013-04-12 09:46:58 +08:00
|
|
|
},
|
2013-06-01 14:29:35 +08:00
|
|
|
}, # target helper
|
2017-10-17 16:28:29 +09:00
|
|
|
{
|
|
|
|
'target_name': '<(project_name)_login_helper',
|
|
|
|
'product_name': '<(product_name) Login Helper',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'<@(login_helper_sources)',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
'vendor',
|
|
|
|
'<(libchromiumcontent_src_dir)',
|
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'mac_bundle': 1,
|
|
|
|
'xcode_settings': {
|
|
|
|
'ATOM_BUNDLE_ID': 'com.<(company_abbr).<(project_name).loginhelper',
|
|
|
|
'INFOPLIST_FILE': 'atom/app/resources/mac/loginhelper-Info.plist',
|
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'-ObjC',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}, # target login_helper
|
2013-04-12 09:46:58 +08:00
|
|
|
],
|
2014-05-29 19:08:59 +08:00
|
|
|
}], # OS!="mac"
|
2013-04-12 09:46:58 +08:00
|
|
|
],
|
|
|
|
}
|