1# Copyright (C) 2011 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# 15 16FILTERFW_PATH:= $(call my-dir) 17 18# for shared defintion of libfilterfw_to_document 19include $(FILTERFW_PATH)/Docs.mk 20 21# 22# Build all native libraries 23# 24include $(call all-subdir-makefiles) 25 26# 27# Build Java library from filterfw core and all open-source filterpacks 28# 29 30LOCAL_PATH := $(FILTERFW_PATH) 31include $(CLEAR_VARS) 32 33LOCAL_MODULE_TAGS := optional 34 35LOCAL_SRC_FILES := $(call libfilterfw_to_document,$(LOCAL_PATH)) 36 37LOCAL_MODULE := filterfw 38 39LOCAL_JNI_SHARED_LIBRARIES := libfilterfw libfilterpack_imageproc 40 41LOCAL_PROGUARD_ENABLED := disabled 42 43LOCAL_NO_STANDARD_LIBRARIES := true 44LOCAL_JAVA_LIBRARIES := core core-junit ext framework # to avoid circular dependency 45 46include $(BUILD_JAVA_LIBRARY) 47 48# 49# Local droiddoc for faster libfilterfw docs testing 50# 51# 52# Run with: 53# m libfilterfw-docs 54# 55# Main output: 56# out/target/common/docs/libfilterfw/reference/packages.html 57# 58# All text for proofreading (or running tools over): 59# out/target/common/docs/libfilterfw-proofread.txt 60# 61# TODO list of missing javadoc, etc: 62# out/target/common/docs/libfilterfw-docs-todo.html 63# 64# Rerun: 65# rm -rf out/target/common/docs/libfilterfw-timestamp && m libfilterfw-docs 66# 67 68LOCAL_PATH := $(FILTERFW_PATH) 69include $(CLEAR_VARS) 70 71LOCAL_SRC_FILES:=$(call libfilterfw_to_document,$(LOCAL_PATH)) 72 73# rerun doc generation without recompiling the java 74LOCAL_JAVA_LIBRARIES:= 75LOCAL_MODULE_CLASS:=JAVA_LIBRARIES 76 77LOCAL_MODULE := libfilterfw 78 79LOCAL_DROIDDOC_OPTIONS:= \ 80 -offlinemode \ 81 -title "libfilterfw" \ 82 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \ 83 -todo ../$(LOCAL_MODULE)-docs-todo.html \ 84 -hdf android.whichdoc offline 85 86LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk 87 88include $(BUILD_DROIDDOC) 89