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", |
| 18 | owner: "google", |
| 19 | export_include_dirs: ["include"], |
| 20 | } |
| 21 | |
| 22 | cc_library_static { |
| 23 | name: "libdvr", |
| 24 | owner: "google", |
| 25 | |
| 26 | cflags: [ |
| 27 | "-fvisibility=hidden", |
| 28 | "-DLOG_TAG=\"libdvr\"", |
| 29 | "-DDVR_EXPORT=__attribute__((visibility(\"default\")))", |
| 30 | ], |
| 31 | |
| 32 | header_libs: ["libdvr_headers"], |
| 33 | export_header_lib_headers: ["libdvr_headers"], |
| 34 | |
| 35 | srcs: [ |
| 36 | "dvr_api.cpp", |
| 37 | "dvr_buffer.cpp", |
| 38 | "dvr_buffer_queue.cpp", |
| 39 | "dvr_display_manager.cpp", |
| 40 | "dvr_hardware_composer_client.cpp", |
| 41 | "dvr_surface.cpp", |
| 42 | "dvr_vsync.cpp", |
| 43 | ], |
| 44 | |
| 45 | static_libs: [ |
| 46 | "libbufferhub", |
| 47 | "libbufferhubqueue", |
| 48 | "libdisplay", |
| 49 | "libvrsensor", |
| 50 | "libvirtualtouchpadclient", |
| 51 | "libvr_hwc-impl", |
| 52 | "libvr_hwc-binder", |
| 53 | "libgrallocusage", |
| 54 | ], |
| 55 | |
| 56 | shared_libs: [ |
| 57 | "android.hardware.graphics.bufferqueue@1.0", |
| 58 | "android.hidl.token@1.0-utils", |
| 59 | "libbase", |
| 60 | "libnativewindow", |
| 61 | ], |
| 62 | |
| 63 | } |
| 64 | |
| 65 | subdirs = [ |
| 66 | "tests", |
| 67 | ] |