blob: d6885ebc7cfc66297c93dfd72203d1297379fe98 [file] [log] [blame]
Jeongik Chaef26afd2019-02-07 15:51:47 +09001#
2# Copyright (C) 2019 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17shareduid_violation_modules_filename := $(PRODUCT_OUT)/shareduid_violation_modules.json
18
Jeongik Chaef26afd2019-02-07 15:51:47 +090019$(shareduid_violation_modules_filename): $(INSTALLED_SYSTEMIMAGE_TARGET) \
20 $(INSTALLED_RAMDISK_TARGET) \
21 $(INSTALLED_BOOTIMAGE_TARGET) \
22 $(INSTALLED_USERDATAIMAGE_TARGET) \
23 $(INSTALLED_VENDORIMAGE_TARGET) \
24 $(INSTALLED_PRODUCTIMAGE_TARGET) \
Justin Yun6151e3f2019-06-25 15:58:13 +090025 $(INSTALLED_SYSTEM_EXTIMAGE_TARGET)
Jeongik Chaef26afd2019-02-07 15:51:47 +090026
Daniel Normanb8d52a22020-10-26 17:55:00 -070027$(shareduid_violation_modules_filename): $(HOST_OUT_EXECUTABLES)/find_shareduid_violation
Jeongik Chaef26afd2019-02-07 15:51:47 +090028$(shareduid_violation_modules_filename): $(AAPT2)
Daniel Normanb8d52a22020-10-26 17:55:00 -070029 $(HOST_OUT_EXECUTABLES)/find_shareduid_violation \
Felix3769a202020-05-31 01:17:34 +020030 --product_out $(PRODUCT_OUT) \
31 --aapt $(AAPT2) \
32 --copy_out_system $(TARGET_COPY_OUT_SYSTEM) \
33 --copy_out_vendor $(TARGET_COPY_OUT_VENDOR) \
34 --copy_out_product $(TARGET_COPY_OUT_PRODUCT) \
35 --copy_out_system_ext $(TARGET_COPY_OUT_SYSTEM_EXT) \
36 > $@
37
Jeongik Chaef26afd2019-02-07 15:51:47 +090038$(call dist-for-goals,droidcore,$(shareduid_violation_modules_filename))