aboutsummaryrefslogtreecommitdiff
path: root/bindgen_modules.bp
blob: ec26c19dd71df050d36ea9553f04befd149601e1 (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
rust_bindgen {
    name: "libsqlite3_bindgen",
    host_supported: true,
    crate_name: "sqlite3_bindgen",
    custom_bindgen: "sqlite3_bindgen_build",
    wrapper_src: "wrapper.h",
    source_stem: "bindgen",
    cflags: ["-I external/sqlite/dist"],
    defaults: ["sqlite-defaults"],
    apex_available: [
        "//apex_available:platform",
        "//apex_available:anyapex",
    ],
}

rust_test {
    name: "libsqlite3_bindgen_test",
    srcs: [":libsqlite3_bindgen"],
    crate_name: "sqlite3_bindgen_test",
    test_suites: ["general-tests"],
    auto_gen_config: true,
    clippy_lints: "none",
    lints: "none",
}