1# Copyright (C) 2016 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#
16
17LOCAL_PATH:= $(call my-dir)
18
19include $(CLEAR_VARS)
20
21LOCAL_SRC_FILES := \
22    $(call all-java-files-under, src) \
23    ../../../../../frameworks/opt/car/services/src/com/android/internal/car/ICarServiceHelper.aidl
24
25LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res \
26    packages/services/Car/service/res
27
28LOCAL_AAPT_FLAGS += --extra-packages com.android.car --auto-add-overlay
29
30LOCAL_PACKAGE_NAME := CarServiceUnitTest
31LOCAL_PRIVATE_PLATFORM_APIS := true
32
33LOCAL_CERTIFICATE := platform
34
35LOCAL_MODULE_TAGS := tests
36
37# When built explicitly put it in the data partition
38LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
39
40LOCAL_PROGUARD_ENABLED := disabled
41
42LOCAL_INSTRUMENTATION_FOR := CarService
43
44LOCAL_JAVA_LIBRARIES := \
45    android.car \
46    android.car.userlib \
47    android.test.runner \
48    android.test.base \
49    android.test.mock
50
51LOCAL_STATIC_JAVA_LIBRARIES := \
52    androidx.test.core \
53    androidx.test.ext.junit \
54    androidx.test.rules \
55    car-frameworks-service \
56    car-service-lib-for-test \
57    com.android.car.test.utils \
58    frameworks-base-testutils \
59    mockito-target-extended \
60    testng \
61    truth-prebuilt
62
63# mockito-target-inline dependency
64LOCAL_JNI_SHARED_LIBRARIES := \
65    libdexmakerjvmtiagent \
66    libstaticjvmtiagent \
67
68include $(BUILD_PACKAGE)
69