1f6603c60Sopenharmony_ci# Copyright (C) 2022 Huawei Device Co., Ltd.
2f6603c60Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3f6603c60Sopenharmony_ci# you may not use this file except in compliance with the License.
4f6603c60Sopenharmony_ci# You may obtain a copy of the License at
5f6603c60Sopenharmony_ci#
6f6603c60Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7f6603c60Sopenharmony_ci#
8f6603c60Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9f6603c60Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10f6603c60Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11f6603c60Sopenharmony_ci# See the License for the specific language governing permissions and
12f6603c60Sopenharmony_ci# limitations under the License.
13f6603c60Sopenharmony_ci
14f6603c60Sopenharmony_ciimport("//test/xts/tools/build/suite.gni")
15f6603c60Sopenharmony_ci
16f6603c60Sopenharmony_cimodule_output_path = "hit/ActsDrawingNativeTest"
17f6603c60Sopenharmony_ci
18f6603c60Sopenharmony_ci###############################################################################
19f6603c60Sopenharmony_ci
20f6603c60Sopenharmony_ciohos_moduletest_suite("ActsDrawingNativeTest") {
21f6603c60Sopenharmony_ci  module_out_path = module_output_path
22f6603c60Sopenharmony_ci  subsystem_name = "graphic"
23f6603c60Sopenharmony_ci  part_name = "graphic_2d"
24f6603c60Sopenharmony_ci  comPath = "../../../../../foundation/graphic/graphic_2d"
25f6603c60Sopenharmony_ci
26f6603c60Sopenharmony_ci  sources = [
27f6603c60Sopenharmony_ci    "DrawingCanvasDrawRecordCmdTest.cpp",
28f6603c60Sopenharmony_ci    "DrawingNativeBitmapTest.cpp",
29f6603c60Sopenharmony_ci    "DrawingNativeBrushTest.cpp",
30f6603c60Sopenharmony_ci    "DrawingNativeCanvasCommon.cpp",
31f6603c60Sopenharmony_ci    "DrawingNativeCanvasTest.cpp",
32f6603c60Sopenharmony_ci    "DrawingNativeCanvasTestPart2.cpp",
33f6603c60Sopenharmony_ci    "DrawingNativeCanvasTestPart3.cpp",
34f6603c60Sopenharmony_ci    "DrawingNativeCanvasTestPart4.cpp",
35f6603c60Sopenharmony_ci    "DrawingNativeColorFilterTest.cpp",
36f6603c60Sopenharmony_ci    "DrawingNativeColorSpaceTest.cpp",
37f6603c60Sopenharmony_ci    "DrawingNativeColorTest.cpp",
38f6603c60Sopenharmony_ci    "DrawingNativeFilterTest.cpp",
39f6603c60Sopenharmony_ci    "DrawingNativeFontTest.cpp",
40f6603c60Sopenharmony_ci    "DrawingNativeFontTestPart2.cpp",
41f6603c60Sopenharmony_ci    "DrawingNativeGpuContextTest.cpp",
42f6603c60Sopenharmony_ci    "DrawingNativeImageFilterTest.cpp",
43f6603c60Sopenharmony_ci    "DrawingNativeImageTest.cpp",
44f6603c60Sopenharmony_ci    "DrawingNativeMaskFilterTest.cpp",
45f6603c60Sopenharmony_ci    "DrawingNativeMatrixTest.cpp",
46f6603c60Sopenharmony_ci    "DrawingNativeMatrixTestPart2.cpp",
47f6603c60Sopenharmony_ci    "DrawingNativeMemoryStreamTest.cpp",
48f6603c60Sopenharmony_ci    "DrawingNativePathEffectTest.cpp",
49f6603c60Sopenharmony_ci    "DrawingNativePathTest.cpp",
50f6603c60Sopenharmony_ci    "DrawingNativePathTestPart2.cpp",
51f6603c60Sopenharmony_ci    "DrawingNativePathTestPart3.cpp",
52f6603c60Sopenharmony_ci    "DrawingNativePenTest.cpp",
53f6603c60Sopenharmony_ci    "DrawingNativePixelMapTest.cpp",
54f6603c60Sopenharmony_ci    "DrawingNativePointTest.cpp",
55f6603c60Sopenharmony_ci    "DrawingNativeRectTest.cpp",
56f6603c60Sopenharmony_ci    "DrawingNativeRegionTest.cpp",
57f6603c60Sopenharmony_ci    "DrawingNativeRoundRectTest.cpp",
58f6603c60Sopenharmony_ci    "DrawingNativeSamplingOptionsTest.cpp",
59f6603c60Sopenharmony_ci    "DrawingNativeShaderEffectTest.cpp",
60f6603c60Sopenharmony_ci    "DrawingNativeShadowLayerTest.cpp",
61f6603c60Sopenharmony_ci    "DrawingNativeSurFaceTest.cpp",
62f6603c60Sopenharmony_ci    "DrawingNativeTextBlobTest.cpp",
63f6603c60Sopenharmony_ci    "DrawingNativeTypeFaceTest.cpp",
64f6603c60Sopenharmony_ci    "DrawingRecordCmdDestroyTest.cpp",
65f6603c60Sopenharmony_ci    "DrawingRecordCmdUtilsBeginTest.cpp",
66f6603c60Sopenharmony_ci    "DrawingRecordCmdUtilsDestroyTest.cpp",
67f6603c60Sopenharmony_ci    "DrawingRecordCmdUtilsFinishTest.cpp",
68f6603c60Sopenharmony_ci  ]
69f6603c60Sopenharmony_ci
70f6603c60Sopenharmony_ci  cflags = [
71f6603c60Sopenharmony_ci    "-Wall",
72f6603c60Sopenharmony_ci    "-Werror",
73f6603c60Sopenharmony_ci    "-g3",
74f6603c60Sopenharmony_ci    "-Dprivate=public",
75f6603c60Sopenharmony_ci    "-Dprotected=public",
76f6603c60Sopenharmony_ci  ]
77f6603c60Sopenharmony_ci
78f6603c60Sopenharmony_ci  include_dirs = [
79f6603c60Sopenharmony_ci    "$comPath/rosen/modules/2d_engine",
80f6603c60Sopenharmony_ci    "//third_party/googletest/googletest/include",
81f6603c60Sopenharmony_ci  ]
82f6603c60Sopenharmony_ci  enable_text_gine = true
83f6603c60Sopenharmony_ci  if (enable_text_gine) {
84f6603c60Sopenharmony_ci    include_dirs += [ "$comPath/rosen/modules/2d_engine/rosen_text/export" ]
85f6603c60Sopenharmony_ci    defines = [ "USE_GRAPHIC_TEXT_GINE" ]
86f6603c60Sopenharmony_ci  }
87f6603c60Sopenharmony_ci
88f6603c60Sopenharmony_ci  external_deps = [
89f6603c60Sopenharmony_ci    "graphic_2d:2d_graphics",
90f6603c60Sopenharmony_ci    "graphic_2d:EGL",
91f6603c60Sopenharmony_ci    "graphic_2d:GLESv3",
92f6603c60Sopenharmony_ci    "graphic_2d:native_drawing_ndk",
93f6603c60Sopenharmony_ci    "hilog:libhilog",
94f6603c60Sopenharmony_ci    "image_framework:pixelmap",
95f6603c60Sopenharmony_ci  ]
96f6603c60Sopenharmony_ci  deps = [ "//third_party/googletest:gtest_main" ]
97f6603c60Sopenharmony_ci}
98