summaryrefslogtreecommitdiffstats
path: root/adf
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2017-01-27 12:58:01 -0800
committerGreg Hackmann <ghackmann@google.com>2017-01-31 22:55:46 +0000
commit09f8f986a9d70dc7d6c2d22692dc24ae39dbd8d9 (patch)
treef5320468657d5c4e2f28343cdac0a89323e6b9a1 /adf
parent13c15e05d0b6f35399800902eb8ea1943172db79 (diff)
downloadsystem_core-09f8f986a9d70dc7d6c2d22692dc24ae39dbd8d9.tar.gz
system_core-09f8f986a9d70dc7d6c2d22692dc24ae39dbd8d9.tar.bz2
system_core-09f8f986a9d70dc7d6c2d22692dc24ae39dbd8d9.zip
libadf: adf_test: fix clang + kati build
kati needs us to add "tests" as a subdir of the libadf Android.bp. clang also requires an explicit definition of AdfTest::dev_id where g++ does not. Test: mmm system/core/adf/libadf Test: /data/nativetest64/adf-unit-tests/adf-unit-tests (on Nexus 9) Change-Id: I1fc371af1b5b115f088edd963a87e6647a52882b Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'adf')
-rw-r--r--adf/libadf/Android.bp2
-rw-r--r--adf/libadf/tests/adf_test.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/adf/libadf/Android.bp b/adf/libadf/Android.bp
index 2b5461e3b..1a81a49e3 100644
--- a/adf/libadf/Android.bp
+++ b/adf/libadf/Android.bp
@@ -19,3 +19,5 @@ cc_library_static {
local_include_dirs: ["include"],
export_include_dirs: ["include"],
}
+
+subdirs = ["tests"]
diff --git a/adf/libadf/tests/adf_test.cpp b/adf/libadf/tests/adf_test.cpp
index 01b2785bd..eaa93420a 100644
--- a/adf/libadf/tests/adf_test.cpp
+++ b/adf/libadf/tests/adf_test.cpp
@@ -149,11 +149,13 @@ protected:
int eng;
private:
- const static adf_id_t dev_id = 0;
+ const static adf_id_t dev_id;
const static __u32 fmt8888[];
const static size_t n_fmt8888;
};
+const adf_id_t AdfTest::dev_id = 0;
+
const __u32 AdfTest::fmt8888[] = {
DRM_FORMAT_XRGB8888,
DRM_FORMAT_XBGR8888,