1# Copyright (C) 2020 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# Add carwatchdogd to product package
16PRODUCT_PACKAGES += carwatchdogd
17
18# SELinux public policies for car watchdog services
19PRODUCT_PUBLIC_SEPOLICY_DIRS += packages/services/Car/cpp/watchdog/sepolicy/public
20
21# SELinux private policies for car watchdog services
22PRODUCT_PRIVATE_SEPOLICY_DIRS += packages/services/Car/cpp/watchdog/sepolicy/private
23
24# Include carwatchdog testclient if the build is userdebug or eng
25ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
26    PRODUCT_PACKAGES += carwatchdog_testclient
27    BOARD_SEPOLICY_DIRS += packages/services/Car/cpp/watchdog/testclient/sepolicy
28endif
29