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/ohos.gni") 15import("//foundation/multimedia/image_framework/ide/image_decode_config.gni") 16config("log_mock_config") { 17 visibility = [ ":*" ] 18 include_dirs = [ 19 "//foundation/multimedia/image_framework/mock/native/include", 20 "//foundation/multimedia/image_framework/mock/native/include/include/utils", 21 ] 22} 23 24ohos_static_library("log_mock_static") { 25 configs = [ ":log_mock_config" ] 26 sources = [ 27 "//foundation/multimedia/image_framework/mock/native/src/HiLog.cpp", 28 "//foundation/multimedia/image_framework/mock/native/src/hitrace_meter.cpp", 29 ] 30 subsystem_name = "multimedia" 31} 32 33config("utils_mock_config") { 34 visibility = [ ":*" ] 35 include_dirs = [ 36 "//foundation/multimedia/image_framework/mock/native/include", 37 "//foundation/multimedia/utils/include", 38 "//foundation/multimedia/image_framework/interfaces/innerkits/include", 39 ] 40} 41 42ohos_static_library("utils_mock_static") { 43 if (use_mingw_win) { 44 defines = image_decode_windows_defines 45 } else if (use_clang_mac) { 46 defines = image_decode_mac_defines 47 } else if (use_clang_ios) { 48 defines = image_decode_ios_defines 49 } else if (use_clang_android) { 50 defines = image_decode_android_defines 51 } 52 configs = [ ":utils_mock_config" ] 53 sources = [ 54 "//foundation/multimedia/image_framework/mock/native/src/directory_ex.cpp", 55 "//foundation/multimedia/image_framework/mock/native/src/message_parcel.cpp", 56 "//foundation/multimedia/image_framework/mock/native/src/parcel.cpp", 57 "//foundation/multimedia/image_framework/mock/native/src/refbase.cpp", 58 "//foundation/multimedia/image_framework/mock/native/src/rwlock.cpp", 59 "//foundation/multimedia/image_framework/mock/native/src/string_ex.cpp", 60 ] 61 deps = [ ":log_mock_static" ] 62 subsystem_name = "multimedia" 63} 64