Rohan Martin | 3d19450 | 2012-11-01 15:19:04 -0600 | [diff] [blame] | 1 | # |
| 2 | # ANT Stack |
| 3 | # |
| 4 | # Copyright 2011 Dynastream Innovations |
| 5 | # |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | # |
| 18 | |
| 19 | ifneq ($(BOARD_ANT_WIRELESS_DEVICE),) |
| 20 | LOCAL_PATH := $(call my-dir) |
| 21 | include $(CLEAR_VARS) |
| 22 | |
Khurshid | ff82ea4 | 2013-07-18 15:40:23 -0600 | [diff] [blame^] | 23 | BT_ON_SRC_FILES := \ |
| 24 | src/com/dsi/ant/server/StateChangedReceiver.java |
| 25 | |
Rohan Martin | 3d19450 | 2012-11-01 15:19:04 -0600 | [diff] [blame] | 26 | # |
| 27 | # ANT java system service |
| 28 | # |
| 29 | |
| 30 | LOCAL_SRC_FILES := \ |
| 31 | $(call all-java-files-under, src) \ |
| 32 | src/com/dsi/ant/server/IAntHal.aidl \ |
| 33 | src/com/dsi/ant/server/IAntHalCallback.aidl |
| 34 | |
Khurshid | ff82ea4 | 2013-07-18 15:40:23 -0600 | [diff] [blame^] | 35 | # |
| 36 | # If target board is not one that requires Bluetooth to be enabled for ANT to enable, |
| 37 | # filter out files that are only needed for Bluetooth to enable when ANT is enabled. |
| 38 | # |
| 39 | |
| 40 | ifeq ($(filter msm8610 msm8226 msm8974, $(TARGET_BOARD_PLATFORM)),) |
| 41 | LOCAL_SRC_FILES := \ |
| 42 | $(filter-out $(BT_ON_SRC_FILES), $(LOCAL_SRC_FILES)) |
| 43 | endif |
| 44 | |
Rohan Martin | 3d19450 | 2012-11-01 15:19:04 -0600 | [diff] [blame] | 45 | LOCAL_REQUIRED_MODULES := libantradio |
| 46 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
| 47 | LOCAL_CERTIFICATE := platform |
| 48 | LOCAL_MODULE_TAGS := optional |
| 49 | LOCAL_PACKAGE_NAME := AntHalService |
| 50 | |
| 51 | include $(BUILD_PACKAGE) |
| 52 | |
| 53 | endif # BOARD_ANT_WIRELESS_DEVICE defined |