11cb0ef41Sopenharmony_ci# Copyright 2016 the V8 project authors. All rights reserved. 21cb0ef41Sopenharmony_ci# Use of this source code is governed by a BSD-style license that can be 31cb0ef41Sopenharmony_ci# found in the LICENSE file. 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ciimport("../../gni/v8.gni") 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ci_inspector_protocol = v8_path_prefix + "/third_party/inspector_protocol" 81cb0ef41Sopenharmony_ciimport("$_inspector_protocol/inspector_protocol.gni") 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ci_protocol_generated = [ 111cb0ef41Sopenharmony_ci "protocol/Forward.h", 121cb0ef41Sopenharmony_ci "protocol/Protocol.cpp", 131cb0ef41Sopenharmony_ci "protocol/Protocol.h", 141cb0ef41Sopenharmony_ci "protocol/Console.cpp", 151cb0ef41Sopenharmony_ci "protocol/Console.h", 161cb0ef41Sopenharmony_ci "protocol/Debugger.cpp", 171cb0ef41Sopenharmony_ci "protocol/Debugger.h", 181cb0ef41Sopenharmony_ci "protocol/HeapProfiler.cpp", 191cb0ef41Sopenharmony_ci "protocol/HeapProfiler.h", 201cb0ef41Sopenharmony_ci "protocol/Profiler.cpp", 211cb0ef41Sopenharmony_ci "protocol/Profiler.h", 221cb0ef41Sopenharmony_ci "protocol/Runtime.cpp", 231cb0ef41Sopenharmony_ci "protocol/Runtime.h", 241cb0ef41Sopenharmony_ci "protocol/Schema.cpp", 251cb0ef41Sopenharmony_ci "protocol/Schema.h", 261cb0ef41Sopenharmony_ci "../../include/inspector/Debugger.h", 271cb0ef41Sopenharmony_ci "../../include/inspector/Runtime.h", 281cb0ef41Sopenharmony_ci "../../include/inspector/Schema.h", 291cb0ef41Sopenharmony_ci] 301cb0ef41Sopenharmony_ci 311cb0ef41Sopenharmony_ciaction("protocol_compatibility") { 321cb0ef41Sopenharmony_ci visibility = [ ":*" ] # Only targets in this file can depend on this. 331cb0ef41Sopenharmony_ci script = "$_inspector_protocol/check_protocol_compatibility.py" 341cb0ef41Sopenharmony_ci inputs = [ v8_inspector_js_protocol ] 351cb0ef41Sopenharmony_ci _stamp = "$target_gen_dir/js_protocol.stamp" 361cb0ef41Sopenharmony_ci outputs = [ _stamp ] 371cb0ef41Sopenharmony_ci args = [ 381cb0ef41Sopenharmony_ci "--stamp", 391cb0ef41Sopenharmony_ci rebase_path(_stamp, root_build_dir), 401cb0ef41Sopenharmony_ci rebase_path(v8_inspector_js_protocol, root_build_dir), 411cb0ef41Sopenharmony_ci ] 421cb0ef41Sopenharmony_ci} 431cb0ef41Sopenharmony_ci 441cb0ef41Sopenharmony_ciinspector_protocol_generate("protocol_generated_sources") { 451cb0ef41Sopenharmony_ci visibility = [ ":*" ] # Only targets in this file can depend on this. 461cb0ef41Sopenharmony_ci deps = [ ":protocol_compatibility" ] 471cb0ef41Sopenharmony_ci 481cb0ef41Sopenharmony_ci inspector_protocol_dir = _inspector_protocol 491cb0ef41Sopenharmony_ci out_dir = target_gen_dir 501cb0ef41Sopenharmony_ci _protocol_path = rebase_path(v8_inspector_js_protocol, root_build_dir) 511cb0ef41Sopenharmony_ci config_values = [ "protocol.path=$_protocol_path" ] 521cb0ef41Sopenharmony_ci config_file = v8_path_prefix + "/src/inspector/inspector_protocol_config.json" 531cb0ef41Sopenharmony_ci inputs = [ 541cb0ef41Sopenharmony_ci v8_inspector_js_protocol, 551cb0ef41Sopenharmony_ci config_file, 561cb0ef41Sopenharmony_ci ] 571cb0ef41Sopenharmony_ci outputs = _protocol_generated 581cb0ef41Sopenharmony_ci} 591cb0ef41Sopenharmony_ci 601cb0ef41Sopenharmony_ciconfig("inspector_config") { 611cb0ef41Sopenharmony_ci visibility = [ ":*" ] # Only targets in this file can depend on this. 621cb0ef41Sopenharmony_ci 631cb0ef41Sopenharmony_ci configs = [ "../../:internal_config" ] 641cb0ef41Sopenharmony_ci include_dirs = [ "../../include" ] 651cb0ef41Sopenharmony_ci} 661cb0ef41Sopenharmony_ci 671cb0ef41Sopenharmony_civ8_header_set("inspector_test_headers") { 681cb0ef41Sopenharmony_ci configs = [ ":inspector_config" ] 691cb0ef41Sopenharmony_ci 701cb0ef41Sopenharmony_ci public_deps = [ "../..:v8_headers" ] 711cb0ef41Sopenharmony_ci 721cb0ef41Sopenharmony_ci sources = [ "test-interface.h" ] 731cb0ef41Sopenharmony_ci} 741cb0ef41Sopenharmony_ci 751cb0ef41Sopenharmony_civ8_source_set("inspector_string_conversions") { 761cb0ef41Sopenharmony_ci sources = [ 771cb0ef41Sopenharmony_ci "v8-string-conversions.cc", 781cb0ef41Sopenharmony_ci "v8-string-conversions.h", 791cb0ef41Sopenharmony_ci ] 801cb0ef41Sopenharmony_ci configs = [ "../..:internal_config_base" ] 811cb0ef41Sopenharmony_ci deps = [ "../..:v8_libbase" ] 821cb0ef41Sopenharmony_ci} 831cb0ef41Sopenharmony_ci 841cb0ef41Sopenharmony_civ8_source_set("inspector") { 851cb0ef41Sopenharmony_ci deps = [ 861cb0ef41Sopenharmony_ci ":inspector_string_conversions", 871cb0ef41Sopenharmony_ci "../..:v8_tracing", 881cb0ef41Sopenharmony_ci "../..:v8_version", 891cb0ef41Sopenharmony_ci "../../third_party/inspector_protocol:crdtp", 901cb0ef41Sopenharmony_ci ] 911cb0ef41Sopenharmony_ci 921cb0ef41Sopenharmony_ci public_deps = [ 931cb0ef41Sopenharmony_ci ":inspector_test_headers", 941cb0ef41Sopenharmony_ci ":protocol_generated_sources", 951cb0ef41Sopenharmony_ci "../../:v8_libbase", 961cb0ef41Sopenharmony_ci ] 971cb0ef41Sopenharmony_ci 981cb0ef41Sopenharmony_ci configs = [ ":inspector_config" ] 991cb0ef41Sopenharmony_ci 1001cb0ef41Sopenharmony_ci sources = rebase_path(_protocol_generated, ".", target_gen_dir) 1011cb0ef41Sopenharmony_ci sources += [ 1021cb0ef41Sopenharmony_ci "../../include/v8-inspector-protocol.h", 1031cb0ef41Sopenharmony_ci "../../include/v8-inspector.h", 1041cb0ef41Sopenharmony_ci ] 1051cb0ef41Sopenharmony_ci sources += [ 1061cb0ef41Sopenharmony_ci "custom-preview.cc", 1071cb0ef41Sopenharmony_ci "custom-preview.h", 1081cb0ef41Sopenharmony_ci "injected-script.cc", 1091cb0ef41Sopenharmony_ci "injected-script.h", 1101cb0ef41Sopenharmony_ci "inspected-context.cc", 1111cb0ef41Sopenharmony_ci "inspected-context.h", 1121cb0ef41Sopenharmony_ci "remote-object-id.cc", 1131cb0ef41Sopenharmony_ci "remote-object-id.h", 1141cb0ef41Sopenharmony_ci "search-util.cc", 1151cb0ef41Sopenharmony_ci "search-util.h", 1161cb0ef41Sopenharmony_ci "string-16.cc", 1171cb0ef41Sopenharmony_ci "string-16.h", 1181cb0ef41Sopenharmony_ci "string-util.cc", 1191cb0ef41Sopenharmony_ci "string-util.h", 1201cb0ef41Sopenharmony_ci "test-interface.cc", 1211cb0ef41Sopenharmony_ci "v8-console-agent-impl.cc", 1221cb0ef41Sopenharmony_ci "v8-console-agent-impl.h", 1231cb0ef41Sopenharmony_ci "v8-console-message.cc", 1241cb0ef41Sopenharmony_ci "v8-console-message.h", 1251cb0ef41Sopenharmony_ci "v8-console.cc", 1261cb0ef41Sopenharmony_ci "v8-console.h", 1271cb0ef41Sopenharmony_ci "v8-debugger-agent-impl.cc", 1281cb0ef41Sopenharmony_ci "v8-debugger-agent-impl.h", 1291cb0ef41Sopenharmony_ci "v8-debugger-id.cc", 1301cb0ef41Sopenharmony_ci "v8-debugger-id.h", 1311cb0ef41Sopenharmony_ci "v8-debugger-script.cc", 1321cb0ef41Sopenharmony_ci "v8-debugger-script.h", 1331cb0ef41Sopenharmony_ci "v8-debugger.cc", 1341cb0ef41Sopenharmony_ci "v8-debugger.h", 1351cb0ef41Sopenharmony_ci "v8-heap-profiler-agent-impl.cc", 1361cb0ef41Sopenharmony_ci "v8-heap-profiler-agent-impl.h", 1371cb0ef41Sopenharmony_ci "v8-inspector-impl.cc", 1381cb0ef41Sopenharmony_ci "v8-inspector-impl.h", 1391cb0ef41Sopenharmony_ci "v8-inspector-session-impl.cc", 1401cb0ef41Sopenharmony_ci "v8-inspector-session-impl.h", 1411cb0ef41Sopenharmony_ci "v8-profiler-agent-impl.cc", 1421cb0ef41Sopenharmony_ci "v8-profiler-agent-impl.h", 1431cb0ef41Sopenharmony_ci "v8-regex.cc", 1441cb0ef41Sopenharmony_ci "v8-regex.h", 1451cb0ef41Sopenharmony_ci "v8-runtime-agent-impl.cc", 1461cb0ef41Sopenharmony_ci "v8-runtime-agent-impl.h", 1471cb0ef41Sopenharmony_ci "v8-schema-agent-impl.cc", 1481cb0ef41Sopenharmony_ci "v8-schema-agent-impl.h", 1491cb0ef41Sopenharmony_ci "v8-stack-trace-impl.cc", 1501cb0ef41Sopenharmony_ci "v8-stack-trace-impl.h", 1511cb0ef41Sopenharmony_ci "v8-value-utils.cc", 1521cb0ef41Sopenharmony_ci "v8-value-utils.h", 1531cb0ef41Sopenharmony_ci "v8-webdriver-serializer.cc", 1541cb0ef41Sopenharmony_ci "v8-webdriver-serializer.h", 1551cb0ef41Sopenharmony_ci "value-mirror.cc", 1561cb0ef41Sopenharmony_ci "value-mirror.h", 1571cb0ef41Sopenharmony_ci ] 1581cb0ef41Sopenharmony_ci} 1591cb0ef41Sopenharmony_ci 1601cb0ef41Sopenharmony_ci#Target to generate all .cc files. 1611cb0ef41Sopenharmony_cigroup("v8_generated_cc_files") { 1621cb0ef41Sopenharmony_ci testonly = true 1631cb0ef41Sopenharmony_ci 1641cb0ef41Sopenharmony_ci deps = [ ":protocol_generated_sources" ] 1651cb0ef41Sopenharmony_ci} 166