• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2012 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#
15#
16
17LOCAL_PATH := $(call my-dir)
18include $(CLEAR_VARS)
19
20LOCAL_SRC_FILES := $(call all-java-files-under, src)
21
22LOCAL_MODULE := android-support-test
23
24LOCAL_MODULE_TAGS := optional
25
26LOCAL_SDK_VERSION := 8
27LOCAL_STATIC_JAVA_LIBRARIES := junit4-target
28
29include $(BUILD_STATIC_JAVA_LIBRARY)
30
31# ------------------------------------------------
32# build a version without bundled dependencies
33include $(CLEAR_VARS)
34
35LOCAL_SRC_FILES := $(call all-java-files-under, src)
36
37LOCAL_MODULE := android-support-test-nodeps
38
39LOCAL_MODULE_TAGS := optional
40
41LOCAL_SDK_VERSION := 8
42LOCAL_JAVA_LIBRARIES := junit4-target
43
44include $(BUILD_STATIC_JAVA_LIBRARY)
45
46# -----------------------------------------------
47# build a droiddoc package for integration in d.android.com
48include $(CLEAR_VARS)
49
50LOCAL_SRC_FILES := $(call all-java-files-under, src) \
51  $(call junit4_to_document, ../../../external/junit/src/org) \
52  $(call all-java-files-under, ../../../external/hamcrest/src)
53
54LOCAL_MODULE := android-support-test-docs
55LOCAL_MODULE_TAGS := optional
56LOCAL_MODULE_CLASS := JAVA_LIBRARIES
57LOCAL_JAVA_LIBRARIES := android-support-test
58LOCAL_SDK_VERSION := 8
59LOCAL_IS_HOST_MODULE := false
60LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR := build/tools/droiddoc/templates-sdk
61
62LOCAL_DROIDDOC_OPTIONS := \
63        -hdf android.whichdoc online \
64        -hdf template.showLanguageMenu true
65
66include $(BUILD_DROIDDOC)
67
68# ----------------------------------------------
69# build a offline droiddoc package
70include $(CLEAR_VARS)
71
72LOCAL_SRC_FILES := $(call all-java-files-under, src) \
73  $(call all-java-files-under, ../../../external/junit/src/org) \
74  $(call all-java-files-under, ../../../external/hamcrest/src)
75
76LOCAL_MODULE := android-support-test-offline-docs
77LOCAL_MODULE_TAGS := optional
78LOCAL_MODULE_CLASS := JAVA_LIBRARIES
79LOCAL_JAVA_LIBRARIES := android-support-test
80LOCAL_SDK_VERSION := 8
81LOCAL_IS_HOST_MODULE := false
82LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR := build/tools/droiddoc/templates-sdk
83
84LOCAL_DROIDDOC_OPTIONS := \
85        -offlinemode \
86        -hdf android.whichdoc offline \
87        -hdf template.showLanguageMenu true
88
89include $(BUILD_DROIDDOC)
90
91# ----------------------------------------------
92
93# Use the following include to make our test apk.
94include $(call all-makefiles-under,$(LOCAL_PATH))
95
96