mirror of
https://gitee.com/openharmony/multimedia_image_framework
synced 2024-12-12 09:42:22 +00:00
28d0ffe2c7
Signed-off-by: magekkkk <lixin113@huawei.com>
58 lines
2.0 KiB
Plaintext
58 lines
2.0 KiB
Plaintext
# Copyright (C) 2021 Huawei Device Co., Ltd.
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
#import("//build/config/ohos/rules.gni")
|
|
import("//build/ohos.gni")
|
|
import("//foundation/multimedia/image_standard/ide/image_decode_config.gni")
|
|
config("log_mock_config") {
|
|
visibility = [ ":*" ]
|
|
include_dirs = [
|
|
"//foundation/multimedia/image_standard/mock/native/include",
|
|
"//foundation/multimedia/image_standard/mock/native/include/hilog",
|
|
]
|
|
}
|
|
|
|
ohos_static_library("log_mock_static") {
|
|
configs = [ ":log_mock_config" ]
|
|
sources = [ "//foundation/multimedia/image_standard/mock/native/src/HiLog.cpp" ]
|
|
subsystem_name = "multimedia"
|
|
}
|
|
|
|
config("utils_mock_config") {
|
|
visibility = [ ":*" ]
|
|
include_dirs = [
|
|
"//foundation/multimedia/image_standard/mock/native/include",
|
|
"//foundation/multimedia/utils/include",
|
|
"//foundation/multimedia/image_standard/interfaces/innerkits/include",
|
|
|
|
]
|
|
}
|
|
|
|
ohos_static_library("utils_mock_static") {
|
|
if (use_mingw_win) {
|
|
defines = image_decode_windows_defines
|
|
} else if (use_clang_mac) {
|
|
defines = image_decode_mac_defines
|
|
}
|
|
configs = [ ":utils_mock_config" ]
|
|
sources = [
|
|
"//foundation/multimedia/image_standard/mock/native/src/directory_ex.cpp",
|
|
"//foundation/multimedia/image_standard/mock/native/src/message_parcel.cpp",
|
|
"//foundation/multimedia/image_standard/mock/native/src/parcel.cpp",
|
|
"//foundation/multimedia/image_standard/mock/native/src/refbase.cpp",
|
|
"//foundation/multimedia/image_standard/mock/native/src/rwlock.cpp",
|
|
]
|
|
deps = [ ":log_mock_static" ]
|
|
subsystem_name = "multimedia"
|
|
}
|