blob: 89abcb0c9f734cd11cf03dd124639963f3abc93c [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 \
Mathias Agopiana9347642017-02-13 16:42:28 -080035 libandroid \
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080036
37include $(CLEAR_VARS)
38LOCAL_SRC_FILES := $(sourceFiles)
39LOCAL_C_INCLUDES := $(includeFiles)
40LOCAL_EXPORT_C_INCLUDE_DIRS := $(includeFiles)
41LOCAL_STATIC_LIBRARIES := $(staticLibraries)
42LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
43LOCAL_MODULE := libsensor
44include $(BUILD_STATIC_LIBRARY)
45
46
47testFiles := \
48 tests/sensor_app_tests.cpp
49
50include $(CLEAR_VARS)
51LOCAL_MODULE := sensor_app_tests
52LOCAL_MODULE_TAGS := optional
53
54LOCAL_SRC_FILES := \
55 $(testFiles) \
56
57LOCAL_C_INCLUDES := \
58 $(includeFiles) \
59
60LOCAL_SHARED_LIBRARIES := \
61 libEGL \
62 libGLESv1_CM \
63 libGLESv2 \
64 libvulkan \
65 libsync \
66 $(sharedLibraries) \
67
68LOCAL_STATIC_LIBRARIES := \
69 libgmock_main \
70 libgmock \
71 libdisplay \
72 libeds \
73 libsensor \
74 libdvrgraphics \
75 $(staticLibraries) \
76
77include $(BUILD_NATIVE_TEST)