Bob Badour | c15cdd3 | 2021-08-26 12:12:57 -0700 | [diff] [blame] | 1 | package { |
Ronish Kalia | b5dd44b | 2024-02-14 14:32:32 +0000 | [diff] [blame] | 2 | default_team: "trendy_team_media_framework_audio", |
Bob Badour | c15cdd3 | 2021-08-26 12:12:57 -0700 | [diff] [blame] | 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 | |
Ytai Ben-Tsvi | cbee7d4 | 2021-06-15 00:39:31 -0700 | [diff] [blame] | 11 | cc_library { |
| 12 | name: "libheadtracking", |
| 13 | host_supported: true, |
| 14 | srcs: [ |
Ronish Kalia | b5dd44b | 2024-02-14 14:32:32 +0000 | [diff] [blame] | 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", |
Ytai Ben-Tsvi | cbee7d4 | 2021-06-15 00:39:31 -0700 | [diff] [blame] | 27 | ], |
Shunkai Yao | 59b27bc | 2022-07-22 18:42:27 +0000 | [diff] [blame] | 28 | shared_libs: [ |
| 29 | "libaudioutils", |
| 30 | "libbase", |
| 31 | ], |
Ytai Ben-Tsvi | cbee7d4 | 2021-06-15 00:39:31 -0700 | [diff] [blame] | 32 | export_include_dirs: [ |
| 33 | "include", |
| 34 | ], |
| 35 | header_libs: [ |
| 36 | "libeigen", |
| 37 | ], |
| 38 | export_header_lib_headers: [ |
| 39 | "libeigen", |
| 40 | ], |
Andy Hung | a367cb2 | 2023-01-30 11:58:44 -0800 | [diff] [blame] | 41 | cflags: [ |
| 42 | "-Wthread-safety", |
| 43 | ], |
Andy Hung | 8702c31 | 2023-01-30 11:58:44 -0800 | [diff] [blame] | 44 | product_variables: { |
| 45 | debuggable: { |
| 46 | // enable experiments only in userdebug and eng builds |
| 47 | cflags: ["-DENABLE_VERIFICATION"], |
| 48 | }, |
| 49 | }, |
Ytai Ben-Tsvi | cbee7d4 | 2021-06-15 00:39:31 -0700 | [diff] [blame] | 50 | } |
| 51 | |
Ytai Ben-Tsvi | 779d1ee | 2021-07-27 05:56:22 -0700 | [diff] [blame] | 52 | cc_library { |
| 53 | name: "libheadtracking-binding", |
| 54 | srcs: [ |
Ronish Kalia | b5dd44b | 2024-02-14 14:32:32 +0000 | [diff] [blame] | 55 | "SensorPoseProvider.cpp", |
Ytai Ben-Tsvi | 779d1ee | 2021-07-27 05:56:22 -0700 | [diff] [blame] | 56 | ], |
| 57 | shared_libs: [ |
Shunkai Yao | 59b27bc | 2022-07-22 18:42:27 +0000 | [diff] [blame] | 58 | "libbase", |
Ytai Ben-Tsvi | 779d1ee | 2021-07-27 05:56:22 -0700 | [diff] [blame] | 59 | "libheadtracking", |
Ytai Ben-Tsvi | 779d1ee | 2021-07-27 05:56:22 -0700 | [diff] [blame] | 60 | "liblog", |
| 61 | "libsensor", |
Ytai Ben-Tsvi | 9f12f17 | 2021-09-23 16:47:25 -0700 | [diff] [blame] | 62 | "libutils", |
Ytai Ben-Tsvi | 779d1ee | 2021-07-27 05:56:22 -0700 | [diff] [blame] | 63 | ], |
| 64 | export_shared_lib_headers: [ |
| 65 | "libheadtracking", |
Andy Hung | a461a00 | 2022-05-17 10:36:02 -0700 | [diff] [blame] | 66 | "libsensor", |
Ytai Ben-Tsvi | 779d1ee | 2021-07-27 05:56:22 -0700 | [diff] [blame] | 67 | ], |
| 68 | } |
| 69 | |
| 70 | cc_binary { |
| 71 | name: "SensorPoseProvider-example", |
| 72 | srcs: [ |
| 73 | "SensorPoseProvider-example.cpp", |
| 74 | ], |
| 75 | shared_libs: [ |
Ytai Ben-Tsvi | 779d1ee | 2021-07-27 05:56:22 -0700 | [diff] [blame] | 76 | "libheadtracking", |
| 77 | "libheadtracking-binding", |
| 78 | "libsensor", |
Ytai Ben-Tsvi | 879f091 | 2021-09-13 16:46:39 -0700 | [diff] [blame] | 79 | "libutils", |
Ytai Ben-Tsvi | 779d1ee | 2021-07-27 05:56:22 -0700 | [diff] [blame] | 80 | ], |
| 81 | } |
| 82 | |
Ytai Ben-Tsvi | cbee7d4 | 2021-06-15 00:39:31 -0700 | [diff] [blame] | 83 | cc_test_host { |
| 84 | name: "libheadtracking-test", |
| 85 | srcs: [ |
| 86 | "HeadTrackingProcessor-test.cpp", |
| 87 | "ModeSelector-test.cpp", |
| 88 | "Pose-test.cpp", |
Ytai Ben-Tsvi | 09ad8c9 | 2022-01-28 14:19:08 -0800 | [diff] [blame] | 89 | "PoseBias-test.cpp", |
Ytai Ben-Tsvi | cbee7d4 | 2021-06-15 00:39:31 -0700 | [diff] [blame] | 90 | "PoseDriftCompensator-test.cpp", |
Andy Hung | 8702c31 | 2023-01-30 11:58:44 -0800 | [diff] [blame] | 91 | "PosePredictor.cpp", |
Ytai Ben-Tsvi | cbee7d4 | 2021-06-15 00:39:31 -0700 | [diff] [blame] | 92 | "PoseRateLimiter-test.cpp", |
| 93 | "QuaternionUtil-test.cpp", |
| 94 | "ScreenHeadFusion-test.cpp", |
Ytai Ben-Tsvi | 44e7c3d | 2021-12-15 16:04:01 -0800 | [diff] [blame] | 95 | "StillnessDetector-test.cpp", |
Ytai Ben-Tsvi | cbee7d4 | 2021-06-15 00:39:31 -0700 | [diff] [blame] | 96 | "Twist-test.cpp", |
| 97 | ], |
| 98 | shared_libs: [ |
Shunkai Yao | 0324a39 | 2022-08-30 03:14:50 +0000 | [diff] [blame] | 99 | "libaudioutils", |
Andy Hung | 560addd | 2023-01-30 11:58:44 -0800 | [diff] [blame] | 100 | "libbase", // StringAppendF |
Ytai Ben-Tsvi | cbee7d4 | 2021-06-15 00:39:31 -0700 | [diff] [blame] | 101 | "libheadtracking", |
| 102 | ], |
| 103 | } |