1 # 2 # Copyright (C) 2009 The Android Open Source Project 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 # 16 LOCAL_PATH := $(call my-dir) 17 include $(CLEAR_VARS) 18 19 LOCAL_SRC_FILES := $(call all-subdir-java-files) 20 21 LOCAL_JAR_MANIFEST := ../etc/manifest.txt 22 LOCAL_JAVA_LIBRARIES := \ 23 chimpchat \ 24 ddmlib \ 25 jython \ 26 guavalib \ 27 jsilver \ 28 sdklib \ 29 hierarchyviewerlib \ 30 swt 31 32 LOCAL_JAVA_RESOURCE_DIRS := resources 33 34 LOCAL_MODULE := monkeyrunner 35 36 include $(BUILD_HOST_JAVA_LIBRARY) 37 38 include $(CLEAR_VARS) 39 40 MR_GEN_DOC_DIR := $(OUT_DOCS)/gen/guide/developing/tools 41 MONKEYRUNNER_GENERATED_DOC := $(MR_GEN_DOC_DIR)/monkeyrunner-api.jd 42 43 HELP_PY_PATH := $(TOP)/sdk/monkeyrunner/scripts/help.py 44 45 # Setup documentation generation so we can include the MonkeyRunner 46 # docs in the SDK. 47 $(MONKEYRUNNER_GENERATED_DOC): monkeyrunner 48 mkdir -p $(MR_GEN_DOC_DIR) 49 $(HOST_OUT)/bin/monkeyrunner $(HELP_PY_PATH) sdk-docs $< 50 51 ALL_GENERATED_DOCS += $(MONKEYRUNNER_GENERATED_DOC) 52