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