• 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("//test/xts/tools/build/suite.gni")
15
16module_output_path = "hit/ActsGraphicNapiTest"
17
18###############################################################################
19
20ohos_moduletest_suite("ActsGraphicNapiTest") {
21  module_out_path = module_output_path
22  subsystem_name = "graphic"
23  part_name = "graphic_standard"
24
25  sources = [
26    "NativeBufferTest.cpp",
27    "NativeImageTest.cpp",
28    "NativeVsyncTest.cpp",
29    "NativeWindowTest.cpp",
30  ]
31
32  cflags = [
33    "-Wall",
34    "-Werror",
35    "-g3",
36    "-Dprivate=public",
37    "-Dprotected=public",
38  ]
39
40  include_dirs = [
41    "//foundation/graphic/graphic_2d/interfaces/inner_api/common",
42    "//foundation/graphic/graphic_2d/rosen/modules/composer/vsync/include",
43    "//foundation/graphic/graphic_2d/frameworks/surface/include",
44    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
45    "//drivers/peripheral/display/interfaces/include",
46    "//base/security/access_token/interfaces/innerkits/nativetoken/include",
47    "//base/security/access_token/interfaces/innerkits/accesstoken/include",
48    "//base/security/access_token/interfaces/innerkits/token_setproc/include",
49  ]
50
51  deps = [
52    "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
53    "//base/security/access_token/interfaces/innerkits/accesstoken:libaccesstoken_sdk",
54    "//base/security/access_token/interfaces/innerkits/nativetoken:libnativetoken",
55    "//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc",
56    "//foundation/graphic/graphic_2d:libnative_image",
57    "//foundation/graphic/graphic_2d:libsurface",
58    "//foundation/graphic/graphic_2d/frameworks/opengl_wrapper:EGL",
59    "//foundation/graphic/graphic_2d/frameworks/opengl_wrapper:GLESv3",
60    "//foundation/graphic/graphic_2d/rosen/modules/composer/native_vsync:libnative_vsync",
61    "//foundation/graphic/graphic_2d/rosen/modules/composer/vsync:libvsync",
62    "//foundation/graphic/graphic_2d/utils:buffer_handle",
63    "//foundation/graphic/graphic_2d/utils:libgraphic_utils",
64    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
65    "//third_party/googletest:gmock_main",
66    "//third_party/googletest:gtest_main",
67  ]
68}
69