• 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/ohos.gni")
15import("//foundation/graphic/graphic_2d/graphic_config.gni")
16import("//foundation/graphic/graphic_2d/rosen/modules/effect/effect_config.gni")
17
18ohos_executable("test_effect_chain") {
19  sources = []
20
21  include_dirs = []
22
23  deps = []
24
25  if (effect_enable_gpu) {
26    sources = [ "test_effect_chain.cpp" ]
27
28    include_dirs = [
29      "//foundation/graphic/graphic_2d/rosen/modules/effect/effectChain/include",
30      "//foundation/graphic/graphic_2d/rosen/modules/effect/egl/include",
31      "//foundation/graphic/graphic_2d/interfaces/inner_api/surface",
32      "//third_party/EGL/api",
33      "//third_party/openGLES/api",
34    ]
35
36    deps = [
37      "//foundation/graphic/graphic_2d:libgl",
38      "//foundation/graphic/graphic_2d:libsurface",
39      "//foundation/graphic/graphic_2d/rosen/modules/effect/effectChain:libeffectchain",
40      "//foundation/graphic/graphic_2d/rosen/modules/effect/egl:libegl_effect",
41    ]
42
43    external_deps = [ "c_utils:utils" ]
44  }
45
46  if (effect_enable_gpu) {
47    install_enable = true
48  } else {
49    install_enable = false
50  }
51
52  part_name = "graphic_standard"
53  subsystem_name = "graphic"
54}
55