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#
15#
16
17LOCAL_PATH:= $(call my-dir)
18
19include $(CLEAR_VARS)
20
21LOCAL_SRC_FILES := $(call all-java-files-under, src)
22
23LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res \
24    packages/services/Car/service/res
25
26LOCAL_AAPT_FLAGS += --extra-packages com.android.car --auto-add-overlay
27
28LOCAL_PACKAGE_NAME := CarServiceTest
29LOCAL_PRIVATE_PLATFORM_APIS := true
30
31# for system|priviledged permission.
32LOCAL_CERTIFICATE := platform
33
34LOCAL_MODULE_TAGS := tests
35
36# When built explicitly put it in the data partition
37LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
38
39LOCAL_PROGUARD_ENABLED := disabled
40
41LOCAL_STATIC_JAVA_LIBRARIES := junit
42LOCAL_STATIC_JAVA_LIBRARIES += \
43    androidx.test.ext.junit \
44    androidx.test.rules \
45    android.hardware.automotive.vehicle-V2.0-java \
46    car-frameworks-service \
47    car-service-lib-for-test \
48    car-systemtest \
49    com.android.car.test.utils \
50    mockito-target-extended \
51    truth-prebuilt \
52    vehicle-hal-support-lib
53
54
55LOCAL_JAVA_LIBRARIES := \
56    android.car \
57    android.car.userlib \
58    android.test.runner \
59    android.test.base
60
61LOCAL_JNI_SHARED_LIBRARIES := libdexmakerjvmtiagent
62
63include $(BUILD_PACKAGE)
64