blob: 4863790e64cd3f4c8daf56717b6b0cd3b3f25a7e [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
Chih-Hung Hsieh4b04b8d2015-05-04 12:12:39 -070023# osi/include/atomic.h depends on gcc atomic functions
24LOCAL_CLANG := false
25
Sharvil Nanavati8a6a89f2014-08-20 09:39:25 -070026LOCAL_C_INCLUDES := \
Zach Johnson72f308e2014-09-22 22:14:04 -070027 $(LOCAL_PATH)/include \
Chris Manton55fe5dc2014-11-06 17:08:20 -080028 $(LOCAL_PATH)/../osi/include \
29 $(LOCAL_PATH)/..
Sharvil Nanavati8a6a89f2014-08-20 09:39:25 -070030
31LOCAL_SRC_FILES := \
Sharvil Nanavatid1e05de2014-08-27 19:03:03 -070032 src/bdaddr.c \
Chris Manton78a51cb2014-08-13 16:38:57 -070033 src/counter.c \
Chris Manton0bc7d272014-11-19 22:15:35 -080034 src/device_class.c \
Arman Ugurayf2d64342015-07-08 15:47:39 -070035 src/hal_util.c \
Zach Johnson72f308e2014-09-22 22:14:04 -070036 src/module.c \
Andre Eisenbachcae219f2015-05-18 09:41:06 -070037 src/osi_module.c \
Chris Manton5c262242014-10-14 22:00:32 -070038 src/property.c \
Sharvil Nanavatid1e05de2014-08-27 19:03:03 -070039 src/uuid.c
Sharvil Nanavati8a6a89f2014-08-20 09:39:25 -070040
41LOCAL_CFLAGS := -std=c99 $(bdroid_CFLAGS)
42LOCAL_MODULE := libbtcore
43LOCAL_MODULE_TAGS := optional
44LOCAL_SHARED_LIBRARIES := libc liblog
45LOCAL_MODULE_CLASS := STATIC_LIBRARIES
46
47include $(BUILD_STATIC_LIBRARY)
Chris Manton0116e18b2014-11-11 13:15:13 -080048
49#####################################################
50
51include $(CLEAR_VARS)
52
Chih-Hung Hsieh4b04b8d2015-05-04 12:12:39 -070053# osi/include/atomic.h depends on gcc atomic functions
54LOCAL_CLANG := false
55
Chris Manton0116e18b2014-11-11 13:15:13 -080056LOCAL_C_INCLUDES := \
57 $(LOCAL_PATH)/include \
58 $(LOCAL_PATH)/..
59
60LOCAL_SRC_FILES := \
Zach Johnson05d03662014-11-05 14:29:31 -080061 ./test/bdaddr_test.cpp \
Chris Manton0116e18b2014-11-11 13:15:13 -080062 ./test/counter_test.cpp \
Chris Manton0bc7d272014-11-19 22:15:35 -080063 ./test/device_class_test.cpp \
Chris Manton97c54442015-01-07 13:34:18 -080064 ./test/property_test.cpp \
Chris Manton3623bc82014-11-11 12:14:52 -080065 ./test/uuid_test.cpp \
Chris Manton0116e18b2014-11-11 13:15:13 -080066 ../osi/test/AllocationTestHarness.cpp
67
68LOCAL_CFLAGS := -Wall -Werror -Werror=unused-variable
Sharvil Nanavati61683572014-12-29 00:56:46 -080069LOCAL_MODULE := net_test_btcore
Chris Manton0bc7d272014-11-19 22:15:35 -080070
Chris Manton0116e18b2014-11-11 13:15:13 -080071LOCAL_MODULE_TAGS := tests
72LOCAL_SHARED_LIBRARIES := liblog
73LOCAL_STATIC_LIBRARIES := libbtcore libosi
74
75include $(BUILD_NATIVE_TEST)