blob: 8c7ad43bd124bb1f1bba59bee66a0faab4880ee6 [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 \
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080026 libdvrcommon \
27 libpdx_default_transport \
28
29sharedLibraries := \
30 libbase \
31 libcutils \
32 libhardware \
33 liblog \
34 libutils \
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080035
36include $(CLEAR_VARS)
37LOCAL_SRC_FILES := $(sourceFiles)
38LOCAL_C_INCLUDES := $(includeFiles)
39LOCAL_EXPORT_C_INCLUDE_DIRS := $(includeFiles)
40LOCAL_STATIC_LIBRARIES := $(staticLibraries)
41LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
42LOCAL_MODULE := libsensor
43include $(BUILD_STATIC_LIBRARY)
44
45
46testFiles := \
47 tests/sensor_app_tests.cpp
48
49include $(CLEAR_VARS)
50LOCAL_MODULE := sensor_app_tests
51LOCAL_MODULE_TAGS := optional
52
53LOCAL_SRC_FILES := \
54 $(testFiles) \
55
56LOCAL_C_INCLUDES := \
57 $(includeFiles) \
58
59LOCAL_SHARED_LIBRARIES := \
60 libEGL \
61 libGLESv1_CM \
62 libGLESv2 \
63 libvulkan \
64 libsync \
65 $(sharedLibraries) \
66
67LOCAL_STATIC_LIBRARIES := \
68 libgmock_main \
69 libgmock \
70 libdisplay \
71 libeds \
72 libsensor \
73 libdvrgraphics \
74 $(staticLibraries) \
75
76include $(BUILD_NATIVE_TEST)