• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2019, 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: [
17        "system_incremental_delivery_libdataloader_license",
18    ],
19}
20
21// Added automatically by a large-scale-change
22// See: http://go/android-license-faq
23license {
24    name: "system_incremental_delivery_libdataloader_license",
25    visibility: [":__subpackages__"],
26    license_kinds: [
27        "SPDX-license-identifier-Apache-2.0",
28    ],
29    license_text: [
30        "NOTICE",
31    ],
32}
33
34cc_defaults {
35    name: "libdataloader_defaults",
36    cpp_std: "c++2a",
37    cflags: ["-Werror", "-Wall", "-Wextra", "-Wno-unused-parameter", "-D_FILE_OFFSET_BITS=64"],
38    defaults: ["linux_bionic_supported"],
39    export_include_dirs: ["include/"],
40    local_include_dirs: ["include/"],
41    shared_libs: [
42        "libbase",
43        "libincfs",
44        "liblog",
45        "libutils",
46    ],
47    static_libs: [
48        "libnativehelper_lazy",
49    ],
50    tidy: true,
51    tidy_checks: [
52        "android-*",
53        "cert-*",
54        "clang-analyzer-security*",
55        "-cert-err34-c",
56        "clang-analyzer-security*",
57        // Disabling due to many unavoidable warnings from POSIX API usage.
58        "-google-runtime-int",
59        "-google-explicit-constructor",
60        // do not define variadic C function - JNI headers
61        "-cert-dcl50-cpp",
62        // operator=() does not handle self-assignment properly - all protobuf-generated classes
63        "-cert-oop54-cpp",
64    ],
65}
66
67cc_library {
68    name: "libdataloader",
69    defaults: ["libdataloader_defaults"],
70    srcs: [
71        "dataloader_ndk.c",
72        "DataLoaderConnector.cpp",
73        "ManagedDataLoader.cpp",
74    ],
75}
76
77cc_library_headers {
78    name: "libdataloader_headers",
79    export_include_dirs: ["include/"],
80}
81