• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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/test.gni")
15import("//foundation/graphic/standard/graphic_config.gni")
16import("//foundation/graphic/standard/rosen/modules/effect/effect_config.gni")
17
18module_output_path = "graphic_standard/rosen/modules/effect"
19
20ohos_unittest("EffectTest") {
21  module_out_path = module_output_path
22  sources = []
23
24  deps = [
25    "//third_party/googletest:gtest_main",
26    "//utils/native/base:utils",
27  ]
28
29  if (effect_enable_gpu) {
30    sources += [ "effect_chain_unittest.cpp" ]
31
32    deps += [
33      "//foundation/graphic/standard:libgl",
34      "//foundation/graphic/standard/interfaces/kits/napi/graphic/common:graphic_napi_common",
35      "//foundation/graphic/standard/rosen/modules/effect/effectChain:libeffectchain",
36      "//foundation/graphic/standard/rosen/modules/effect/egl:libegl_effect",
37    ]
38  }
39
40  configs = [ ":effect_test_config" ]
41}
42
43config("effect_test_config") {
44  visibility = [ ":*" ]
45  include_dirs = [
46    "//third_party/EGL/api",
47    "//third_party/openGLES/api",
48    "//foundation/graphic/standard/rosen/modules/effect/effectChain/include",
49    "//foundation/graphic/standard/rosen/modules/effect/egl/include",
50  ]
51}
52
53group("test") {
54  testonly = true
55  deps = [ ":EffectTest" ]
56}
57