Sharvil Nanavati | 8a6a89f | 2014-08-20 09:39:25 -0700 | [diff] [blame] | 1 | ############################################################################## |
| 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 | |
| 19 | LOCAL_PATH := $(call my-dir) |
| 20 | |
| 21 | include $(CLEAR_VARS) |
| 22 | |
Chih-Hung Hsieh | 4b04b8d | 2015-05-04 12:12:39 -0700 | [diff] [blame] | 23 | # osi/include/atomic.h depends on gcc atomic functions |
| 24 | LOCAL_CLANG := false |
| 25 | |
Sharvil Nanavati | 8a6a89f | 2014-08-20 09:39:25 -0700 | [diff] [blame] | 26 | LOCAL_C_INCLUDES := \ |
Zach Johnson | 72f308e | 2014-09-22 22:14:04 -0700 | [diff] [blame] | 27 | $(LOCAL_PATH)/include \ |
Chris Manton | 55fe5dc | 2014-11-06 17:08:20 -0800 | [diff] [blame] | 28 | $(LOCAL_PATH)/../osi/include \ |
| 29 | $(LOCAL_PATH)/.. |
Sharvil Nanavati | 8a6a89f | 2014-08-20 09:39:25 -0700 | [diff] [blame] | 30 | |
| 31 | LOCAL_SRC_FILES := \ |
Sharvil Nanavati | d1e05de | 2014-08-27 19:03:03 -0700 | [diff] [blame] | 32 | src/bdaddr.c \ |
Chris Manton | 78a51cb | 2014-08-13 16:38:57 -0700 | [diff] [blame] | 33 | src/counter.c \ |
Chris Manton | 0bc7d27 | 2014-11-19 22:15:35 -0800 | [diff] [blame] | 34 | src/device_class.c \ |
Arman Uguray | f2d6434 | 2015-07-08 15:47:39 -0700 | [diff] [blame^] | 35 | src/hal_util.c \ |
Zach Johnson | 72f308e | 2014-09-22 22:14:04 -0700 | [diff] [blame] | 36 | src/module.c \ |
Andre Eisenbach | cae219f | 2015-05-18 09:41:06 -0700 | [diff] [blame] | 37 | src/osi_module.c \ |
Chris Manton | 5c26224 | 2014-10-14 22:00:32 -0700 | [diff] [blame] | 38 | src/property.c \ |
Sharvil Nanavati | d1e05de | 2014-08-27 19:03:03 -0700 | [diff] [blame] | 39 | src/uuid.c |
Sharvil Nanavati | 8a6a89f | 2014-08-20 09:39:25 -0700 | [diff] [blame] | 40 | |
| 41 | LOCAL_CFLAGS := -std=c99 $(bdroid_CFLAGS) |
| 42 | LOCAL_MODULE := libbtcore |
| 43 | LOCAL_MODULE_TAGS := optional |
| 44 | LOCAL_SHARED_LIBRARIES := libc liblog |
| 45 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 46 | |
| 47 | include $(BUILD_STATIC_LIBRARY) |
Chris Manton | 0116e18b | 2014-11-11 13:15:13 -0800 | [diff] [blame] | 48 | |
| 49 | ##################################################### |
| 50 | |
| 51 | include $(CLEAR_VARS) |
| 52 | |
Chih-Hung Hsieh | 4b04b8d | 2015-05-04 12:12:39 -0700 | [diff] [blame] | 53 | # osi/include/atomic.h depends on gcc atomic functions |
| 54 | LOCAL_CLANG := false |
| 55 | |
Chris Manton | 0116e18b | 2014-11-11 13:15:13 -0800 | [diff] [blame] | 56 | LOCAL_C_INCLUDES := \ |
| 57 | $(LOCAL_PATH)/include \ |
| 58 | $(LOCAL_PATH)/.. |
| 59 | |
| 60 | LOCAL_SRC_FILES := \ |
Zach Johnson | 05d0366 | 2014-11-05 14:29:31 -0800 | [diff] [blame] | 61 | ./test/bdaddr_test.cpp \ |
Chris Manton | 0116e18b | 2014-11-11 13:15:13 -0800 | [diff] [blame] | 62 | ./test/counter_test.cpp \ |
Chris Manton | 0bc7d27 | 2014-11-19 22:15:35 -0800 | [diff] [blame] | 63 | ./test/device_class_test.cpp \ |
Chris Manton | 97c5444 | 2015-01-07 13:34:18 -0800 | [diff] [blame] | 64 | ./test/property_test.cpp \ |
Chris Manton | 3623bc8 | 2014-11-11 12:14:52 -0800 | [diff] [blame] | 65 | ./test/uuid_test.cpp \ |
Chris Manton | 0116e18b | 2014-11-11 13:15:13 -0800 | [diff] [blame] | 66 | ../osi/test/AllocationTestHarness.cpp |
| 67 | |
| 68 | LOCAL_CFLAGS := -Wall -Werror -Werror=unused-variable |
Sharvil Nanavati | 6168357 | 2014-12-29 00:56:46 -0800 | [diff] [blame] | 69 | LOCAL_MODULE := net_test_btcore |
Chris Manton | 0bc7d27 | 2014-11-19 22:15:35 -0800 | [diff] [blame] | 70 | |
Chris Manton | 0116e18b | 2014-11-11 13:15:13 -0800 | [diff] [blame] | 71 | LOCAL_MODULE_TAGS := tests |
| 72 | LOCAL_SHARED_LIBRARIES := liblog |
| 73 | LOCAL_STATIC_LIBRARIES := libbtcore libosi |
| 74 | |
| 75 | include $(BUILD_NATIVE_TEST) |