Jiwen 'Steve' Cai | 64177e8 | 2017-05-08 17:07:52 -0700 | [diff] [blame] | 1 | // Copyright (C) 2017 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | |
| 16 | cc_library_headers { |
| 17 | name: "libdvr_headers", |
Jiwen 'Steve' Cai | 64177e8 | 2017-05-08 17:07:52 -0700 | [diff] [blame] | 18 | export_include_dirs: ["include"], |
Jiyong Park | a75d3d6 | 2018-04-09 12:16:30 +0900 | [diff] [blame] | 19 | vendor_available: true, |
Jiwen 'Steve' Cai | 64177e8 | 2017-05-08 17:07:52 -0700 | [diff] [blame] | 20 | } |
| 21 | |
Jiwen 'Steve' Cai | d88a050 | 2018-04-30 10:27:08 -0700 | [diff] [blame] | 22 | cc_library_headers { |
| 23 | name: "libdvr_private_headers", |
| 24 | export_include_dirs: ["."], |
| 25 | vendor_available: false, |
| 26 | } |
| 27 | |
Steven Thomas | 3be0aa6 | 2017-05-08 15:45:30 -0700 | [diff] [blame] | 28 | cflags = [ |
Jiwen 'Steve' Cai | c604e3b | 2018-04-19 11:16:49 -0700 | [diff] [blame] | 29 | "-DDVR_TRACKING_IMPLEMENTED=0", |
Steven Thomas | 3be0aa6 | 2017-05-08 15:45:30 -0700 | [diff] [blame] | 30 | "-DLOG_TAG=\"libdvr\"", |
Jiwen 'Steve' Cai | 656f406 | 2017-05-22 13:02:33 -0700 | [diff] [blame] | 31 | "-DTRACE=0", |
Chih-Hung Hsieh | e190083 | 2017-10-05 14:27:38 -0700 | [diff] [blame] | 32 | "-Wall", |
| 33 | "-Werror", |
Steven Thomas | 3be0aa6 | 2017-05-08 15:45:30 -0700 | [diff] [blame] | 34 | ] |
| 35 | |
| 36 | srcs = [ |
| 37 | "dvr_api.cpp", |
| 38 | "dvr_buffer.cpp", |
| 39 | "dvr_buffer_queue.cpp", |
Hendrik Wagenaar | bcb03d0 | 2017-05-23 14:59:08 -0700 | [diff] [blame] | 40 | "dvr_configuration_data.cpp", |
Steven Thomas | 3be0aa6 | 2017-05-08 15:45:30 -0700 | [diff] [blame] | 41 | "dvr_display_manager.cpp", |
| 42 | "dvr_hardware_composer_client.cpp", |
Corey Tabaka | feb636d | 2017-06-23 16:20:07 -0700 | [diff] [blame] | 43 | "dvr_performance.cpp", |
Marie White | 5096c65 | 2017-08-08 22:23:45 -0700 | [diff] [blame] | 44 | "dvr_pose.cpp", |
Steven Thomas | 3be0aa6 | 2017-05-08 15:45:30 -0700 | [diff] [blame] | 45 | "dvr_surface.cpp", |
Jiwen 'Steve' Cai | c604e3b | 2018-04-19 11:16:49 -0700 | [diff] [blame] | 46 | "dvr_tracking.cpp", |
Steven Thomas | 3be0aa6 | 2017-05-08 15:45:30 -0700 | [diff] [blame] | 47 | ] |
| 48 | |
| 49 | static_libs = [ |
Okan Arikan | 822b710 | 2017-05-08 13:31:34 -0700 | [diff] [blame] | 50 | "libbroadcastring", |
Steven Thomas | 3be0aa6 | 2017-05-08 15:45:30 -0700 | [diff] [blame] | 51 | "libvrsensor", |
Okan Arikan | 822b710 | 2017-05-08 13:31:34 -0700 | [diff] [blame] | 52 | "libdisplay", |
Steven Thomas | 3be0aa6 | 2017-05-08 15:45:30 -0700 | [diff] [blame] | 53 | "libvirtualtouchpadclient", |
| 54 | "libvr_hwc-impl", |
| 55 | "libvr_hwc-binder", |
| 56 | "libgrallocusage", |
Corey Tabaka | feb636d | 2017-06-23 16:20:07 -0700 | [diff] [blame] | 57 | "libperformance", |
Steven Thomas | 3be0aa6 | 2017-05-08 15:45:30 -0700 | [diff] [blame] | 58 | ] |
| 59 | |
| 60 | shared_libs = [ |
| 61 | "android.hardware.graphics.bufferqueue@1.0", |
| 62 | "android.hidl.token@1.0-utils", |
| 63 | "libbase", |
Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 64 | "libbufferhubqueue", |
Steven Thomas | 3be0aa6 | 2017-05-08 15:45:30 -0700 | [diff] [blame] | 65 | "libbinder", |
| 66 | "liblog", |
| 67 | "libcutils", |
| 68 | "libutils", |
| 69 | "libnativewindow", |
| 70 | "libgui", |
| 71 | "libui", |
Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 72 | "libpdx_default_transport", |
Steven Thomas | 3be0aa6 | 2017-05-08 15:45:30 -0700 | [diff] [blame] | 73 | ] |
| 74 | |
| 75 | cc_library_shared { |
Pat Plunkett | 6eadd17 | 2018-08-09 09:38:58 -0700 | [diff] [blame] | 76 | name: "libdvr.google", |
Jiwen 'Steve' Cai | 64177e8 | 2017-05-08 17:07:52 -0700 | [diff] [blame] | 77 | owner: "google", |
Steven Thomas | 3be0aa6 | 2017-05-08 15:45:30 -0700 | [diff] [blame] | 78 | cflags: cflags, |
Jiwen 'Steve' Cai | 64177e8 | 2017-05-08 17:07:52 -0700 | [diff] [blame] | 79 | header_libs: ["libdvr_headers"], |
| 80 | export_header_lib_headers: ["libdvr_headers"], |
Steven Thomas | 3be0aa6 | 2017-05-08 15:45:30 -0700 | [diff] [blame] | 81 | srcs: srcs, |
| 82 | static_libs: static_libs, |
| 83 | shared_libs: shared_libs, |
| 84 | version_script: "exported_apis.lds", |
| 85 | } |
Jiwen 'Steve' Cai | 64177e8 | 2017-05-08 17:07:52 -0700 | [diff] [blame] | 86 | |
Steven Thomas | 3be0aa6 | 2017-05-08 15:45:30 -0700 | [diff] [blame] | 87 | // Also build a static libdvr for linking into tests. The linker script |
| 88 | // restricting function access in the shared lib makes it inconvenient to use in |
| 89 | // test code. |
| 90 | cc_library_static { |
Pat Plunkett | 6eadd17 | 2018-08-09 09:38:58 -0700 | [diff] [blame] | 91 | name: "libdvr_static.google", |
Steven Thomas | 3be0aa6 | 2017-05-08 15:45:30 -0700 | [diff] [blame] | 92 | owner: "google", |
| 93 | cflags: cflags, |
| 94 | header_libs: ["libdvr_headers"], |
| 95 | export_header_lib_headers: ["libdvr_headers"], |
| 96 | srcs: srcs, |
| 97 | static_libs: static_libs, |
| 98 | shared_libs: shared_libs, |
Jiwen 'Steve' Cai | 64177e8 | 2017-05-08 17:07:52 -0700 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | subdirs = [ |
| 102 | "tests", |
| 103 | ] |