blob: 972b1ec37ae7c1ffac9d605048fd09fc8734ae1e [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
19find_shareduid_script := $(BUILD_SYSTEM)/tasks/find-shareduid-violation.py
20
21$(shareduid_violation_modules_filename): $(INSTALLED_SYSTEMIMAGE_TARGET) \
22 $(INSTALLED_RAMDISK_TARGET) \
23 $(INSTALLED_BOOTIMAGE_TARGET) \
24 $(INSTALLED_USERDATAIMAGE_TARGET) \
25 $(INSTALLED_VENDORIMAGE_TARGET) \
26 $(INSTALLED_PRODUCTIMAGE_TARGET) \
Justin Yun6151e3f2019-06-25 15:58:13 +090027 $(INSTALLED_SYSTEM_EXTIMAGE_TARGET)
Jeongik Chaef26afd2019-02-07 15:51:47 +090028
29$(shareduid_violation_modules_filename): $(find_shareduid_script)
30$(shareduid_violation_modules_filename): $(AAPT2)
Felix3769a202020-05-31 01:17:34 +020031 $(find_shareduid_script) \
32 --product_out $(PRODUCT_OUT) \
33 --aapt $(AAPT2) \
34 --copy_out_system $(TARGET_COPY_OUT_SYSTEM) \
35 --copy_out_vendor $(TARGET_COPY_OUT_VENDOR) \
36 --copy_out_product $(TARGET_COPY_OUT_PRODUCT) \
37 --copy_out_system_ext $(TARGET_COPY_OUT_SYSTEM_EXT) \
38 > $@
39
Jeongik Chaef26afd2019-02-07 15:51:47 +090040$(call dist-for-goals,droidcore,$(shareduid_violation_modules_filename))