blob: 9bede99995603ede91bd3a06a7451fe5eca91254 [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
Kevin Cheng521a6f42017-03-23 11:09:58 -070025-include tools/tradefederation/core/error_prone_rules.mk
Guang Zhuc5637f72011-07-24 13:15:24 -070026
Brett Chabot0aebe552010-09-13 14:26:46 -070027LOCAL_MODULE := tradefed-tests
Brett Chabot36d4f872010-09-15 18:28:27 -070028LOCAL_MODULE_TAGS := optional
Julien Desprezc2f38992018-10-31 11:57:23 -070029LOCAL_STATIC_JAVA_LIBRARIES := easymock objenesis-host mockito-host truth-prebuilt-jar
Michael Rosenfeldf462a502016-11-29 17:22:02 -080030LOCAL_JAVA_LIBRARIES := tradefed host-libprotobuf-java-full
Brett Chabotf72f44c2010-01-27 11:09:46 -080031
Julien Desprezaf73ee42015-12-11 14:03:29 +000032LOCAL_JAR_MANIFEST := MANIFEST.mf
33
Brett Chabotf72f44c2010-01-27 11:09:46 -080034include $(BUILD_HOST_JAVA_LIBRARY)
Brett Chabotccdf3272010-02-27 18:59:03 -080035
Brett Chabot4bd67d52011-02-07 11:54:37 -080036# makefile rules to copy jars to HOST_OUT/tradefed
37# so tradefed.sh can automatically add to classpath
38
39DEST_JAR := $(HOST_OUT)/tradefed/$(LOCAL_MODULE).jar
40$(DEST_JAR): $(LOCAL_BUILT_MODULE)
41 $(copy-file-to-new-target)
42
43# this dependency ensure the above rule will be executed if module is built
44$(LOCAL_INSTALLED_MODULE) : $(DEST_JAR)
45
Brett Chabotccdf3272010-02-27 18:59:03 -080046# Build all sub-directories
47include $(call all-makefiles-under,$(LOCAL_PATH))