1# 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)
16include $(CLEAR_VARS)
17
18LOCAL_MODULE := robolectric
19LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java)
20
21LOCAL_STATIC_JAVA_LIBRARIES := \
22        robolectric-android \
23        robolectric-android-support-v4 \
24        robolectric-commons-codec \
25        robolectric-commons-logging \
26        robolectric-h2 \
27        hamcrest \
28        robolectric-httpclient \
29        robolectric-httpcore \
30        robolectric-javassist \
31        robolectric-json \
32        junit \
33        robolectric-maps \
34        objenesis-host \
35        robolectric-sqlite-jdbc \
36        robolectric-xpp3
37
38include $(BUILD_HOST_JAVA_LIBRARY)
39
40#############################################################
41# Pre-built dependency jars
42#############################################################
43
44include $(CLEAR_VARS)
45
46# TODO: Figure out how to not use a prebuilt android API 18 jar and grab from
47#       prebuilts
48
49LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
50        robolectric-android:lib/main/android.jar \
51        robolectric-android-support-v4:lib/main/android-support-v4.jar \
52        robolectric-commons-codec:lib/main/commons-codec-1.6.jar \
53        robolectric-commons-logging:lib/main/commons-logging-1.1.1.jar \
54        robolectric-h2:lib/main/commons-logging-1.1.1.jar \
55        robolectric-httpclient:lib/main/httpclient-4.0.3.jar \
56        robolectric-httpcore:lib/main/httpcore-4.0.1.jar \
57        robolectric-javassist:lib/main/javassist-3.14.0-GA.jar \
58        robolectric-json:lib/main/json-20080701.jar \
59        robolectric-maps:lib/main/maps_v16.jar \
60        robolectric-sqlite-jdbc:lib/main/sqlite-jdbc-3.7.2.jar \
61        robolectric-xpp3:lib/main/xpp3-1.1.4c.jar
62
63include $(BUILD_HOST_PREBUILT)
64