1# Copyright (C) 2015 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)
16
17# CtsCameraUtils package
18
19include $(CLEAR_VARS)
20
21LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util \
22	mockito-target-minus-junit4 \
23	android-ex-camera2
24
25LOCAL_SRC_FILES := \
26	$(call all-java-files-under, utils/src) \
27	$(call all-renderscript-files-under, utils/src)
28
29LOCAL_MODULE := CtsCameraUtils
30
31LOCAL_SDK_VERSION := current
32-include cts/error_prone_rules_tests.mk
33include $(BUILD_STATIC_JAVA_LIBRARY)
34
35# CtsCameraTestCases package
36
37include $(CLEAR_VARS)
38
39LOCAL_MODULE_TAGS := tests
40
41# Include both the 32 and 64 bit versions
42LOCAL_MULTILIB := both
43
44LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util \
45	ctstestrunner \
46	mockito-target-minus-junit4 \
47	android-ex-camera2 \
48	CtsCameraUtils \
49	truth-prebuilt
50
51LOCAL_JNI_SHARED_LIBRARIES := \
52	libctscamera2_jni \
53	libnativehelper_compat_libc++
54
55LOCAL_NDK_STL_VARIANT := c++_shared
56
57LOCAL_SRC_FILES := \
58	$(call all-java-files-under, src) \
59	$(call all-renderscript-files-under, src)
60
61# Tag this module as a cts test artifact
62LOCAL_COMPATIBILITY_SUITE := cts vts general-tests cts_instant
63
64LOCAL_PACKAGE_NAME := CtsCameraTestCases
65
66LOCAL_SDK_VERSION := test_current
67
68LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs
69
70cts_runtime_hint := 120
71
72include $(BUILD_CTS_PACKAGE)
73
74include $(call all-makefiles-under,$(LOCAL_PATH))
75