Skip to content

Commit 6b51763

Browse files
committed
Added license header generation to tool/generate_symbols_table.dart
1 parent 811fefd commit 6b51763

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

tool/generate_symbols_table.dart

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,22 @@ Future<void> main() async {
3434
// Generate src/symbols.generated.c
3535
print(' - Writing src/symbols.generated.c');
3636
await File.fromUri(rootUri.resolve('src/symbols.generated.c')).writeAsString([
37+
'/*',
38+
' * Copyright 2020 Google LLC',
39+
' *',
40+
' * Licensed under the Apache License, Version 2.0 (the "License");',
41+
' * you may not use this file except in compliance with the License.',
42+
' * You may obtain a copy of the License at',
43+
' *',
44+
' * http://www.apache.org/licenses/LICENSE-2.0',
45+
' *',
46+
' * Unless required by applicable law or agreed to in writing, software',
47+
' * distributed under the License is distributed on an "AS IS" BASIS,',
48+
' * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.',
49+
' * See the License for the specific language governing permissions and',
50+
' * limitations under the License.',
51+
' */',
52+
'',
3753
'// **GENERATED FILE DO NOT MODIFY**',
3854
'//',
3955
'// This file is generated from `src/symbols.yaml` using:',
@@ -51,6 +67,20 @@ Future<void> main() async {
5167
print(' - Writing lib/src/boringssl/lookup/symbols.generated.dart');
5268
final generatedDart = 'lib/src/boringssl/lookup/symbols.generated.dart';
5369
await File.fromUri(rootUri.resolve(generatedDart)).writeAsString([
70+
'// Copyright 2020 Google LLC',
71+
'//',
72+
'// Licensed under the Apache License, Version 2.0 (the "License");',
73+
'// you may not use this file except in compliance with the License.',
74+
'// You may obtain a copy of the License at',
75+
'//',
76+
'// http://www.apache.org/licenses/LICENSE-2.0',
77+
'//',
78+
'// Unless required by applicable law or agreed to in writing, software',
79+
'// distributed under the License is distributed on an "AS IS" BASIS,',
80+
'// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.',
81+
'// See the License for the specific language governing permissions and',
82+
'// limitations under the License.',
83+
'',
5484
'/// **GENERATED FILE DO NOT MODIFY**',
5585
'///',
5686
'/// This file is generated from `src/symbols.yaml` using:',
@@ -69,7 +99,7 @@ Future<void> main() async {
6999
'extension SymName on Sym {',
70100
' /// Get name of symbol in `libcrypto.so` from BoringSSL.',
71101
' String get name {',
72-
' return _SymName[this.index];',
102+
' return _SymName[index];',
73103
' }',
74104
'}',
75105
'',

0 commit comments

Comments
 (0)