File: Android.bp

package info (click to toggle)
android-platform-system-tools-hidl 10.0.0%2Br36-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,936 kB
  • sloc: cpp: 21,933; yacc: 1,416; java: 1,239; lex: 496; sh: 360; python: 44; xml: 20; makefile: 12
file content (78 lines) | stat: -rw-r--r-- 3,109 bytes parent folder | download | duplicates (3)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
genrule {
    name: "hidl_hash_version_gen",
    tools: [
        "hidl-gen",
    ],
    cmd: "$(location hidl-gen) -L check " +
         "    -r test.version:system/tools/hidl/test/version_test/good" +
         "    test.version.version@1.0" +
         "    test.version.version@2.2" +
         "    test.version.version@2.3" +
         "    test.version.version@2.4" +
         "    test.version.version@2.5" +
         "    test.version.version@3.0" +
         "    test.version.version@3.1" +
         "&&" +
         "($(location hidl-gen) -L check " +
         "    -r test.version:system/tools/hidl/test/version_test/bad1" +
         "    test.version.version@2.3 2>&1 | grep \"Cannot enforce minor version\" > /dev/null)" +
         "&&" +
         "($(location hidl-gen) -L check " +
         "    -r test.version:system/tools/hidl/test/version_test/bad2" +
         "    test.version.version@2.4 2>&1 | grep \"Cannot enforce minor version\" > /dev/null)" +
         "&&" +
         "($(location hidl-gen) -L check " +
         "    -r test.version:system/tools/hidl/test/version_test/bad3" +
         "    test.version.version@2.5 2>&1 | grep \"Cannot enforce minor version\" > /dev/null)" +
         "&&" +
         "($(location hidl-gen) -L check " +
         "    -r test.version:system/tools/hidl/test/version_test/bad4" +
         "    test.version.version@2.3 2>&1 | grep \"doesn't pass minor version\" > /dev/null)" +
         "&&" +
         "($(location hidl-gen) -L check " +
         "    -r test.version:system/tools/hidl/test/version_test/bad5" +
         "    test.version.version@2.3 2>&1 | grep \"doesn't pass minor version\" > /dev/null)" +
         "&&" +
         "echo 'int main(){return 0;}' > $(genDir)/TODO_b_37575883.cpp",
    out: ["TODO_b_37575883.cpp"],

    srcs: [
        "bad1/version/1.0/IFoo.hal",
        "bad1/version/2.2/IBar.hal",
        "bad1/version/2.3/IBar.hal",
        "bad2/version/2.2/IBar.hal",
        "bad2/version/2.3/IBar.hal",
        "bad2/version/2.4/IBar.hal",
        "bad3/version/2.2/IBar.hal",
        "bad3/version/2.2/IFoo.hal",
        "bad3/version/2.3/IBar.hal",
        "bad3/version/2.4/IBar.hal",
        "bad3/version/2.4/IFoo.hal",
        "bad3/version/2.5/IBar.hal",
        "bad3/version/2.5/IFoo.hal",
        "bad4/version/1.0/IFoo.hal",
        "bad4/version/2.2/IBar.hal",
        "bad4/version/2.2/IFoo.hal",
        "bad4/version/2.3/IBaz.hal",
        "bad5/version/2.2/IFoo.hal",
        "bad5/version/2.3/IBaz.hal",
        "good/version/1.0/IFoo.hal",
        "good/version/2.2/IBar.hal",
        "good/version/2.2/IFoo.hal",
        "good/version/2.3/IBar.hal",
        "good/version/2.3/IBaz.hal",
        "good/version/2.4/IBar.hal",
        "good/version/2.4/IFoo.hal",
        "good/version/2.5/IBar.hal",
        "good/version/2.5/IFoo.hal",
        "good/version/3.0/types.hal",
        "good/version/3.1/ICanExtendTypesOnly.hal",
        "good/version/3.1/types.hal",
    ]
}

cc_test_host {
    name: "hidl_version_test",
    cflags: ["-Wall", "-Werror"],
    generated_sources: ["hidl_hash_version_gen"],
}