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