2021-09-14 07:07:27 +00:00
|
|
|
# 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")
|
2022-09-13 02:49:40 +00:00
|
|
|
import("//foundation/multimedia/image_framework/ide/image_decode_config.gni")
|
2021-09-14 07:07:27 +00:00
|
|
|
config("log_mock_config") {
|
|
|
|
visibility = [ ":*" ]
|
|
|
|
include_dirs = [
|
2023-04-04 07:14:36 +00:00
|
|
|
"include",
|
|
|
|
"include/log",
|
2021-09-14 07:07:27 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
ohos_static_library("log_mock_static") {
|
|
|
|
configs = [ ":log_mock_config" ]
|
2022-10-10 11:05:22 +00:00
|
|
|
sources = [
|
|
|
|
"//foundation/multimedia/image_framework/mock/native/src/HiLog.cpp",
|
|
|
|
"//foundation/multimedia/image_framework/mock/native/src/hitrace_meter.cpp",
|
|
|
|
]
|
2021-09-14 07:07:27 +00:00
|
|
|
subsystem_name = "multimedia"
|
|
|
|
}
|
|
|
|
|
|
|
|
config("utils_mock_config") {
|
|
|
|
visibility = [ ":*" ]
|
|
|
|
include_dirs = [
|
2023-04-04 07:14:36 +00:00
|
|
|
"include",
|
2021-09-14 07:07:27 +00:00
|
|
|
"//foundation/multimedia/utils/include",
|
2022-09-13 02:49:40 +00:00
|
|
|
"//foundation/multimedia/image_framework/interfaces/innerkits/include",
|
2021-09-14 07:07:27 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2022-10-10 11:05:22 +00:00
|
|
|
} else if (use_clang_ios) {
|
|
|
|
defines = image_decode_ios_defines
|
|
|
|
} else if (use_clang_android) {
|
|
|
|
defines = image_decode_android_defines
|
2021-09-14 07:07:27 +00:00
|
|
|
}
|
|
|
|
configs = [ ":utils_mock_config" ]
|
|
|
|
sources = [
|
2022-09-13 02:49:40 +00:00
|
|
|
"//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",
|
2022-10-10 11:05:22 +00:00
|
|
|
"//foundation/multimedia/image_framework/mock/native/src/string_ex.cpp",
|
2021-09-14 07:07:27 +00:00
|
|
|
]
|
|
|
|
deps = [ ":log_mock_static" ]
|
|
|
|
subsystem_name = "multimedia"
|
|
|
|
}
|