test: add test-npm-install to parallel tests suite
[platform/upstream/nodejs.git] / node.gyp
1 {
2   'variables': {
3     'v8_use_snapshot%': 'false',
4     'node_use_dtrace%': 'false',
5     'node_use_lttng%': 'false',
6     'node_use_etw%': 'false',
7     'node_use_perfctr%': 'false',
8     'node_has_winsdk%': 'false',
9     'node_shared_zlib%': 'false',
10     'node_shared_http_parser%': 'false',
11     'node_shared_libuv%': 'false',
12     'node_use_openssl%': 'true',
13     'node_shared_openssl%': 'false',
14     'node_v8_options%': '',
15     'node_target_type%': 'executable',
16     'node_core_target_name%': 'node',
17     'library_files': [
18       'src/node.js',
19       'lib/_debug_agent.js',
20       'lib/_debugger.js',
21       'lib/_linklist.js',
22       'lib/assert.js',
23       'lib/buffer.js',
24       'lib/child_process.js',
25       'lib/console.js',
26       'lib/constants.js',
27       'lib/crypto.js',
28       'lib/cluster.js',
29       'lib/dgram.js',
30       'lib/dns.js',
31       'lib/domain.js',
32       'lib/events.js',
33       'lib/freelist.js',
34       'lib/fs.js',
35       'lib/http.js',
36       'lib/_http_agent.js',
37       'lib/_http_client.js',
38       'lib/_http_common.js',
39       'lib/_http_incoming.js',
40       'lib/_http_outgoing.js',
41       'lib/_http_server.js',
42       'lib/https.js',
43       'lib/module.js',
44       'lib/net.js',
45       'lib/os.js',
46       'lib/path.js',
47       'lib/process.js',
48       'lib/punycode.js',
49       'lib/querystring.js',
50       'lib/readline.js',
51       'lib/repl.js',
52       'lib/stream.js',
53       'lib/_stream_readable.js',
54       'lib/_stream_writable.js',
55       'lib/_stream_duplex.js',
56       'lib/_stream_transform.js',
57       'lib/_stream_passthrough.js',
58       'lib/_stream_wrap.js',
59       'lib/string_decoder.js',
60       'lib/sys.js',
61       'lib/timers.js',
62       'lib/tls.js',
63       'lib/_tls_common.js',
64       'lib/_tls_legacy.js',
65       'lib/_tls_wrap.js',
66       'lib/tty.js',
67       'lib/url.js',
68       'lib/util.js',
69       'lib/v8.js',
70       'lib/vm.js',
71       'lib/zlib.js',
72       'lib/internal/child_process.js',
73       'lib/internal/cluster.js',
74       'lib/internal/freelist.js',
75       'lib/internal/net.js',
76       'lib/internal/module.js',
77       'lib/internal/socket_list.js',
78       'lib/internal/repl.js',
79       'lib/internal/util.js',
80       'lib/internal/v8_prof_polyfill.js',
81       'lib/internal/v8_prof_processor.js',
82       'lib/internal/streams/lazy_transform.js',
83       'deps/v8/tools/splaytree.js',
84       'deps/v8/tools/codemap.js',
85       'deps/v8/tools/consarray.js',
86       'deps/v8/tools/csvparser.js',
87       'deps/v8/tools/profile.js',
88       'deps/v8/tools/profile_view.js',
89       'deps/v8/tools/logreader.js',
90       'deps/v8/tools/tickprocessor.js',
91       'deps/v8/tools/SourceMap.js',
92       'deps/v8/tools/tickprocessor-driver.js',
93     ],
94   },
95
96   'targets': [
97     {
98       'target_name': '<(node_core_target_name)',
99       'type': '<(node_target_type)',
100
101       'dependencies': [
102         'node_js2c#host',
103         'deps/cares/cares.gyp:cares',
104         'deps/v8/tools/gyp/v8.gyp:v8',
105         'deps/v8/tools/gyp/v8.gyp:v8_libplatform'
106       ],
107
108       'include_dirs': [
109         'src',
110         'tools/msvs/genfiles',
111         'deps/uv/src/ares',
112         '<(SHARED_INTERMEDIATE_DIR)', # for node_natives.h
113         'deps/v8' # include/v8_platform.h
114       ],
115
116       'sources': [
117         'src/debug-agent.cc',
118         'src/async-wrap.cc',
119         'src/env.cc',
120         'src/fs_event_wrap.cc',
121         'src/cares_wrap.cc',
122         'src/handle_wrap.cc',
123         'src/js_stream.cc',
124         'src/node.cc',
125         'src/node_buffer.cc',
126         'src/node_constants.cc',
127         'src/node_contextify.cc',
128         'src/node_file.cc',
129         'src/node_http_parser.cc',
130         'src/node_javascript.cc',
131         'src/node_main.cc',
132         'src/node_os.cc',
133         'src/node_revert.cc',
134         'src/node_util.cc',
135         'src/node_v8.cc',
136         'src/node_stat_watcher.cc',
137         'src/node_watchdog.cc',
138         'src/node_zlib.cc',
139         'src/node_i18n.cc',
140         'src/pipe_wrap.cc',
141         'src/signal_wrap.cc',
142         'src/spawn_sync.cc',
143         'src/string_bytes.cc',
144         'src/stream_base.cc',
145         'src/stream_wrap.cc',
146         'src/tcp_wrap.cc',
147         'src/timer_wrap.cc',
148         'src/tty_wrap.cc',
149         'src/process_wrap.cc',
150         'src/udp_wrap.cc',
151         'src/uv.cc',
152         # headers to make for a more pleasant IDE experience
153         'src/async-wrap.h',
154         'src/async-wrap-inl.h',
155         'src/base-object.h',
156         'src/base-object-inl.h',
157         'src/debug-agent.h',
158         'src/env.h',
159         'src/env-inl.h',
160         'src/handle_wrap.h',
161         'src/js_stream.h',
162         'src/node.h',
163         'src/node_buffer.h',
164         'src/node_constants.h',
165         'src/node_file.h',
166         'src/node_http_parser.h',
167         'src/node_internals.h',
168         'src/node_javascript.h',
169         'src/node_root_certs.h',
170         'src/node_version.h',
171         'src/node_watchdog.h',
172         'src/node_wrap.h',
173         'src/node_revert.h',
174         'src/node_i18n.h',
175         'src/pipe_wrap.h',
176         'src/tty_wrap.h',
177         'src/tcp_wrap.h',
178         'src/udp_wrap.h',
179         'src/req-wrap.h',
180         'src/req-wrap-inl.h',
181         'src/string_bytes.h',
182         'src/stream_base.h',
183         'src/stream_base-inl.h',
184         'src/stream_wrap.h',
185         'src/tree.h',
186         'src/util.h',
187         'src/util-inl.h',
188         'src/util.cc',
189         'src/string_search.cc',
190         'deps/http_parser/http_parser.h',
191         'deps/v8/include/v8.h',
192         'deps/v8/include/v8-debug.h',
193         '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
194         # javascript files to make for an even more pleasant IDE experience
195         '<@(library_files)',
196         # node.gyp is added to the project by default.
197         'common.gypi',
198       ],
199
200       'defines': [
201         'NODE_ARCH="<(target_arch)"',
202         'NODE_PLATFORM="<(OS)"',
203         'NODE_WANT_INTERNALS=1',
204         # Warn when using deprecated V8 APIs.
205         'V8_DEPRECATION_WARNINGS=1',
206       ],
207
208
209       'conditions': [
210         [ 'node_tag!=""', {
211           'defines': [ 'NODE_TAG="<(node_tag)"' ],
212         }],
213         [ 'node_v8_options!=""', {
214           'defines': [ 'NODE_V8_OPTIONS="<(node_v8_options)"'],
215         }],
216         # No node_main.cc for anything except executable
217         [ 'node_target_type!="executable"', {
218           'sources!': [
219             'src/node_main.cc',
220           ],
221         }],
222         [ 'node_release_urlbase!=""', {
223           'defines': [
224             'NODE_RELEASE_URLBASE="<(node_release_urlbase)"',
225           ]
226         }],
227         [ 'v8_enable_i18n_support==1', {
228           'defines': [ 'NODE_HAVE_I18N_SUPPORT=1' ],
229           'dependencies': [
230             '<(icu_gyp_path):icui18n',
231             '<(icu_gyp_path):icuuc',
232           ],
233           'conditions': [
234             [ 'icu_small=="true"', {
235               'defines': [ 'NODE_HAVE_SMALL_ICU=1' ],
236           }]],
237         }],
238         [ 'node_use_openssl=="true"', {
239           'defines': [ 'HAVE_OPENSSL=1' ],
240           'sources': [
241             'src/node_crypto.cc',
242             'src/node_crypto_bio.cc',
243             'src/node_crypto_clienthello.cc',
244             'src/node_crypto.h',
245             'src/node_crypto_bio.h',
246             'src/node_crypto_clienthello.h',
247             'src/tls_wrap.cc',
248             'src/tls_wrap.h'
249           ],
250           'conditions': [
251             ['openssl_fips != ""', {
252               'defines': [ 'NODE_FIPS_MODE' ],
253             }],
254             [ 'node_shared_openssl=="false"', {
255               'dependencies': [
256                 './deps/openssl/openssl.gyp:openssl',
257
258                 # For tests
259                 './deps/openssl/openssl.gyp:openssl-cli',
260               ],
261               # Do not let unused OpenSSL symbols to slip away
262               'conditions': [
263                 # -force_load or --whole-archive are not applicable for
264                 # the static library
265                 [ 'node_target_type!="static_library"', {
266                   'xcode_settings': {
267                     'OTHER_LDFLAGS': [
268                       '-Wl,-force_load,<(PRODUCT_DIR)/<(OPENSSL_PRODUCT)',
269                     ],
270                   },
271                   'conditions': [
272                     ['OS in "linux freebsd"', {
273                       'ldflags': [
274                         '-Wl,--whole-archive <(PRODUCT_DIR)/<(OPENSSL_PRODUCT)',
275                         '-Wl,--no-whole-archive',
276                       ],
277                     }],
278                   ],
279                 }],
280               ],
281             }]]
282         }, {
283           'defines': [ 'HAVE_OPENSSL=0' ]
284         }],
285         [ 'node_use_dtrace=="true"', {
286           'defines': [ 'HAVE_DTRACE=1' ],
287           'dependencies': [
288             'node_dtrace_header',
289             'specialize_node_d',
290           ],
291           'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
292
293           #
294           # DTrace is supported on linux, solaris, mac, and bsd.  There are
295           # three object files associated with DTrace support, but they're
296           # not all used all the time:
297           #
298           #   node_dtrace.o           all configurations
299           #   node_dtrace_ustack.o    not supported on mac and linux
300           #   node_dtrace_provider.o  All except OS X.  "dtrace -G" is not
301           #                           used on OS X.
302           #
303           # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
304           # actually exist.  They're listed here to trick GYP into linking the
305           # corresponding object files into the final "node" executable.  These
306           # object files are generated by "dtrace -G" using custom actions
307           # below, and the GYP-generated Makefiles will properly build them when
308           # needed.
309           #
310           'sources': [ 'src/node_dtrace.cc' ],
311           'conditions': [
312             [ 'OS=="linux"', {
313               'sources': [
314                 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
315               ],
316             }],
317             [ 'OS!="mac" and OS!="linux"', {
318               'sources': [
319                 'src/node_dtrace_ustack.cc',
320                 'src/node_dtrace_provider.cc',
321               ]
322             }
323           ] ]
324         } ],
325         [ 'node_use_lttng=="true"', {
326           'defines': [ 'HAVE_LTTNG=1' ],
327           'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
328           'libraries': [ '-llttng-ust' ],
329           'sources': [
330             'src/node_lttng.cc'
331           ],
332         } ],
333         [ 'node_use_etw=="true"', {
334           'defines': [ 'HAVE_ETW=1' ],
335           'dependencies': [ 'node_etw' ],
336           'sources': [
337             'src/node_win32_etw_provider.h',
338             'src/node_win32_etw_provider-inl.h',
339             'src/node_win32_etw_provider.cc',
340             'src/node_dtrace.cc',
341             'tools/msvs/genfiles/node_etw_provider.h',
342             'tools/msvs/genfiles/node_etw_provider.rc',
343           ]
344         } ],
345         [ 'node_use_perfctr=="true"', {
346           'defines': [ 'HAVE_PERFCTR=1' ],
347           'dependencies': [ 'node_perfctr' ],
348           'sources': [
349             'src/node_win32_perfctr_provider.h',
350             'src/node_win32_perfctr_provider.cc',
351             'src/node_counters.cc',
352             'src/node_counters.h',
353             'tools/msvs/genfiles/node_perfctr_provider.rc',
354           ]
355         } ],
356         [ 'v8_postmortem_support=="true"', {
357           'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:postmortem-metadata' ],
358           'conditions': [
359             # -force_load is not applicable for the static library
360             [ 'node_target_type!="static_library"', {
361               'xcode_settings': {
362                 'OTHER_LDFLAGS': [
363                   '-Wl,-force_load,<(V8_BASE)',
364                 ],
365               },
366             }],
367           ],
368         }],
369         [ 'node_shared_zlib=="false"', {
370           'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
371         }],
372
373         [ 'node_shared_http_parser=="false"', {
374           'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
375         }],
376
377         [ 'node_shared_libuv=="false"', {
378           'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
379         }],
380
381         [ 'OS=="win"', {
382           'sources': [
383             'src/res/node.rc',
384           ],
385           'defines!': [
386             'NODE_PLATFORM="win"',
387           ],
388           'defines': [
389             'FD_SETSIZE=1024',
390             # we need to use node's preferred "win32" rather than gyp's preferred "win"
391             'NODE_PLATFORM="win32"',
392             '_UNICODE=1',
393           ],
394           'libraries': [ '-lpsapi.lib' ]
395         }, { # POSIX
396           'defines': [ '__POSIX__' ],
397         }],
398         [ 'OS=="mac"', {
399           # linking Corefoundation is needed since certain OSX debugging tools
400           # like Instruments require it for some features
401           'libraries': [ '-framework CoreFoundation' ],
402           'defines!': [
403             'NODE_PLATFORM="mac"',
404           ],
405           'defines': [
406             # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
407             'NODE_PLATFORM="darwin"',
408           ],
409         }],
410         [ 'OS=="freebsd"', {
411           'libraries': [
412             '-lutil',
413             '-lkvm',
414           ],
415         }],
416         [ 'OS=="aix"', {
417           'defines': [
418             '_LINUX_SOURCE_COMPAT',
419           ],
420         }],
421         [ 'OS=="solaris"', {
422           'libraries': [
423             '-lkstat',
424             '-lumem',
425           ],
426           'defines!': [
427             'NODE_PLATFORM="solaris"',
428           ],
429           'defines': [
430             # we need to use node's preferred "sunos"
431             # rather than gyp's preferred "solaris"
432             'NODE_PLATFORM="sunos"',
433           ],
434         }],
435         [ 'OS=="freebsd" or OS=="linux"', {
436           'ldflags': [ '-Wl,-z,noexecstack',
437                        '-Wl,--whole-archive <(V8_BASE)',
438                        '-Wl,--no-whole-archive' ]
439         }],
440         [ 'OS=="sunos"', {
441           'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ],
442         }],
443       ],
444       'msvs_settings': {
445         'VCManifestTool': {
446           'EmbedManifest': 'true',
447           'AdditionalManifestFiles': 'src/res/node.exe.extra.manifest'
448         }
449       },
450     },
451     # generate ETW header and resource files
452     {
453       'target_name': 'node_etw',
454       'type': 'none',
455       'conditions': [
456         [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
457           'actions': [
458             {
459               'action_name': 'node_etw',
460               'inputs': [ 'src/res/node_etw_provider.man' ],
461               'outputs': [
462                 'tools/msvs/genfiles/node_etw_provider.rc',
463                 'tools/msvs/genfiles/node_etw_provider.h',
464                 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
465               ],
466               'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
467             }
468           ]
469         } ]
470       ]
471     },
472     # generate perf counter header and resource files
473     {
474       'target_name': 'node_perfctr',
475       'type': 'none',
476       'conditions': [
477         [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
478           'actions': [
479             {
480               'action_name': 'node_perfctr_man',
481               'inputs': [ 'src/res/node_perfctr_provider.man' ],
482               'outputs': [
483                 'tools/msvs/genfiles/node_perfctr_provider.h',
484                 'tools/msvs/genfiles/node_perfctr_provider.rc',
485                 'tools/msvs/genfiles/MSG00001.BIN',
486               ],
487               'action': [ 'ctrpp <@(_inputs) '
488                           '-o tools/msvs/genfiles/node_perfctr_provider.h '
489                           '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
490               ]
491             },
492           ],
493         } ]
494       ]
495     },
496     {
497       'target_name': 'node_js2c',
498       'type': 'none',
499       'toolsets': ['host'],
500       'actions': [
501         {
502           'action_name': 'node_js2c',
503           'inputs': [
504             '<@(library_files)',
505             './config.gypi',
506           ],
507           'outputs': [
508             '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
509           ],
510           'conditions': [
511             [ 'node_use_dtrace=="false" and node_use_etw=="false"', {
512               'inputs': [ 'src/notrace_macros.py' ]
513             }],
514             ['node_use_lttng=="false"', {
515               'inputs': [ 'src/nolttng_macros.py' ]
516             }],
517             [ 'node_use_perfctr=="false"', {
518               'inputs': [ 'src/perfctr_macros.py' ]
519             }]
520           ],
521           'action': [
522             'python',
523             'tools/js2c.py',
524             '<@(_outputs)',
525             '<@(_inputs)',
526           ],
527         },
528       ],
529     }, # end node_js2c
530     {
531       'target_name': 'node_dtrace_header',
532       'type': 'none',
533       'conditions': [
534         [ 'node_use_dtrace=="true" and OS!="linux"', {
535           'actions': [
536             {
537               'action_name': 'node_dtrace_header',
538               'inputs': [ 'src/node_provider.d' ],
539               'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
540               'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
541                 '-o', '<@(_outputs)' ]
542             }
543           ]
544         } ],
545         [ 'node_use_dtrace=="true" and OS=="linux"', {
546           'actions': [
547             {
548               'action_name': 'node_dtrace_header',
549               'inputs': [ 'src/node_provider.d' ],
550               'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
551               'action': [ 'dtrace', '-h', '-s', '<@(_inputs)',
552                 '-o', '<@(_outputs)' ]
553             }
554           ]
555         } ],
556       ]
557     },
558     {
559       'target_name': 'node_dtrace_provider',
560       'type': 'none',
561       'conditions': [
562         [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
563           'actions': [
564             {
565               'action_name': 'node_dtrace_provider_o',
566               'inputs': [
567                 '<(OBJ_DIR)/node/src/node_dtrace.o',
568               ],
569               'outputs': [
570                 '<(OBJ_DIR)/node/src/node_dtrace_provider.o'
571               ],
572               'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
573                 '<@(_inputs)', '-o', '<@(_outputs)' ]
574             }
575           ]
576         }],
577         [ 'node_use_dtrace=="true" and OS=="linux"', {
578           'actions': [
579             {
580               'action_name': 'node_dtrace_provider_o',
581               'inputs': [ 'src/node_provider.d' ],
582               'outputs': [
583                 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
584               ],
585               'action': [
586                 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
587               ],
588             }
589           ],
590         }],
591       ]
592     },
593     {
594       'target_name': 'node_dtrace_ustack',
595       'type': 'none',
596       'conditions': [
597         [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
598           'actions': [
599             {
600               'action_name': 'node_dtrace_ustack_constants',
601               'inputs': [
602                 '<(V8_BASE)'
603               ],
604               'outputs': [
605                 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
606               ],
607               'action': [
608                 'tools/genv8constants.py',
609                 '<@(_outputs)',
610                 '<@(_inputs)'
611               ]
612             },
613             {
614               'action_name': 'node_dtrace_ustack',
615               'inputs': [
616                 'src/v8ustack.d',
617                 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
618               ],
619               'outputs': [
620                 '<(OBJ_DIR)/node/src/node_dtrace_ustack.o'
621               ],
622               'conditions': [
623                 [ 'target_arch=="ia32"', {
624                   'action': [
625                     'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
626                     '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
627                   ]
628                 } ],
629                 [ 'target_arch=="x64"', {
630                   'action': [
631                     'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
632                     '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
633                   ]
634                 } ],
635               ]
636             },
637           ]
638         } ],
639       ]
640     },
641     {
642       'target_name': 'specialize_node_d',
643       'type': 'none',
644       'conditions': [
645         [ 'node_use_dtrace=="true"', {
646           'actions': [
647             {
648               'action_name': 'specialize_node_d',
649               'inputs': [
650                 'src/node.d'
651               ],
652               'outputs': [
653                 '<(PRODUCT_DIR)/node.d',
654               ],
655               'action': [
656                 'tools/specialize_node_d.py',
657                 '<@(_outputs)',
658                 '<@(_inputs)',
659                 '<@(OS)',
660                 '<@(target_arch)',
661               ],
662             },
663           ],
664         } ],
665       ]
666     },
667     {
668       'target_name': 'cctest',
669       'type': 'executable',
670       'dependencies': [
671         'deps/gtest/gtest.gyp:gtest',
672         'deps/v8/tools/gyp/v8.gyp:v8',
673         'deps/v8/tools/gyp/v8.gyp:v8_libplatform'
674       ],
675       'include_dirs': [
676         'src',
677         'deps/v8/include'
678       ],
679       'defines': [
680         # gtest's ASSERT macros conflict with our own.
681         'GTEST_DONT_DEFINE_ASSERT_EQ=1',
682         'GTEST_DONT_DEFINE_ASSERT_GE=1',
683         'GTEST_DONT_DEFINE_ASSERT_GT=1',
684         'GTEST_DONT_DEFINE_ASSERT_LE=1',
685         'GTEST_DONT_DEFINE_ASSERT_LT=1',
686         'GTEST_DONT_DEFINE_ASSERT_NE=1',
687       ],
688       'sources': [
689         'test/cctest/util.cc',
690       ],
691     }
692   ], # end targets
693
694   'conditions': [
695     ['OS=="aix"', {
696       'targets': [
697         {
698           'target_name': 'node',
699           'type': 'executable',
700           'dependencies': ['<(node_core_target_name)', 'node_exp'],
701
702           'include_dirs': [
703             'src',
704             'deps/v8/include',
705           ],
706
707           'sources': [
708             'src/node_main.cc',
709             '<@(library_files)',
710             # node.gyp is added to the project by default.
711             'common.gypi',
712           ],
713
714           'ldflags': ['-Wl,-bbigtoc,-bE:<(PRODUCT_DIR)/node.exp'],
715         },
716         {
717           'target_name': 'node_exp',
718           'type': 'none',
719           'dependencies': [
720             '<(node_core_target_name)',
721           ],
722           'actions': [
723             {
724               'action_name': 'expfile',
725               'inputs': [
726                 '<(OBJ_DIR)'
727               ],
728               'outputs': [
729                 '<(PRODUCT_DIR)/node.exp'
730               ],
731               'action': [
732                 'sh', 'tools/create_expfile.sh',
733                       '<@(_inputs)', '<@(_outputs)'
734               ],
735             }
736           ]
737         }
738       ], # end targets
739     }], # end aix section
740   ], # end conditions block
741 }