1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
--- a/build/config/BUILDCONFIG.gn
+++ b/build/config/BUILDCONFIG.gn
@@ -624,12 +624,6 @@ foreach(_target_type,
strict_deps = enable_strict_deps
}
- if (!defined(check_includes_strict)) {
- _current_label = get_label_info(":$target_name", "label_no_toolchain")
- check_includes_strict =
- filter_include([ _current_label ],
- CHECK_INCLUDES_STRICT_ALLOWLIST) != []
- }
if (use_libcxx_modules && is_clang) {
if (strict_deps) {
@@ -768,12 +762,6 @@ foreach(_target_type,
strict_deps = enable_strict_deps
}
- if (!defined(check_includes_strict)) {
- _current_label = get_label_info(":$target_name", "label_no_toolchain")
- check_includes_strict =
- filter_include([ _current_label ],
- CHECK_INCLUDES_STRICT_ALLOWLIST) != []
- }
if (use_libcxx_modules && is_clang) {
if (strict_deps) {
--- a/third_party/devtools-frontend/src/front_end/models/ai_assistance/skills/BUILD.gn
+++ b/third_party/devtools-frontend/src/front_end/models/ai_assistance/skills/BUILD.gn
@@ -53,7 +53,4 @@ action_foreach("_generate_skills") {
group("generate_skills") {
public_deps = [ ":_generate_skills" ]
- public_inputs =
- process_file_template(_skill_sources,
- [ "$target_gen_dir/{{source_name_part}}.skill.js" ])
}
--- a/third_party/devtools-frontend/src/scripts/build/ninja/copy.gni
+++ b/third_party/devtools-frontend/src/scripts/build/ninja/copy.gni
@@ -25,9 +25,6 @@ template("copy_to_gen") {
string_join(",", sources),
]
- # Expose ts files to dependent targets.
- public_inputs = filter_include(sources, [ "*.ts" ])
-
outputs = []
foreach(_input, sources) {
outputs += [ "$target_gen_dir/$_input" ]
--- a/third_party/devtools-frontend/src/scripts/build/ninja/devtools_pre_built.gni
+++ b/third_party/devtools-frontend/src/scripts/build/ninja/devtools_pre_built.gni
@@ -129,18 +129,8 @@ template("devtools_pre_built") {
}
}
- # Expose ${target_name}_sources group so ts_deps in devtools_entrypoint
- # can resolve source dependencies for bundling.
- _sources = []
- if (!invoker.sources_are_release) {
- _sources = invoker.sources
- }
group("${target_name}_sources") {
- public_inputs = _sources
- if (defined(invoker.inputs)) {
- public_inputs += invoker.inputs
- }
public_deps = [ ":$_gen_target_name" ]
if (defined(invoker.public_deps)) {
public_deps += invoker.public_deps
--- a/third_party/devtools-frontend/src/scripts/build/typescript/typescript.gni
+++ b/third_party/devtools-frontend/src/scripts/build/typescript/typescript.gni
@@ -229,12 +229,8 @@ template("ts_library") {
])
_has_handwritten_dts = _handwritten_dts != []
- _copied_dts_outputs = []
if (_has_handwritten_dts) {
_copy_dts_target = "${target_name}_copy_dts"
- foreach(src, _handwritten_dts) {
- _copied_dts_outputs += [ "$target_gen_dir/$src" ]
- }
copy(_copy_dts_target) {
if (defined(invoker.testonly)) {
@@ -319,9 +315,6 @@ template("ts_library") {
_ref_sources += invoker.additional_type_definitions
}
_compiled_sources = rebase_path(_ref_sources, target_gen_dir)
- if (_has_handwritten_dts) {
- _compiled_sources += rebase_path(_copied_dts_outputs, target_gen_dir)
- }
# Sub-target 2: Generate tsconfig.ref.json for downstream consumers.
# Downstream dependents point to this tsconfig.ref.json as a project
@@ -359,10 +352,6 @@ template("ts_library") {
if (defined(invoker.testonly)) {
testonly = invoker.testonly
}
- public_inputs = filter_include(_all_sources, [ "*.ts" ])
- if (defined(invoker.inputs)) {
- public_inputs += invoker.inputs
- }
public_deps = _non_ts_deps + _sources_deps
}
@@ -394,9 +383,6 @@ template("ts_library") {
inputs += invoker.inputs
}
- if (_has_handwritten_dts) {
- inputs += _copied_dts_outputs
- }
if (_test_only) {
inputs += typescript_test_types_inputs
@@ -453,8 +439,6 @@ template("ts_library") {
if (_has_handwritten_dts) {
public_deps += [ ":$_copy_dts_target" ]
}
- public_inputs = filter_include(_dts_outputs, [ "*.d.ts" ]) +
- _copied_dts_outputs + [ _tsconfig_ref_file ]
if (defined(invoker.public_deps)) {
public_deps += invoker.public_deps
}
--- a/third_party/protobuf/proto_library.gni
+++ b/third_party/protobuf/proto_library.gni
@@ -805,7 +805,6 @@ template("proto_library") {
# Targets depending on proto_library rule should be able to depend on the
# headers generated by the "${target_name}_gen" target without explicitly
# depending on ${target_name}_gen
- check_includes_strict = false
}
# Build generated javascript stubs.
|