17d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein# Copyright 2011, The Android Open Source Project 27d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein# 37d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein# Licensed under the Apache License, Version 2.0 (the "License"); 47d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein# you may not use this file except in compliance with the License. 57d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein# You may obtain a copy of the License at 67d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein# 77d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein# http://www.apache.org/licenses/LICENSE-2.0 87d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein# 97d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein# Unless required by applicable law or agreed to in writing, software 107d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein# distributed under the License is distributed on an "AS IS" BASIS, 117d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 127d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein# See the License for the specific language governing permissions and 137d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein# limitations under the License. 147d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein 157d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew SappersteinLOCAL_PATH:= $(call my-dir) 167d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein 177d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein#Include res dir from photoviewer 187d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sappersteinphoto_dir := ..//res 197d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sappersteinres_dirs := $(photo_dir) res 207d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein 217d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein################################################## 227d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein# Build APK 237d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sappersteininclude $(CLEAR_VARS) 247d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein 257d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sappersteinsrc_dirs := src 26599730cf777402d183afa5b648ea1c8c1fab8118Ying WangLOCAL_PACKAGE_NAME := LibPhotoViewerSample 277d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein 28599730cf777402d183afa5b648ea1c8c1fab8118Ying WangLOCAL_STATIC_JAVA_LIBRARIES += libphotoviewer 297d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew SappersteinLOCAL_STATIC_JAVA_LIBRARIES += android-common 307d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew SappersteinLOCAL_STATIC_JAVA_LIBRARIES += android-support-v4 317d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew SappersteinLOCAL_STATIC_JAVA_LIBRARIES += android-support-v13 327d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein 337d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew SappersteinLOCAL_SDK_VERSION := 16 347d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein 357d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew SappersteinLOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs)) \ 367d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein $(call all-logtags-files-under, $(src_dirs)) 377d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew SappersteinLOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) $(LOCAL_PATH)/res 387d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew SappersteinLOCAL_AAPT_FLAGS := --auto-add-overlay 397d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew SappersteinLOCAL_AAPT_FLAGS += --extra-packages com.android.ex.photo 407d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein 417d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sappersteininclude $(BUILD_PACKAGE) 427d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein 437d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein 447d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein################################################## 457d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein# Build all sub-directories 467d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sapperstein 477d13b0b858f6d2bce1a1f0088ab6739033087d19Andrew Sappersteininclude $(call all-makefiles-under,$(LOCAL_PATH)) 48