10b966c5eSopenharmony_ci# Copyright (C) 2022 HiHope Open Source Organization .
20b966c5eSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
30b966c5eSopenharmony_ci# you may not use this file except in compliance with the License.
40b966c5eSopenharmony_ci# You may obtain a copy of the License at
50b966c5eSopenharmony_ci#
60b966c5eSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
70b966c5eSopenharmony_ci#
80b966c5eSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
90b966c5eSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
100b966c5eSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
110b966c5eSopenharmony_ci# See the License for the specific language governing permissions and
120b966c5eSopenharmony_ci# limitations under the License.
130b966c5eSopenharmony_ciimport("//build/ohos.gni")
140b966c5eSopenharmony_ci
150b966c5eSopenharmony_ciohos_copy("system_image_conf_for_asan") {
160b966c5eSopenharmony_ci  sources = [ "system_image_conf.txt" ]
170b966c5eSopenharmony_ci  outputs = [ "${product_output_dir}/imagesconf/{{source_file_part}}" ]
180b966c5eSopenharmony_ci}
190b966c5eSopenharmony_ci
200b966c5eSopenharmony_ciohos_copy("ramdisk_image_conf_for_asan") {
210b966c5eSopenharmony_ci  sources = [ "ramdisk_image_conf.txt" ]
220b966c5eSopenharmony_ci  outputs = [ "${product_output_dir}/imagesconf/{{source_file_part}}" ]
230b966c5eSopenharmony_ci}
240b966c5eSopenharmony_ci
250b966c5eSopenharmony_ciohos_copy("updater_ramdisk_image_conf_for_asan") {
260b966c5eSopenharmony_ci  sources = [ "updater_ramdisk_image_conf.txt" ]
270b966c5eSopenharmony_ci  outputs = [ "${product_output_dir}/imagesconf/{{source_file_part}}" ]
280b966c5eSopenharmony_ci}
290b966c5eSopenharmony_ci
300b966c5eSopenharmony_cigroup("custom_image_conf") {
310b966c5eSopenharmony_ci  if (is_asan) {
320b966c5eSopenharmony_ci    deps = [
330b966c5eSopenharmony_ci      ":ramdisk_image_conf_for_asan",
340b966c5eSopenharmony_ci      ":system_image_conf_for_asan",
350b966c5eSopenharmony_ci      ":updater_ramdisk_image_conf_for_asan",
360b966c5eSopenharmony_ci    ]
370b966c5eSopenharmony_ci  }
380b966c5eSopenharmony_ci}
39