1e5c4badcSopenharmony_ci# Copyright (C) 2021 Huawei Device Co., Ltd. 2e5c4badcSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3e5c4badcSopenharmony_ci# you may not use this file except in compliance with the License. 4e5c4badcSopenharmony_ci# You may obtain a copy of the License at 5e5c4badcSopenharmony_ci# 6e5c4badcSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7e5c4badcSopenharmony_ci# 8e5c4badcSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9e5c4badcSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10e5c4badcSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11e5c4badcSopenharmony_ci# See the License for the specific language governing permissions and 12e5c4badcSopenharmony_ci# limitations under the License. 13e5c4badcSopenharmony_ci 14e5c4badcSopenharmony_ciimport("//build/config/ohos/rules.gni") 15e5c4badcSopenharmony_ciimport("//build/ohos.gni") 16e5c4badcSopenharmony_ciimport("//foundation/multimedia/image_framework/ide/image_decode_config.gni") 17e5c4badcSopenharmony_ci 18e5c4badcSopenharmony_cigroup("image_decode_only") { 19e5c4badcSopenharmony_ci if (host_os == "mac") { 20e5c4badcSopenharmony_ci deps = [ 21e5c4badcSopenharmony_ci "//foundation/multimedia/image_framework/frameworks/jni/imagesource:image_source_jni(${mac_buildtool})", 22e5c4badcSopenharmony_ci "//foundation/multimedia/image_framework/frameworks/jni/incrementalpixelmap:incremental_pixelmap_jni(${mac_buildtool})", 23e5c4badcSopenharmony_ci "//foundation/multimedia/image_framework/frameworks/jni/pixelmap:pixelmap_jni(${mac_buildtool})", 24e5c4badcSopenharmony_ci "//foundation/multimedia/image_framework/interfaces/innerkits:image(${mac_buildtool})", 25e5c4badcSopenharmony_ci "//foundation/multimedia/image_framework/plugins/common/libs:multimediaplugin(${mac_buildtool})", 26e5c4badcSopenharmony_ci "//foundation/multimedia/image_framework/plugins/manager:pluginmanager(${mac_buildtool})", 27e5c4badcSopenharmony_ci ] 28e5c4badcSopenharmony_ci } else { 29e5c4badcSopenharmony_ci deps = [ 30e5c4badcSopenharmony_ci "//foundation/multimedia/image_framework/frameworks/jni/imagesource:image_source_jni(${windows_buildtool})", 31e5c4badcSopenharmony_ci "//foundation/multimedia/image_framework/frameworks/jni/incrementalpixelmap:incremental_pixelmap_jni(${windows_buildtool})", 32e5c4badcSopenharmony_ci "//foundation/multimedia/image_framework/frameworks/jni/pixelmap:pixelmap_jni(${windows_buildtool})", 33e5c4badcSopenharmony_ci "//foundation/multimedia/image_framework/interfaces/innerkits:image(${windows_buildtool})", 34e5c4badcSopenharmony_ci "//foundation/multimedia/image_framework/plugins/common/libs:multimediaplugin(${windows_buildtool})", 35e5c4badcSopenharmony_ci "//foundation/multimedia/image_framework/plugins/manager:pluginmanager(${windows_buildtool})", 36e5c4badcSopenharmony_ci ] 37e5c4badcSopenharmony_ci } 38e5c4badcSopenharmony_ci} 39e5c4badcSopenharmony_ci 40e5c4badcSopenharmony_ciconfig("media_config") { 41e5c4badcSopenharmony_ci if (current_cpu == "arm64" || (current_cpu == "arm" && arm_use_neon)) { 42e5c4badcSopenharmony_ci defines += [ "USE_NEON" ] 43e5c4badcSopenharmony_ci } 44e5c4badcSopenharmony_ci} 45