2019-05-02 20:50:38 +00:00
|
|
|
# Copyright 2019 the V8 project authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2019-11-12 09:13:48 +00:00
|
|
|
import("../../gni/v8.gni")
|
2019-05-09 04:57:27 +00:00
|
|
|
|
2019-11-22 23:00:49 +00:00
|
|
|
config("crdtp_config") {
|
|
|
|
visibility = [ "../../src/inspector:*" ]
|
|
|
|
configs = [ "../../:internal_config" ]
|
|
|
|
include_dirs = [ "../../include" ]
|
|
|
|
}
|
|
|
|
|
2019-11-12 09:13:48 +00:00
|
|
|
v8_source_set("crdtp") {
|
2019-06-28 08:30:09 +00:00
|
|
|
sources = [
|
2019-11-12 09:13:48 +00:00
|
|
|
"crdtp/cbor.cc",
|
|
|
|
"crdtp/cbor.h",
|
2020-02-06 21:27:36 +00:00
|
|
|
"crdtp/error_support.cc",
|
|
|
|
"crdtp/error_support.h",
|
2019-11-12 09:13:48 +00:00
|
|
|
"crdtp/export.h",
|
|
|
|
"crdtp/glue.h",
|
|
|
|
"crdtp/json.cc",
|
|
|
|
"crdtp/json.h",
|
|
|
|
"crdtp/parser_handler.h",
|
2019-12-05 21:41:21 +00:00
|
|
|
"crdtp/serializable.cc",
|
|
|
|
"crdtp/serializable.h",
|
2019-12-13 08:42:31 +00:00
|
|
|
"crdtp/serializer_traits.h",
|
2019-11-12 09:13:48 +00:00
|
|
|
"crdtp/span.h",
|
|
|
|
"crdtp/status.cc",
|
|
|
|
"crdtp/status.h",
|
|
|
|
]
|
2019-11-22 23:00:49 +00:00
|
|
|
configs = [ ":crdtp_config" ]
|
2020-02-06 21:27:36 +00:00
|
|
|
deps = [ ":crdtp_platform" ]
|
2019-06-28 08:30:09 +00:00
|
|
|
}
|
|
|
|
|
2019-11-22 23:00:49 +00:00
|
|
|
# A small adapter library which only :crdtp may depend on.
|
|
|
|
v8_source_set("crdtp_platform") {
|
|
|
|
visibility = [ ":crdtp" ]
|
|
|
|
sources = [
|
|
|
|
"crdtp/json_platform.h",
|
|
|
|
"crdtp/json_platform_v8.cc",
|
|
|
|
]
|
2020-02-06 21:27:36 +00:00
|
|
|
public_deps = [ "../..:v8_libbase" ]
|
2019-11-22 23:00:49 +00:00
|
|
|
configs = [ ":crdtp_config" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
# These tests are linked into test/unittests.
|
2019-11-12 09:13:48 +00:00
|
|
|
v8_source_set("crdtp_test") {
|
2019-06-28 08:30:09 +00:00
|
|
|
sources = [
|
2019-11-12 09:13:48 +00:00
|
|
|
"crdtp/cbor_test.cc",
|
2020-02-06 21:27:36 +00:00
|
|
|
"crdtp/error_support_test.cc",
|
2019-11-12 09:13:48 +00:00
|
|
|
"crdtp/glue_test.cc",
|
|
|
|
"crdtp/json_test.cc",
|
2019-12-05 21:41:21 +00:00
|
|
|
"crdtp/serializable_test.cc",
|
2019-12-13 08:42:31 +00:00
|
|
|
"crdtp/serializer_traits_test.cc",
|
2019-11-12 09:13:48 +00:00
|
|
|
"crdtp/span_test.cc",
|
|
|
|
"crdtp/status_test.cc",
|
2020-01-17 19:32:39 +00:00
|
|
|
"crdtp/status_test_support.cc",
|
|
|
|
"crdtp/status_test_support.h",
|
2019-06-28 08:30:09 +00:00
|
|
|
]
|
2019-11-22 23:00:49 +00:00
|
|
|
configs = [ ":crdtp_config" ]
|
2020-02-06 21:27:36 +00:00
|
|
|
deps = [ ":crdtp_test_platform" ]
|
2019-11-22 23:00:49 +00:00
|
|
|
testonly = true
|
|
|
|
}
|
|
|
|
|
|
|
|
# A small adapter library which only :crdtp_test may depend on.
|
|
|
|
v8_source_set("crdtp_test_platform") {
|
|
|
|
sources = [
|
|
|
|
"crdtp/test_platform.h",
|
|
|
|
"crdtp/test_platform_v8.cc",
|
|
|
|
]
|
|
|
|
configs = [ ":crdtp_config" ]
|
|
|
|
public_deps = [
|
2019-11-12 09:13:48 +00:00
|
|
|
":crdtp",
|
2019-06-28 08:30:09 +00:00
|
|
|
"../..:v8_libbase",
|
|
|
|
"../../src/inspector:inspector_string_conversions",
|
|
|
|
"//testing/gmock",
|
|
|
|
"//testing/gtest",
|
|
|
|
]
|
2019-11-22 23:00:49 +00:00
|
|
|
testonly = true
|
2019-06-28 08:30:09 +00:00
|
|
|
}
|