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