• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    "include",
20    "include/log",
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  if (use_clang_ios || use_clang_android) {
31    sources -= [ "$image_subsystem/mock/native/src/HiLog.cpp" ]
32    deps = [ "$graphic_subsystem/rosen/modules/platform:hilog" ]
33  }
34  subsystem_name = "multimedia"
35  part_name = "image_framework"
36}
37
38config("utils_mock_config") {
39  visibility = [ ":*" ]
40  include_dirs = [
41    "include",
42    "//foundation/multimedia/utils/include",
43    "//foundation/multimedia/image_framework/interfaces/innerkits/include",
44  ]
45}
46
47ohos_static_library("utils_mock_static") {
48  if (use_mingw_win) {
49    defines = image_decode_windows_defines
50  } else if (use_clang_mac) {
51    defines = image_decode_mac_defines
52  } else if (use_clang_ios) {
53    defines = image_decode_ios_defines
54  } else if (use_clang_android) {
55    defines = image_decode_android_defines
56  }
57  configs = [ ":utils_mock_config" ]
58  sources = [
59    "//foundation/multimedia/image_framework/mock/native/src/directory_ex.cpp",
60    "//foundation/multimedia/image_framework/mock/native/src/message_parcel.cpp",
61    "//foundation/multimedia/image_framework/mock/native/src/parcel.cpp",
62    "//foundation/multimedia/image_framework/mock/native/src/refbase.cpp",
63    "//foundation/multimedia/image_framework/mock/native/src/rwlock.cpp",
64  ]
65  deps = [ ":log_mock_static" ]
66  subsystem_name = "multimedia"
67  part_name = "image_framework"
68}
69