• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "frameworks_av_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_av_license"],
8}
9
10cc_library {
11    name: "libheadtracking",
12    host_supported: true,
13    srcs: [
14      "HeadTrackingProcessor.cpp",
15      "ModeSelector.cpp",
16      "Pose.cpp",
17      "PoseBias.cpp",
18      "PoseDriftCompensator.cpp",
19      "PosePredictor.cpp",
20      "PoseRateLimiter.cpp",
21      "QuaternionUtil.cpp",
22      "ScreenHeadFusion.cpp",
23      "StillnessDetector.cpp",
24      "Twist.cpp",
25      "VectorRecorder.cpp",
26    ],
27    shared_libs: [
28        "libaudioutils",
29        "libbase",
30    ],
31    export_include_dirs: [
32        "include",
33    ],
34    header_libs: [
35        "libeigen",
36    ],
37    export_header_lib_headers: [
38        "libeigen",
39    ],
40    cflags: [
41        "-Wthread-safety",
42    ],
43    product_variables: {
44        debuggable: {
45            // enable experiments only in userdebug and eng builds
46            cflags: ["-DENABLE_VERIFICATION"],
47        },
48    },
49}
50
51cc_library {
52    name: "libheadtracking-binding",
53    srcs: [
54      "SensorPoseProvider.cpp",
55    ],
56    shared_libs: [
57        "libbase",
58        "libheadtracking",
59        "liblog",
60        "libsensor",
61        "libutils",
62    ],
63    export_shared_lib_headers: [
64        "libheadtracking",
65        "libsensor",
66    ],
67}
68
69cc_binary {
70    name: "SensorPoseProvider-example",
71    srcs: [
72        "SensorPoseProvider-example.cpp",
73    ],
74    shared_libs: [
75        "libheadtracking",
76        "libheadtracking-binding",
77        "libsensor",
78        "libutils",
79    ],
80}
81
82cc_test_host {
83    name: "libheadtracking-test",
84    srcs: [
85        "HeadTrackingProcessor-test.cpp",
86        "ModeSelector-test.cpp",
87        "Pose-test.cpp",
88        "PoseBias-test.cpp",
89        "PoseDriftCompensator-test.cpp",
90        "PosePredictor.cpp",
91        "PoseRateLimiter-test.cpp",
92        "QuaternionUtil-test.cpp",
93        "ScreenHeadFusion-test.cpp",
94        "StillnessDetector-test.cpp",
95        "Twist-test.cpp",
96    ],
97    shared_libs: [
98        "libaudioutils",
99        "libbase", // StringAppendF
100        "libheadtracking",
101    ],
102}
103