Files
react-native-devtools-frontend/front_end/generated/BUILD.gn
T
Takuto Ikuta f342a5145f replace protocol.d.ts with protocol.ts
This is to make const enum in protocol.d.ts works with esbuild in
unittest.

Without this, const enum usage from protocol.d.ts is not replaced with
esbuild. So I need to make protocol.d.ts actual TypeScript file and make
it has corresponding JavaScript file with defined enums.

I also need to tweak how protocol.js is imported to make build/test pass
in both tsc and esbuild with child CL.

Bug: 1278663
DISABLE_THIRD_PARTY_CHECK=change generated/ and importing files
Change-Id: Ic5f27633c85bbfe8647636beef9b8625f33eabdd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3367593
Reviewed-by: Tim Van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
2022-01-24 01:35:02 +00:00

36 lines
799 B
Plaintext

# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("../../scripts/build/ninja/devtools_module.gni")
import("../../scripts/build/ninja/devtools_pre_built.gni")
devtools_module("generated") {
sources = [
"ARIAProperties.js",
"InspectorBackendCommands.js",
"SupportedCSSProperties.js",
"protocol.ts",
]
deps = []
visibility = [
"../../test/e2e/network:*",
"../core/protocol_client:*",
"../core/sdk:*",
"../panels/accessibility:*",
"../panels/elements:*",
]
}
devtools_pre_built("protocol") {
sources_are_release = false
sources = [
"protocol-mapping.d.ts",
"protocol-proxy-api.d.ts",
"protocol-tsconfig.json",
]
}