|
491 | 491 | 'product_name': 'node_base', |
492 | 492 | }], |
493 | 493 | [ 'v8_enable_inspector==1', { |
494 | | - 'defines': [ |
495 | | - 'HAVE_INSPECTOR=1', |
496 | | - ], |
497 | | - 'sources': [ |
498 | | - 'src/inspector_agent.cc', |
499 | | - 'src/inspector_io.cc', |
500 | | - 'src/inspector_js_api.cc', |
501 | | - 'src/inspector_socket.cc', |
502 | | - 'src/inspector_socket_server.cc', |
503 | | - 'src/inspector/main_thread_interface.cc', |
504 | | - 'src/inspector/worker_inspector.cc', |
505 | | - 'src/inspector/node_string.cc', |
506 | | - 'src/inspector/worker_agent.cc', |
507 | | - 'src/inspector/tracing_agent.cc', |
508 | | - 'src/inspector_agent.h', |
509 | | - 'src/inspector_io.h', |
510 | | - 'src/inspector_socket.h', |
511 | | - 'src/inspector_socket_server.h', |
512 | | - 'src/inspector/main_thread_interface.h', |
513 | | - 'src/inspector/worker_inspector.h', |
514 | | - 'src/inspector/node_string.h', |
515 | | - 'src/inspector/worker_agent.h', |
516 | | - 'src/inspector/tracing_agent.h', |
517 | | - '<@(node_inspector_generated_sources)' |
518 | | - ], |
519 | | - 'dependencies': [ |
520 | | - 'node_protocol_generated_sources#host', |
521 | | - 'v8_inspector_compress_protocol_json#host', |
522 | | - ], |
523 | | - 'include_dirs': [ |
524 | | - '<(SHARED_INTERMEDIATE_DIR)/include', # for inspector |
525 | | - '<(SHARED_INTERMEDIATE_DIR)', |
526 | | - '<(SHARED_INTERMEDIATE_DIR)/src', # for inspector |
527 | | - ], |
| 494 | + 'includes' : [ 'src/inspector/node_inspector.gypi' ], |
528 | 495 | }, { |
529 | 496 | 'defines': [ 'HAVE_INSPECTOR=0' ] |
530 | 497 | }], |
|
989 | 956 | }, |
990 | 957 | ] |
991 | 958 | }], # end aix section |
992 | | - [ 'v8_enable_inspector==1', { |
993 | | - 'variables': { |
994 | | - 'protocol_path': 'tools/inspector_protocol', |
995 | | - 'node_inspector_path': 'src/inspector', |
996 | | - 'node_inspector_generated_sources': [ |
997 | | - '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/Forward.h', |
998 | | - '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/Protocol.cpp', |
999 | | - '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/Protocol.h', |
1000 | | - '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/NodeWorker.cpp', |
1001 | | - '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/NodeWorker.h', |
1002 | | - '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/NodeTracing.cpp', |
1003 | | - '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/NodeTracing.h', |
1004 | | - ], |
1005 | | - 'node_protocol_files': [ |
1006 | | - '<(protocol_path)/lib/Allocator_h.template', |
1007 | | - '<(protocol_path)/lib/Array_h.template', |
1008 | | - '<(protocol_path)/lib/Collections_h.template', |
1009 | | - '<(protocol_path)/lib/DispatcherBase_cpp.template', |
1010 | | - '<(protocol_path)/lib/DispatcherBase_h.template', |
1011 | | - '<(protocol_path)/lib/ErrorSupport_cpp.template', |
1012 | | - '<(protocol_path)/lib/ErrorSupport_h.template', |
1013 | | - '<(protocol_path)/lib/Forward_h.template', |
1014 | | - '<(protocol_path)/lib/FrontendChannel_h.template', |
1015 | | - '<(protocol_path)/lib/Maybe_h.template', |
1016 | | - '<(protocol_path)/lib/Object_cpp.template', |
1017 | | - '<(protocol_path)/lib/Object_h.template', |
1018 | | - '<(protocol_path)/lib/Parser_cpp.template', |
1019 | | - '<(protocol_path)/lib/Parser_h.template', |
1020 | | - '<(protocol_path)/lib/Protocol_cpp.template', |
1021 | | - '<(protocol_path)/lib/ValueConversions_h.template', |
1022 | | - '<(protocol_path)/lib/Values_cpp.template', |
1023 | | - '<(protocol_path)/lib/Values_h.template', |
1024 | | - '<(protocol_path)/templates/Exported_h.template', |
1025 | | - '<(protocol_path)/templates/Imported_h.template', |
1026 | | - '<(protocol_path)/templates/TypeBuilder_cpp.template', |
1027 | | - '<(protocol_path)/templates/TypeBuilder_h.template', |
1028 | | - '<(protocol_path)/CodeGenerator.py', |
1029 | | - ] |
1030 | | - }, |
1031 | | - 'targets': [ |
1032 | | - { |
1033 | | - 'target_name': 'prepare_protocol_json', |
1034 | | - 'type': 'none', |
1035 | | - 'toolsets': ['host'], |
1036 | | - 'copies': [ |
1037 | | - { |
1038 | | - 'files': [ |
1039 | | - '<(node_inspector_path)/node_protocol_config.json', |
1040 | | - '<(node_inspector_path)/node_protocol.pdl' |
1041 | | - ], |
1042 | | - 'destination': '<(SHARED_INTERMEDIATE_DIR)', |
1043 | | - } |
1044 | | - ], |
1045 | | - 'actions': [ |
1046 | | - { |
1047 | | - 'action_name': 'convert_node_protocol_to_json', |
1048 | | - 'inputs': [ |
1049 | | - '<(SHARED_INTERMEDIATE_DIR)/node_protocol.pdl', |
1050 | | - ], |
1051 | | - 'outputs': [ |
1052 | | - '<(SHARED_INTERMEDIATE_DIR)/node_protocol.json', |
1053 | | - ], |
1054 | | - 'action': [ |
1055 | | - 'python', |
1056 | | - 'tools/inspector_protocol/ConvertProtocolToJSON.py', |
1057 | | - '<@(_inputs)', |
1058 | | - '<@(_outputs)', |
1059 | | - ], |
1060 | | - }, |
1061 | | - ] |
1062 | | - }, |
1063 | | - { |
1064 | | - 'target_name': 'node_protocol_generated_sources', |
1065 | | - 'type': 'none', |
1066 | | - 'toolsets': ['host'], |
1067 | | - 'dependencies': ['prepare_protocol_json'], |
1068 | | - 'actions': [ |
1069 | | - { |
1070 | | - 'action_name': 'node_protocol_generated_sources', |
1071 | | - 'inputs': [ |
1072 | | - '<(SHARED_INTERMEDIATE_DIR)/node_protocol_config.json', |
1073 | | - '<(SHARED_INTERMEDIATE_DIR)/node_protocol.json', |
1074 | | - '<@(node_protocol_files)', |
1075 | | - ], |
1076 | | - 'outputs': [ |
1077 | | - '<@(node_inspector_generated_sources)', |
1078 | | - ], |
1079 | | - 'action': [ |
1080 | | - 'python', |
1081 | | - '<(protocol_path)/CodeGenerator.py', |
1082 | | - '--jinja_dir', '<@(protocol_path)/..', |
1083 | | - '--output_base', '<(SHARED_INTERMEDIATE_DIR)/src/', |
1084 | | - '--config', '<(SHARED_INTERMEDIATE_DIR)/node_protocol_config.json', |
1085 | | - ], |
1086 | | - 'message': 'Generating node protocol sources from protocol json', |
1087 | | - }, |
1088 | | - ] |
1089 | | - }, |
1090 | | - { |
1091 | | - 'target_name': 'v8_inspector_compress_protocol_json', |
1092 | | - 'type': 'none', |
1093 | | - 'toolsets': ['host'], |
1094 | | - 'copies': [ |
1095 | | - { |
1096 | | - 'destination': '<(SHARED_INTERMEDIATE_DIR)', |
1097 | | - 'files': ['deps/v8/src/inspector/js_protocol.pdl'] |
1098 | | - } |
1099 | | - ], |
1100 | | - 'actions': [ |
1101 | | - { |
1102 | | - 'action_name': 'v8_inspector_convert_protocol_to_json', |
1103 | | - 'inputs': [ |
1104 | | - '<(SHARED_INTERMEDIATE_DIR)/js_protocol.pdl', |
1105 | | - ], |
1106 | | - 'outputs': [ |
1107 | | - '<(SHARED_INTERMEDIATE_DIR)/js_protocol.json', |
1108 | | - ], |
1109 | | - 'action': [ |
1110 | | - 'python', |
1111 | | - 'tools/inspector_protocol/ConvertProtocolToJSON.py', |
1112 | | - '<@(_inputs)', |
1113 | | - '<@(_outputs)', |
1114 | | - ], |
1115 | | - }, |
1116 | | - { |
1117 | | - 'action_name': 'concatenate_protocols', |
1118 | | - 'inputs': [ |
1119 | | - '<(SHARED_INTERMEDIATE_DIR)/js_protocol.json', |
1120 | | - '<(SHARED_INTERMEDIATE_DIR)/node_protocol.json', |
1121 | | - ], |
1122 | | - 'outputs': [ |
1123 | | - '<(SHARED_INTERMEDIATE_DIR)/concatenated_protocol.json', |
1124 | | - ], |
1125 | | - 'action': [ |
1126 | | - 'python', |
1127 | | - 'tools/inspector_protocol/ConcatenateProtocols.py', |
1128 | | - '<@(_inputs)', |
1129 | | - '<@(_outputs)', |
1130 | | - ], |
1131 | | - }, |
1132 | | - { |
1133 | | - 'action_name': 'v8_inspector_compress_protocol_json', |
1134 | | - 'process_outputs_as_sources': 1, |
1135 | | - 'inputs': [ |
1136 | | - '<(SHARED_INTERMEDIATE_DIR)/concatenated_protocol.json', |
1137 | | - ], |
1138 | | - 'outputs': [ |
1139 | | - '<(SHARED_INTERMEDIATE_DIR)/v8_inspector_protocol_json.h', |
1140 | | - ], |
1141 | | - 'action': [ |
1142 | | - 'python', |
1143 | | - 'tools/compress_json.py', |
1144 | | - '<@(_inputs)', |
1145 | | - '<@(_outputs)', |
1146 | | - ], |
1147 | | - }, |
1148 | | - ], |
1149 | | - }, |
1150 | | - ] |
1151 | | - }] |
1152 | 959 | ], # end conditions block |
1153 | 960 | } |
0 commit comments