1858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# Copyright (C) 2013 The Android Open Source Project 2858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# 3858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# Licensed under the Apache License, Version 2.0 (the "License"); 4858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# you may not use this file except in compliance with the License. 5858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# You may obtain a copy of the License at 6858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# 7858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# http://www.apache.org/licenses/LICENSE-2.0 8858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# 9858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# Unless required by applicable law or agreed to in writing, software 10858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# distributed under the License is distributed on an "AS IS" BASIS, 11858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# See the License for the specific language governing permissions and 13858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# limitations under the License. 14858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy 15858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott KennedyLOCAL_PATH:= $(call my-dir) 16858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy 17858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# Include res dir from chips 18858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedychips_dir := ../res 19f3f2ad2de15191531d907d6862a63153400a2176Jia Wei Tamlocal_res_dirs := res $(chips_dir) 20858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy 21858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy################################################## 22858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# Build APK 23858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedyinclude $(CLEAR_VARS) 24858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy 25858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedysrc_dirs := src 26a0adffe8b063f2ff527ed7cb823567ce67e3f82fScott KennedyLOCAL_PACKAGE_NAME := libChipsSample 27858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy 28fc4a5f981fb5fc00d833d45ae4a968ca339453fcScott KennedyLOCAL_STATIC_JAVA_LIBRARIES += libchips 29858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy 30858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott KennedyLOCAL_SDK_VERSION := 18 31858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy 32858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott KennedyLOCAL_SRC_FILES := $(call all-java-files-under, src) \ 33858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy $(call all-logtags-files-under, $(src_dirs)) 34f3f2ad2de15191531d907d6862a63153400a2176Jia Wei TamLOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(local_res_dirs)) 35858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott KennedyLOCAL_AAPT_FLAGS := --auto-add-overlay 36858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott KennedyLOCAL_AAPT_FLAGS += --extra-packages com.android.ex.chips 37858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy 38858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedyinclude $(BUILD_PACKAGE) 39858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy 40858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy 41858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy################################################## 42858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy# Build all sub-directories 43858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedy 44858e094f1c695aefdf6a23f522c0f16d81bd79f7Scott Kennedyinclude $(call all-makefiles-under,$(LOCAL_PATH)) 45