blob: 3375d021d77eca004b9f5d882d04e8c87756c81c [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 \
Zach Johnson72f308e2014-09-22 22:14:04 -070031 src/module.c \
Chris Manton5c262242014-10-14 22:00:32 -070032 src/property.c \
Sharvil Nanavatid1e05de2014-08-27 19:03:03 -070033 src/uuid.c
Sharvil Nanavati8a6a89f2014-08-20 09:39:25 -070034
35LOCAL_CFLAGS := -std=c99 $(bdroid_CFLAGS)
36LOCAL_MODULE := libbtcore
37LOCAL_MODULE_TAGS := optional
38LOCAL_SHARED_LIBRARIES := libc liblog
39LOCAL_MODULE_CLASS := STATIC_LIBRARIES
40
41include $(BUILD_STATIC_LIBRARY)
Chris Manton0116e182014-11-11 13:15:13 -080042
43#####################################################
44
45include $(CLEAR_VARS)
46
47LOCAL_C_INCLUDES := \
48 $(LOCAL_PATH)/include \
49 $(LOCAL_PATH)/..
50
51LOCAL_SRC_FILES := \
Zach Johnson05d03662014-11-05 14:29:31 -080052 ./test/bdaddr_test.cpp \
Chris Manton0116e182014-11-11 13:15:13 -080053 ./test/counter_test.cpp \
Chris Manton3623bc82014-11-11 12:14:52 -080054 ./test/uuid_test.cpp \
Chris Manton0116e182014-11-11 13:15:13 -080055 ../osi/test/AllocationTestHarness.cpp
56
57LOCAL_CFLAGS := -Wall -Werror -Werror=unused-variable
Sharvil Nanavati61683572014-12-29 00:56:46 -080058LOCAL_MODULE := net_test_btcore
Chris Manton0116e182014-11-11 13:15:13 -080059LOCAL_MODULE_TAGS := tests
60LOCAL_SHARED_LIBRARIES := liblog
61LOCAL_STATIC_LIBRARIES := libbtcore libosi
62
63include $(BUILD_NATIVE_TEST)