blob: 92d7751afd70f3107063b61c0e011bfd1fbaccd6 [file] [log] [blame]
Rohan Martin3d194502012-11-01 15:19:04 -06001#
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
19ifneq ($(BOARD_ANT_WIRELESS_DEVICE),)
20LOCAL_PATH := $(call my-dir)
21include $(CLEAR_VARS)
22
Khurshidff82ea42013-07-18 15:40:23 -060023BT_ON_SRC_FILES := \
24 src/com/dsi/ant/server/StateChangedReceiver.java
25
Rohan Martin3d194502012-11-01 15:19:04 -060026#
27# ANT java system service
28#
29
30LOCAL_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
Khurshidff82ea42013-07-18 15:40:23 -060035#
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
40ifeq ($(filter msm8610 msm8226 msm8974, $(TARGET_BOARD_PLATFORM)),)
41LOCAL_SRC_FILES := \
42 $(filter-out $(BT_ON_SRC_FILES), $(LOCAL_SRC_FILES))
43endif
44
Rohan Martin3d194502012-11-01 15:19:04 -060045LOCAL_REQUIRED_MODULES := libantradio
46LOCAL_PROGUARD_FLAG_FILES := proguard.flags
47LOCAL_CERTIFICATE := platform
48LOCAL_MODULE_TAGS := optional
49LOCAL_PACKAGE_NAME := AntHalService
50
51include $(BUILD_PACKAGE)
52
53endif # BOARD_ANT_WIRELESS_DEVICE defined