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/graphic/graphic_2d/graphic_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 "$graphic_2d_root/rosen/modules/2d_graphics/include", 51 "$graphic_2d_root/rosen/modules/2d_graphics/src", 52 "$graphic_2d_root/rosen/samples/2d_graphics/test/include", 53 "//foundation/multimedia/image_framework/interfaces/innerkits/include", 54 "$graphic_2d_root/rosen/modules/composer/hdi_backend/include", 55 "$graphic_2d_root/rosen/include/common", 56 "$graphic_2d_root/rosen/modules/composer/vsync/include", 57 "$graphic_2d_root/interfaces/inner_api/composer", 58 ] 59 60 deps = [ 61 "$graphic_2d_root/rosen/modules/2d_graphics:2d_graphics", 62 "$graphic_2d_root/rosen/modules/composer:libcomposer", 63 ] 64 65 external_deps = [ 66 "eventhandler:libeventhandler", 67 "graphic_surface:surface", 68 "hilog:libhilog", 69 "skia:skia_canvaskit", 70 ] 71 72 part_name = "graphic_2d" 73 subsystem_name = "graphic" 74} 75## Build drawing_sample }}} 76