summaryrefslogtreecommitdiff
path: root/librilutils/Android.bp
blob: 00df7ceee4bb235455125d6fef67f7cd193d6f5d (plain)
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
// Copyright 2013 The Android Open Source Project

package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "hardware_ril_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["hardware_ril_license"],
}

cc_library {
    name: "librilutils",

    srcs: [
        "librilutils.c",
        "record_stream.c",
        "proto/sap-api.proto",
    ],

    header_libs: ["ril_headers"],
    export_header_lib_headers: ["ril_headers"],

    cflags: [
        "-Wall",
        "-Wextra",
        "-Werror",
        "-DPB_FIELD_32BIT"
    ],

    proto: {
        type: "nanopb-c-enable_malloc-32bit",
        export_proto_headers: true,
    },

    vendor: true,
}

// Create java protobuf code
java_library {
    name: "sap-api-java-static",
    srcs: ["proto/sap-api.proto"],
    proto: {
        type: "micro",
    },
    min_sdk_version: "30",
    sdk_version: "current",
    apex_available: [
        "//apex_available:platform",
        "com.android.bluetooth",
    ],
}