1 # Copyright (C) 2011 The Android Open Source Project
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 FILTERFW_PATH:= $(call my-dir)
18 # for shared defintion of libfilterfw_to_document
19 include $(FILTERFW_PATH)/Docs.mk
22 # Build all native libraries
24 include $(call all-subdir-makefiles)
27 # Build Java library from filterfw core and all open-source filterpacks
30 LOCAL_PATH := $(FILTERFW_PATH)
33 LOCAL_MODULE_TAGS := optional
35 LOCAL_SRC_FILES := $(call libfilterfw_to_document,$(LOCAL_PATH))
37 LOCAL_MODULE := filterfw
39 LOCAL_JNI_SHARED_LIBRARIES := libfilterfw libfilterpack_imageproc
41 LOCAL_PROGUARD_ENABLED := disabled
43 LOCAL_NO_STANDARD_LIBRARIES := true
44 LOCAL_JAVA_LIBRARIES := core core-junit ext framework # to avoid circular dependency
46 include $(BUILD_JAVA_LIBRARY)
49 # Local droiddoc for faster libfilterfw docs testing
56 # out/target/common/docs/libfilterfw/reference/packages.html
58 # All text for proofreading (or running tools over):
59 # out/target/common/docs/libfilterfw-proofread.txt
61 # TODO list of missing javadoc, etc:
62 # out/target/common/docs/libfilterfw-docs-todo.html
65 # rm -rf out/target/common/docs/libfilterfw-timestamp && m libfilterfw-docs
68 LOCAL_PATH := $(FILTERFW_PATH)
71 LOCAL_SRC_FILES:=$(call libfilterfw_to_document,$(LOCAL_PATH))
73 # rerun doc generation without recompiling the java
74 LOCAL_JAVA_LIBRARIES:=
75 LOCAL_MODULE_CLASS:=JAVA_LIBRARIES
77 LOCAL_MODULE := libfilterfw
79 LOCAL_DROIDDOC_OPTIONS:= \
81 -title "libfilterfw" \
82 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
83 -todo ../$(LOCAL_MODULE)-docs-todo.html \
84 -hdf android.whichdoc offline
86 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
88 include $(BUILD_DROIDDOC)