blob: d7e195d3762951ce2914ed7c57b4bc0fda025440 [file] [log] [blame]
Lorenzo Colitti0aab0362021-12-09 12:55:32 +09001// Copyright (C) 2021 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19cc_library_static {
20 name: "libip_checksum",
21
22 srcs: [
23 "checksum.c",
24 ],
25
26 cflags: [
27 "-Wall",
28 "-Werror",
29 ],
30
31 export_include_dirs: ["."],
32
33 // Needed because libnetutils depends on libip_checksum, and libnetutils has
34 // vendor_available = true. Making this library vendor_available does not create any maintenance
35 // burden or version skew issues because this library is only static, not dynamic, and thus is
36 // not installed on the device.
37 //
38 // TODO: delete libnetutils from the VNDK in T, and remove this.
39 vendor_available: true,
40}