1# Copyright (c) 2022 Huawei Device Co., Ltd.. All rights reserved.
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
17ohos_executable("drawing_text_sample") {
18  install_enable = true
19
20  sources = [ "drawing_text_c_sample.cpp" ]
21
22  include_dirs = [
23    "$graphic_2d_root/rosen/modules/2d_graphics/include",
24    "$graphic_2d_root/rosen/modules/2d_graphics/src",
25    "$graphic_2d_root/rosen/modules/render_service_client",
26  ]
27
28  configs = [ "$graphic_2d_root/rosen/modules/2d_engine/rosen_text/ui:rosen_text_ui_config" ]
29
30  deps = [
31    "$graphic_2d_root/rosen/modules/2d_graphics:2d_graphics",
32    "$graphic_2d_root/rosen/modules/2d_graphics/drawing_ndk:native_drawing_ndk",
33    "$graphic_2d_root/rosen/modules/render_service_client:librender_service_client",
34  ]
35
36  external_deps = [
37    "hilog:libhilog",
38    "image_framework:image_native",
39  ]
40
41  subsystem_name = "graphic"
42  part_name = "graphic_2d"
43}
44