'<(libchromiumcontent_resources_dir)/ui_resources_200_percent.pak',
'<(libchromiumcontent_resources_dir)/natives_blob.bin',
'<(libchromiumcontent_resources_dir)/snapshot_blob.bin',
+ '<(PRODUCT_DIR)/node.dll',
'external_binaries/d3dcompiler_47.dll',
'external_binaries/msvcp120.dll',
'external_binaries/msvcr120.dll',
'<(libchromiumcontent_resources_dir)/content_shell.pak',
'<(libchromiumcontent_resources_dir)/natives_blob.bin',
'<(libchromiumcontent_resources_dir)/snapshot_blob.bin',
+ '<(PRODUCT_DIR)/libnode.so',
],
},
{
'dependencies': [
'atom_coffee2c',
'vendor/brightray/brightray.gyp:brightray',
- 'vendor/node/node.gyp:node_lib',
+ 'vendor/node/node.gyp:node',
],
'defines': [
'PRODUCT_NAME="<(product_name)"',
],
'xcode_settings': {
'INFOPLIST_FILE': 'atom/common/resources/mac/Info.plist',
- 'LIBRARY_SEARCH_PATHS': [
- '<(libchromiumcontent_library_dir)',
- ],
'LD_DYLIB_INSTALL_NAME': '@rpath/<(product_name) Framework.framework/<(product_name) Framework',
'LD_RUNPATH_SEARCH_PATHS': [
'@loader_path/Libraries',
'files': [
'<(libchromiumcontent_library_dir)/ffmpegsumo.so',
'<(libchromiumcontent_library_dir)/libchromiumcontent.dylib',
+ '<(PRODUCT_DIR)/libnode.dylib',
],
},
{
},
],
'postbuilds': [
+ {
+ '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',
+ ],
+ },
{
'postbuild_name': 'Add symlinks for framework subdirectories',
'action': [
{
+ 'includes': [
+ 'vendor/brightray/brightray.gypi',
+ ],
'variables': {
'clang': 0,
'openssl_no_asm': 1,
# Settings to compile node under Windows.
'target_defaults': {
'target_conditions': [
- ['_target_name in ["libuv", "http_parser", "cares", "openssl", "openssl-cli", "node_lib", "zlib"]', {
+ ['_target_name in ["libuv", "http_parser", "cares", "openssl", "openssl-cli", "node", "zlib"]', {
'msvs_disabled_warnings': [
4703, # potentially uninitialized local pointer variable 'req' used
4013, # 'free' undefined; assuming extern returning int
}],
],
}],
- ['_target_name in ["node_lib", "atom_lib"]', {
+ ['_target_name in ["node", "atom_lib"]', {
'include_dirs': [
'vendor/brightray/vendor/download/libchromiumcontent/src/v8/include',
],
}],
+ ['_target_name=="node"', {
+ 'conditions': [
+ ['OS=="linux"', {
+ 'libraries': [
+ '<(libchromiumcontent_library_dir)/libchromiumcontent.so',
+ ],
+ }],
+ ['OS=="win"', {
+ 'libraries': [
+ '<(libchromiumcontent_library_dir)/chromiumcontent.dll.lib',
+ ],
+ }],
+ ['OS=="mac"', {
+ 'libraries': [
+ '<(libchromiumcontent_library_dir)/libchromiumcontent.dylib',
+ ],
+ }],
+ ],
+ }],
['_target_name=="libuv"', {
'conditions': [
['OS=="win"', {
ret = subprocess.call([python, gyp,
'-f', 'ninja', '--depth', '.', 'atom.gyp',
- '-Icommon.gypi', '-Ivendor/brightray/brightray.gypi',
+ '-Icommon.gypi',
'-Dlinux_clang=0', # Disable brightray's clang setting
'-Dtarget_arch={0}'.format(arch),
'-Dlibrary=static_library'])