mirror of
https://gitee.com/openharmony/multimedia_image_framework
synced 2024-12-12 09:42:22 +00:00
568cb0ddaf
Signed-off-by: renhongwei <renhongwei9@huawei.com>
64 lines
2.2 KiB
Plaintext
64 lines
2.2 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/ohos.gni")
|
|
import("//foundation/multimedia/image_framework/ide/image_decode_config.gni")
|
|
config("log_mock_config") {
|
|
visibility = [ ":*" ]
|
|
include_dirs = [
|
|
"include",
|
|
"include/log",
|
|
]
|
|
}
|
|
|
|
ohos_static_library("log_mock_static") {
|
|
configs = [ ":log_mock_config" ]
|
|
sources = [
|
|
"//foundation/multimedia/image_framework/mock/native/src/HiLog.cpp",
|
|
"//foundation/multimedia/image_framework/mock/native/src/hitrace_meter.cpp",
|
|
]
|
|
subsystem_name = "multimedia"
|
|
}
|
|
|
|
config("utils_mock_config") {
|
|
visibility = [ ":*" ]
|
|
include_dirs = [
|
|
"include",
|
|
"//foundation/multimedia/utils/include",
|
|
"//foundation/multimedia/image_framework/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
|
|
} else if (use_clang_ios) {
|
|
defines = image_decode_ios_defines
|
|
} else if (use_clang_android) {
|
|
defines = image_decode_android_defines
|
|
}
|
|
configs = [ ":utils_mock_config" ]
|
|
sources = [
|
|
"//foundation/multimedia/image_framework/mock/native/src/directory_ex.cpp",
|
|
"//foundation/multimedia/image_framework/mock/native/src/message_parcel.cpp",
|
|
"//foundation/multimedia/image_framework/mock/native/src/parcel.cpp",
|
|
"//foundation/multimedia/image_framework/mock/native/src/refbase.cpp",
|
|
"//foundation/multimedia/image_framework/mock/native/src/rwlock.cpp",
|
|
"//foundation/multimedia/image_framework/mock/native/src/string_ex.cpp",
|
|
]
|
|
deps = [ ":log_mock_static" ]
|
|
subsystem_name = "multimedia"
|
|
}
|