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