blob: 8c3e368ba1a58f56353783fcd23c6dd7ade26175 [file] [log] [blame]
Sharvil Nanavati8a6a89f2014-08-20 09:39:25 -07001 ##############################################################################
2 #
3 # Copyright (C) 2014 Google, Inc.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at:
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 ##############################################################################
18
19LOCAL_PATH := $(call my-dir)
20
21include $(CLEAR_VARS)
22
23LOCAL_C_INCLUDES := \
Zach Johnson72f308e2014-09-22 22:14:04 -070024 $(LOCAL_PATH)/include \
Chris Manton55fe5dc2014-11-06 17:08:20 -080025 $(LOCAL_PATH)/../osi/include \
26 $(LOCAL_PATH)/..
Sharvil Nanavati8a6a89f2014-08-20 09:39:25 -070027
28LOCAL_SRC_FILES := \
Sharvil Nanavatid1e05de2014-08-27 19:03:03 -070029 src/bdaddr.c \
Chris Manton78a51cb2014-08-13 16:38:57 -070030 src/counter.c \
Chris Manton0bc7d272014-11-19 22:15:35 -080031 src/device_class.c \
Zach Johnson72f308e2014-09-22 22:14:04 -070032 src/module.c \
Chris Manton5c262242014-10-14 22:00:32 -070033 src/property.c \
Sharvil Nanavatid1e05de2014-08-27 19:03:03 -070034 src/uuid.c
Sharvil Nanavati8a6a89f2014-08-20 09:39:25 -070035
36LOCAL_CFLAGS := -std=c99 $(bdroid_CFLAGS)
37LOCAL_MODULE := libbtcore
38LOCAL_MODULE_TAGS := optional
39LOCAL_SHARED_LIBRARIES := libc liblog
40LOCAL_MODULE_CLASS := STATIC_LIBRARIES
41
42include $(BUILD_STATIC_LIBRARY)
Chris Manton0116e182014-11-11 13:15:13 -080043
44#####################################################
45
46include $(CLEAR_VARS)
47
48LOCAL_C_INCLUDES := \
49 $(LOCAL_PATH)/include \
50 $(LOCAL_PATH)/..
51
52LOCAL_SRC_FILES := \
Zach Johnson05d03662014-11-05 14:29:31 -080053 ./test/bdaddr_test.cpp \
Chris Manton0116e182014-11-11 13:15:13 -080054 ./test/counter_test.cpp \
Chris Manton0bc7d272014-11-19 22:15:35 -080055 ./test/device_class_test.cpp \
Chris Manton97c54442015-01-07 13:34:18 -080056 ./test/property_test.cpp \
Chris Manton3623bc82014-11-11 12:14:52 -080057 ./test/uuid_test.cpp \
Chris Manton0116e182014-11-11 13:15:13 -080058 ../osi/test/AllocationTestHarness.cpp
59
60LOCAL_CFLAGS := -Wall -Werror -Werror=unused-variable
Sharvil Nanavati61683572014-12-29 00:56:46 -080061LOCAL_MODULE := net_test_btcore
Chris Manton0bc7d272014-11-19 22:15:35 -080062
Chris Manton0116e182014-11-11 13:15:13 -080063LOCAL_MODULE_TAGS := tests
64LOCAL_SHARED_LIBRARIES := liblog
65LOCAL_STATIC_LIBRARIES := libbtcore libosi
66
67include $(BUILD_NATIVE_TEST)