Chia-I Wu | fed07e8 | 2017-01-09 12:31:56 +0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2016 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
Chia-I Wu | 8cc5a15 | 2017-02-24 14:34:02 -0800 | [diff] [blame] | 17 | cc_library_static { |
| 18 | name: "libVtsHalGraphicsComposerTestUtils", |
Steven Moreland | 48c5224 | 2017-03-08 16:11:32 -0800 | [diff] [blame] | 19 | defaults: ["hidl_defaults"], |
Daniel Nicoara | d47f4a9 | 2017-05-30 15:38:30 -0400 | [diff] [blame] | 20 | srcs: [ |
| 21 | "GraphicsComposerCallback.cpp", |
| 22 | "TestCommandReader.cpp", |
| 23 | "VtsHalGraphicsComposerTestUtils.cpp", |
| 24 | ], |
| 25 | shared_libs: [ |
| 26 | "android.hardware.graphics.composer@2.1", |
| 27 | "libfmq", |
| 28 | "libsync", |
| 29 | ], |
Chia-I Wu | 8cc5a15 | 2017-02-24 14:34:02 -0800 | [diff] [blame] | 30 | static_libs: [ |
Yuexi Ma | ed2bb4e | 2017-03-10 00:44:45 -0800 | [diff] [blame] | 31 | "VtsHalHidlTargetTestBase", |
Chia-I Wu | 8cc5a15 | 2017-02-24 14:34:02 -0800 | [diff] [blame] | 32 | ], |
Courtney Goeltzenleuchter | 5ecd86a | 2018-01-12 14:00:56 -0800 | [diff] [blame^] | 33 | header_libs: [ |
| 34 | "android.hardware.graphics.composer@2.1-command-buffer", |
| 35 | ], |
Chia-I Wu | 8cc5a15 | 2017-02-24 14:34:02 -0800 | [diff] [blame] | 36 | cflags: [ |
| 37 | "-Wall", |
| 38 | "-Wextra", |
| 39 | "-Werror", |
| 40 | "-O0", |
| 41 | "-g", |
Daniel Nicoara | d47f4a9 | 2017-05-30 15:38:30 -0400 | [diff] [blame] | 42 | "-DLOG_TAG=\"GraphicsComposerTestUtils\"", |
Chia-I Wu | 8cc5a15 | 2017-02-24 14:34:02 -0800 | [diff] [blame] | 43 | ], |
| 44 | export_include_dirs: ["."], |
| 45 | } |
| 46 | |
Chia-I Wu | fed07e8 | 2017-01-09 12:31:56 +0800 | [diff] [blame] | 47 | cc_test { |
Zhuoyao Zhang | 8422f6a | 2017-02-17 18:20:58 -0800 | [diff] [blame] | 48 | name: "VtsHalGraphicsComposerV2_1TargetTest", |
Tri Vo | 1b7c335 | 2017-08-04 17:05:51 -0700 | [diff] [blame] | 49 | defaults: ["VtsHalTargetTestDefaults"], |
Zhuoyao Zhang | 8422f6a | 2017-02-17 18:20:58 -0800 | [diff] [blame] | 50 | srcs: ["VtsHalGraphicsComposerV2_1TargetTest.cpp"], |
Tri Vo | 1b7c335 | 2017-08-04 17:05:51 -0700 | [diff] [blame] | 51 | |
| 52 | // TODO(b/64437680): Assume these libs are always available on the device. |
Chia-I Wu | fed07e8 | 2017-01-09 12:31:56 +0800 | [diff] [blame] | 53 | shared_libs: [ |
Tri Vo | 1b7c335 | 2017-08-04 17:05:51 -0700 | [diff] [blame] | 54 | "libfmq", |
| 55 | "libsync", |
| 56 | ], |
| 57 | static_libs: [ |
Chia-I Wu | fed07e8 | 2017-01-09 12:31:56 +0800 | [diff] [blame] | 58 | "android.hardware.graphics.allocator@2.0", |
| 59 | "android.hardware.graphics.composer@2.1", |
| 60 | "android.hardware.graphics.mapper@2.0", |
Chia-I Wu | 8cc5a15 | 2017-02-24 14:34:02 -0800 | [diff] [blame] | 61 | "libVtsHalGraphicsComposerTestUtils", |
| 62 | "libVtsHalGraphicsMapperTestUtils", |
Tri Vo | 1b7c335 | 2017-08-04 17:05:51 -0700 | [diff] [blame] | 63 | "libnativehelper", |
Chia-I Wu | 8cc5a15 | 2017-02-24 14:34:02 -0800 | [diff] [blame] | 64 | ], |
Courtney Goeltzenleuchter | 5ecd86a | 2018-01-12 14:00:56 -0800 | [diff] [blame^] | 65 | header_libs: [ |
| 66 | "android.hardware.graphics.composer@2.1-command-buffer", |
| 67 | ], |
Chia-I Wu | fed07e8 | 2017-01-09 12:31:56 +0800 | [diff] [blame] | 68 | } |