blob: 31f17489a9c739b474ffdfa601e6fbecb7643d4e [file] [log] [blame]
Brett Chabotf72f44c2010-01-27 11:09:46 -08001# Copyright (C) 2010 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
15LOCAL_PATH := $(call my-dir)
16
17include $(CLEAR_VARS)
18
19# Only compile source java files in this lib.
20LOCAL_SRC_FILES := $(call all-java-files-under, src)
21
Brett Chabote278a5b2010-06-01 16:20:14 -070022LOCAL_JAVA_RESOURCE_DIRS := res
23
Guang Zhu040a43a2012-01-25 14:38:16 -080024LOCAL_JAVACFLAGS += -g -Xlint
Guang Zhuc5637f72011-07-24 13:15:24 -070025
Brett Chabot0aebe552010-09-13 14:26:46 -070026LOCAL_MODULE := tradefed-tests
Brett Chabot36d4f872010-09-15 18:28:27 -070027LOCAL_MODULE_TAGS := optional
Brett Chabot787f0042010-04-08 17:57:15 -070028LOCAL_STATIC_JAVA_LIBRARIES := easymock
Brett Chabot6ce689e2014-03-11 13:12:21 -070029LOCAL_JAVA_LIBRARIES := tradefed ddmlib-prebuilt
Brett Chabotf72f44c2010-01-27 11:09:46 -080030
31include $(BUILD_HOST_JAVA_LIBRARY)
Brett Chabotccdf3272010-02-27 18:59:03 -080032
Brett Chabot4bd67d52011-02-07 11:54:37 -080033# makefile rules to copy jars to HOST_OUT/tradefed
34# so tradefed.sh can automatically add to classpath
35
36DEST_JAR := $(HOST_OUT)/tradefed/$(LOCAL_MODULE).jar
37$(DEST_JAR): $(LOCAL_BUILT_MODULE)
38 $(copy-file-to-new-target)
39
40# this dependency ensure the above rule will be executed if module is built
41$(LOCAL_INSTALLED_MODULE) : $(DEST_JAR)
42
Brett Chabotccdf3272010-02-27 18:59:03 -080043# Build all sub-directories
44include $(call all-makefiles-under,$(LOCAL_PATH))