1# Copyright (c) 2021-2023 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 14#import("//build/config/ohos/rules.gni") 15import("//build/ohos.gni") 16import("//foundation/multimedia/image_framework/ide/image_decode_config.gni") 17group("image_framework") { 18 if (use_clang_ios) { 19 deps = [ 20 "frameworks/innerkitsimpl/utils:image_utils", 21 "interfaces/innerkits:image_native", 22 "interfaces/kits/js/common:image", 23 ] 24 } else if (use_clang_android) { 25 deps = [ 26 "frameworks/innerkitsimpl/utils:image_utils", 27 "interfaces/innerkits:image_native", 28 "interfaces/kits/js/common:multimedia_image", 29 ] 30 } else { 31 deps = [ 32 "frameworks/innerkitsimpl/utils:image_utils", 33 "frameworks/kits/js/common/ndk:image_ndk", 34 "frameworks/kits/js/common/ndk:image_receiver_ndk", 35 "frameworks/kits/js/common/pixelmap_ndk:pixelmap_ndk", 36 "interfaces/innerkits:image_native", 37 "interfaces/kits/js/common:image", 38 "interfaces/kits/js/common:image_napi", 39 ] 40 } 41} 42 43group("plugins") { 44 deps = [ "plugins/manager:pluginmanager" ] 45 46 if (!use_clang_android && !use_clang_ios) { 47 deps += [ "plugins/common/libs:multimediaplugin" ] 48 if (enable_jpeg_hw_decode) { 49 deps += [ "frameworks/innerkitsimpl/test/unittest/jpeg_hw_decode/demo:jpeg_hw_decoder_demo" ] 50 } 51 } 52} 53 54group("image_test_list") { 55 testonly = true 56 57 # image 58 if (!use_clang_android && !use_clang_ios) { 59 deps = [ "frameworks/innerkitsimpl/test:unittest" ] 60 } 61} 62 63config("media_config") { 64 defines = [] 65 66 if (current_cpu == "arm64" || current_cpu == "arm") { 67 defines += [ "USE_NEON" ] 68 } 69} 70