summaryrefslogtreecommitdiffstats
blob: 1cea4cd39912d72db8388a14543c62bcda4c1128 (plain) (blame)
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

cc_library_headers {
    name: "libnativebridge-dummy-headers",

    host_supported: true,
    export_include_dirs=["include"],
}

cc_library {
    name: "libnativebridge",

    host_supported: true,
    srcs: ["native_bridge.cc"],
    shared_libs: ["liblog"],
    clang: true,

    export_include_dirs=["include"],

    cflags: [
        "-Werror",
        "-Wall",
    ],
    cppflags: [
        "-fvisibility=protected",
    ],

    host_ldlibs: ["-ldl"],
    target: {
        android: {
            shared_libs: ["libdl"],
        },
    },
}

subdirs = ["tests"]