aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
blob: 1373a19556f9b550472eac6f9d0f789d2ff25042 (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
53
54
55
56
57
58
59
60
61
62
// This file is generated by cargo2android.py --run --device --tests.
// Manually split host and device tests,
// and link in static libraries for device tests.
// But, device tests cannot link with both libstd.static and libslab.

rust_library_rlib {
    name: "libslab",
    host_supported: true,
    crate_name: "slab",
    srcs: ["src/lib.rs"],
    edition: "2015",
}

rust_test_host {
    name: "slab_host_tests_slab",
    crate_name: "slab",
    srcs: ["src/lib.rs"],
    test_suites: ["general-tests"],
    auto_gen_config: true,
    edition: "2015",
}

rust_test {
    name: "slab_device_tests_slab",
    crate_name: "slab",
    srcs: ["src/lib.rs"],
    test_suites: ["general-tests"],
    auto_gen_config: true,
    edition: "2015",
    rlibs: [
        "libstd.static",
        "libtest.static",
        "libterm.static",
    ],
}

rust_test_host {
    name: "slab_host_tests_slab1",
    crate_name: "slab",
    srcs: ["tests/slab.rs"],
    test_suites: ["general-tests"],
    auto_gen_config: true,
    edition: "2015",
    rlibs: [
        "libslab",
    ],
}

// rust_test {
//     name: "slab_device_tests_slab1",
//     crate_name: "slab",
//     srcs: ["tests/slab.rs"],
//     test_suites: ["general-tests"],
//     auto_gen_config: true,
//     edition: "2015",
//     rlibs: [
//         "libslab",
//         "libstd.static",
//         "libtest.static",
//         "libterm.static",
//     ],
// }