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