Home | History | Annotate | Download | only in httpclient
      1 ##############################################
      2 # Compile Robolectric shadows httpclient
      3 ##############################################
      4 LOCAL_PATH := $(call my-dir)
      5 include $(CLEAR_VARS)
      6 
      7 LOCAL_MODULE := Robolectric_shadows_httpclient
      8 
      9 LOCAL_JAVA_LIBRARIES := \
     10   Robolectric_shadows_framework \
     11   Robolectric_annotations \
     12   Robolectric_shadowapi \
     13   Robolectric_utils \
     14   robolectric-host-org_apache_http_legacy \
     15   robolectric-host-android_all \
     16   robolectric-httpclient-4.0.3 \
     17   robolectric-httpcore-4.0.1 \
     18   robolectric-javax.annotation-api-1.2
     19 
     20 LOCAL_ANNOTATION_PROCESSORS := \
     21   Robolectric_annotations \
     22   Robolectric_processor \
     23   robolectric-guava-20.0 \
     24   robolectric-gson-2.8
     25 
     26 LOCAL_ANNOTATION_PROCESSOR_CLASSES := org.robolectric.annotation.processing.RobolectricProcessor
     27 
     28 LOCAL_JAVACFLAGS := -Aorg.robolectric.annotation.processing.shadowPackage=org.robolectric.shadows.httpclient
     29 
     30 LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java)
     31 
     32 include $(BUILD_HOST_JAVA_LIBRARY)
     33 
     34 ##############################################
     35 # Compile Robolectric shadows httpclient tests
     36 ##############################################
     37 include $(CLEAR_VARS)
     38 
     39 LOCAL_MODULE := Robolectric_shadows_httpclient_tests
     40 
     41 LOCAL_SRC_FILES := $(call all-java-files-under, src/test/java)
     42 
     43 LOCAL_JAVA_RESOURCE_DIRS := src/test/resources
     44 
     45 LOCAL_JAVA_LIBRARIES := \
     46   Robolectric_shadows_httpclient \
     47   Robolectric_shadows_framework \
     48   Robolectric_annotations \
     49   Robolectric_robolectric \
     50   Robolectric_resources \
     51   Robolectric_shadowapi \
     52   Robolectric_junit \
     53   Robolectric_utils \
     54   robolectric-host-org_apache_http_legacy \
     55   robolectric-assertj-core-3.8.0 \
     56   robolectric-host-android_all \
     57   robolectric-httpclient-4.0.3 \
     58   robolectric-httpcore-4.0.1 \
     59   robolectric-guava-20.0 \
     60   robolectric-junit-4.12 \
     61   jsr305lib
     62 
     63 include $(BUILD_HOST_JAVA_LIBRARY)
     64 
     65 ##############################################
     66 # Execute Robolectric shadows httpclient tests
     67 ##############################################
     68 include $(CLEAR_VARS)
     69 
     70 LOCAL_MODULE := Run_robolectric_shadows_httpclient_tests
     71 
     72 test_source_directory := $(LOCAL_PATH)/src/test/java
     73 
     74 test_resources_directory := $(LOCAL_PATH)/src/test/resources
     75 
     76 test_runtime_libraries := \
     77   Robolectric_shadows_httpclient_tests \
     78   Robolectric_shadows_httpclient \
     79   Robolectric_shadows_framework \
     80   Robolectric_annotations \
     81   Robolectric_robolectric \
     82   Robolectric_resources \
     83   Robolectric_shadowapi \
     84   Robolectric_sandbox \
     85   Robolectric_junit \
     86   Robolectric_utils \
     87   robolectric-host-monitor-1.0.2-alpha1 \
     88   robolectric-maven-ant-tasks-2.1.3 \
     89   robolectric-assertj-core-3.8.0 \
     90   robolectric-bouncycastle-1.46 \
     91   robolectric-hamcrest-core-1.3 \
     92   robolectric-host-android_all \
     93   robolectric-httpclient-4.0.3 \
     94   robolectric-asm-commons-6.0 \
     95   robolectric-httpcore-4.0.1 \
     96   robolectric-asm-tree-6.0 \
     97   robolectric-guava-20.0 \
     98   robolectric-junit-4.12 \
     99   robolectric-ant-1.8.0 \
    100   robolectric-asm-6.0 \
    101   jsr305lib \
    102   robolectric-host-org_apache_http_legacy
    103 
    104 include external/robolectric-shadows/run_robolectric_module_tests.mk