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