Home | History | Annotate | Download | only in robolectric
      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 
     15 LOCAL_PATH := $(call my-dir)
     16 include $(CLEAR_VARS)
     17 
     18 LOCAL_MODULE := robolectric
     19 LOCAL_SDK_VERSION := 17
     20 LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java)
     21 LOCAL_STATIC_JAVA_LIBRARIES := \
     22         robolectric-android-support-v4 \
     23         robolectric-commons-codec \
     24         robolectric-commons-logging \
     25         robolectric-h2 \
     26         robolectric-hamcrest-core \
     27         robolectric-httpclient \
     28         robolectric-httpcore \
     29         robolectric-javassist \
     30         robolectric-json \
     31         robolectric-junit \
     32         robolectric-maps \
     33         robolectric-objenesis \
     34         robolectric-sqlite-jdbc \
     35         robolectric-xpp3
     36 
     37 include $(BUILD_STATIC_JAVA_LIBRARY)
     38 
     39 #############################################################
     40 # Pre-built dependency jars
     41 #############################################################
     42 
     43 include $(CLEAR_VARS)
     44 
     45 LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
     46         robolectric-android-support-v4:lib/main/android-support-v4.jar \
     47         robolectric-commons-codec:lib/main/commons-codec-1.6.jar \
     48         robolectric-commons-logging:lib/main/commons-logging-1.1.1.jar \
     49         robolectric-h2:lib/main/commons-logging-1.1.1.jar \
     50         robolectric-hamcrest-core:lib/main/hamcrest-core-1.2.jar \
     51         robolectric-httpclient:lib/main/httpclient-4.0.3.jar \
     52         robolectric-httpcore:lib/main/httpcore-4.0.1.jar \
     53         robolectric-javassist:lib/main/javassist-3.14.0-GA.jar \
     54         robolectric-json:lib/main/json-20080701.jar \
     55         robolectric-junit:lib/main/junit-dep-4.8.2.jar \
     56         robolectric-maps:lib/main/maps_v16.jar \
     57         robolectric-objenesis:lib/main/objenesis-1.0.jar \
     58         robolectric-sqlite-jdbc:lib/main/sqlite-jdbc-3.7.2.jar \
     59         robolectric-xpp3:lib/main/xpp3-1.1.4c.jar
     60 
     61 include $(BUILD_MULTI_PREBUILT)
     62