1823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# Copyright (C) 2009 The Android Open Source Project 2823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# 3823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# Licensed under the Apache License, Version 2.0 (the "License"); 4823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# you may not use this file except in compliance with the License. 5823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# You may obtain a copy of the License at 6823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# 7823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# http://www.apache.org/licenses/LICENSE-2.0 8823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# 9823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# Unless required by applicable law or agreed to in writing, software 10823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# distributed under the License is distributed on an "AS IS" BASIS, 11823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# See the License for the specific language governing permissions and 13823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# limitations under the License. 14823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang 15823b6f3516076b92f78c3fc27037d24bb514e653Ying WangLOCAL_PATH := $(call my-dir) 16823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang 17823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# Note: the source code is in java/, not src/, because this code is also part of 18823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# the framework library, and build/core/pathmap.mk expects a java/ subdirectory. 19823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang 20823b6f3516076b92f78c3fc27037d24bb514e653Ying Wanginclude $(CLEAR_VARS) 21823b6f3516076b92f78c3fc27037d24bb514e653Ying WangLOCAL_MODULE := android-common 22d2d12062e69e235113ff52e1bd059b6730b986e4repo syncLOCAL_SDK_VERSION := 8 23823b6f3516076b92f78c3fc27037d24bb514e653Ying WangLOCAL_SRC_FILES := \ 24823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang $(call all-java-files-under, java) \ 25823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang $(call all-logtags-files-under, java) 26823b6f3516076b92f78c3fc27037d24bb514e653Ying Wanginclude $(BUILD_STATIC_JAVA_LIBRARY) 27823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang 28823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# Include this library in the build server's output directory 29cbb960ca7ccf450a743a315068cf60ccd95feccaYing Wang$(call dist-for-goals, droidcore, $(LOCAL_BUILT_MODULE):android-common.jar) 30823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang 31823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# Build the test package 32823b6f3516076b92f78c3fc27037d24bb514e653Ying Wang# we can't build the test for apps only build, because android.test.runner is not unbundled yet. 33823b6f3516076b92f78c3fc27037d24bb514e653Ying Wangifeq ($(TARGET_BUILD_APPS),) 34823b6f3516076b92f78c3fc27037d24bb514e653Ying Wanginclude $(call all-makefiles-under, $(LOCAL_PATH)) 35823b6f3516076b92f78c3fc27037d24bb514e653Ying Wangendif 36