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