blob: db1514dae48120fa79ed536c79cfa20018ce2c4b [file] [log] [blame]
Alex Vakulenkoe4eec202017-01-27 14:41:04 -08001# Copyright (C) 2015 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
15LOCAL_PATH := $(call my-dir)
16
17sourceFiles := \
18 pose_client.cpp \
19 sensor_client.cpp
20
21includeFiles := \
22 $(LOCAL_PATH)/include
23
24staticLibraries := \
25 libbufferhub \
26 libchrome \
27 libdvrcommon \
28 libpdx_default_transport \
29
30sharedLibraries := \
31 libbase \
32 libcutils \
33 libhardware \
34 liblog \
35 libutils \
36 libevent
37
38include $(CLEAR_VARS)
39LOCAL_SRC_FILES := $(sourceFiles)
40LOCAL_C_INCLUDES := $(includeFiles)
41LOCAL_EXPORT_C_INCLUDE_DIRS := $(includeFiles)
42LOCAL_STATIC_LIBRARIES := $(staticLibraries)
43LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
44LOCAL_MODULE := libsensor
45include $(BUILD_STATIC_LIBRARY)
46
47
48testFiles := \
49 tests/sensor_app_tests.cpp
50
51include $(CLEAR_VARS)
52LOCAL_MODULE := sensor_app_tests
53LOCAL_MODULE_TAGS := optional
54
55LOCAL_SRC_FILES := \
56 $(testFiles) \
57
58LOCAL_C_INCLUDES := \
59 $(includeFiles) \
60
61LOCAL_SHARED_LIBRARIES := \
62 libEGL \
63 libGLESv1_CM \
64 libGLESv2 \
65 libvulkan \
66 libsync \
67 $(sharedLibraries) \
68
69LOCAL_STATIC_LIBRARIES := \
70 libgmock_main \
71 libgmock \
72 libdisplay \
73 libeds \
74 libsensor \
75 libdvrgraphics \
76 $(staticLibraries) \
77
78include $(BUILD_NATIVE_TEST)