1##############################################
2# Compile Robolectric resources
3##############################################
4LOCAL_PATH := $(call my-dir)
5include $(CLEAR_VARS)
6
7LOCAL_MODULE := Robolectric_resources
8
9LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java)
10
11LOCAL_JAVA_LIBRARIES := \
12  Robolectric_annotations \
13  Robolectric_utils \
14  robolectric-guava-20.0 \
15  jsr305lib
16
17include $(BUILD_HOST_JAVA_LIBRARY)
18
19##############################################
20# Compile Robolectric resources tests
21##############################################
22include $(CLEAR_VARS)
23
24LOCAL_MODULE := Robolectric_resources_tests
25
26LOCAL_SRC_FILES := $(call all-java-files-under, src/test/java)
27
28LOCAL_JAVA_LIBRARIES := \
29  Robolectric_resources \
30  robolectric-assertj-core-3.8.0 \
31  robolectric-mockito-core-2.7.6 \
32  robolectric-guava-20.0 \
33  robolectric-junit-4.12
34
35include $(BUILD_HOST_JAVA_LIBRARY)
36
37##############################################
38# Execute Robolectric resources tests
39##############################################
40include $(CLEAR_VARS)
41
42LOCAL_MODULE := Run_robolectric_resources_tests
43
44test_source_directory := $(LOCAL_PATH)/src/test/java
45
46test_runtime_libraries := \
47  Robolectric_resources_tests \
48  Robolectric_annotations \
49  Robolectric_resources \
50  Robolectric_utils \
51  robolectric-byte-buddy-agent-1.6.5 \
52  robolectric-assertj-core-3.8.0 \
53  robolectric-mockito-core-2.7.6 \
54  robolectric-hamcrest-core-1.3 \
55  robolectric-byte-buddy-1.6.5 \
56  robolectric-objenesis-2.5 \
57  robolectric-guava-20.0 \
58  robolectric-junit-4.12
59
60include external/robolectric-shadows/run_robolectric_module_tests.mk