• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2023 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/arkui/ace_engine/ace_config.gni")
16
17## Build drawing_sample {{{
18config("drawing_sample_config") {
19  visibility = [ ":*" ]
20
21  cflags = [
22    "-Wall",
23    "-Werror",
24    "-g3",
25  ]
26}
27
28ohos_executable("drawing_sample") {
29  install_enable = true
30
31  sources = [
32    "drawing_sample.cpp",
33    "include/shadow_test.h",
34    "main.cpp",
35    "src/bitmap_test.cpp",
36    "src/camera_test.cpp",
37    "src/filter_test.cpp",
38    "src/image_test.cpp",
39    "src/layer_context.cpp",
40    "src/matrix_test.cpp",
41    "src/path_effect_test.cpp",
42    "src/path_test.cpp",
43    "src/pen_test.cpp",
44    "src/shader_test.cpp",
45  ]
46
47  configs = [ ":drawing_sample_config" ]
48
49  include_dirs = [
50    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include",
51    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src",
52    "//foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/include",
53    "//foundation/multimedia/image_framework/interfaces/innerkits/include",
54    "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/include",
55    "//foundation/graphic/graphic_2d/rosen/include/common",
56    "//foundation/graphic/graphic_2d/rosen/modules/composer/vsync/include",
57    "//foundation/graphic/graphic_2d/interfaces/inner_api/composer",
58  ]
59
60  deps = [
61    "//foundation/graphic/graphic_2d:libsurface",
62    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics",
63    "//foundation/graphic/graphic_2d/rosen/modules/composer:libcomposer",
64    "//foundation/graphic/graphic_2d/utils:sync_fence",
65  ]
66
67  deps += [ "//third_party/skia:skia_ohos" ]
68  external_deps = [
69    "eventhandler:libeventhandler",
70    "hilog:libhilog",
71  ]
72
73  part_name = "graphic_2d"
74  subsystem_name = "graphic"
75}
76## Build drawing_sample }}}
77