blob: 72afab289511c7a0bbc21d737451896092cd7225 [file] [log] [blame]
Alex Vakulenkoe4eec202017-01-27 14:41:04 -08001# Copyright (C) 2016 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 frame_time_history.cpp \
19 revision.cpp \
20 revision_path.cpp \
21 sync_util.cpp \
22
23includeFiles := \
24 $(LOCAL_PATH)/include \
25 external/eigen \
26
27sharedLibraries := \
28 libbase \
29 libcutils \
30 liblog \
31 libutils \
32 libEGL \
33 libGLESv2 \
34 libui \
35 libgui \
36 libhardware
37
38staticLibraries := \
39 libchrome \
40 libpdx_default_transport \
41
42include $(CLEAR_VARS)
43LOCAL_SRC_FILES := $(sourceFiles)
44LOCAL_C_INCLUDES := \
45 $(includeFiles) \
46
47LOCAL_CFLAGS += -DLOG_TAG=\"libdvrcommon\"
48LOCAL_CFLAGS += -DTRACE=0
49LOCAL_EXPORT_C_INCLUDE_DIRS := \
50 $(includeFiles) \
51
52LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
53LOCAL_STATIC_LIBRARIES := $(staticLibraries)
54LOCAL_MODULE := libdvrcommon
55include $(BUILD_STATIC_LIBRARY)
56
57testFiles := \
58 tests/numeric_test.cpp \
59 tests/pose_test.cpp \
60
61include $(CLEAR_VARS)
62LOCAL_MODULE := libdvrcommon_test
63LOCAL_MODULE_TAGS := optional
64
65LOCAL_SRC_FILES := \
66 $(testFiles) \
67
68LOCAL_C_INCLUDES := \
69 $(includeFiles) \
70
71LOCAL_SHARED_LIBRARIES := \
72 $(sharedLibraries) \
73
74LOCAL_STATIC_LIBRARIES := \
75 libgmock_main \
76 libgmock \
77 libgtest \
78 $(staticLibraries) \
79
80include $(BUILD_NATIVE_TEST)
81