• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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")
15
16is_ok = true
17
18config("texgine_drawing_public_config") {
19  include_dirs = [ "./src" ]
20}
21
22ohos_shared_library("libtexgine_drawing") {
23  if (is_ok) {
24    sources = [
25      "src/texgine_canvas.cpp",
26      "src/texgine_dash_path_effect.cpp",
27      "src/texgine_data.cpp",
28      "src/texgine_font.cpp",
29      "src/texgine_font_manager.cpp",
30      "src/texgine_font_metrics.cpp",
31      "src/texgine_font_style.cpp",
32      "src/texgine_font_style_set.cpp",
33      "src/texgine_mask_filter.cpp",
34      "src/texgine_paint.cpp",
35      "src/texgine_path.cpp",
36      "src/texgine_path_1d_path_effect.cpp",
37      "src/texgine_path_effect.cpp",
38      "src/texgine_picture.cpp",
39      "src/texgine_rect.cpp",
40      "src/texgine_stream.cpp",
41      "src/texgine_string.cpp",
42      "src/texgine_text_blob.cpp",
43      "src/texgine_text_blob_builder.cpp",
44      "src/texgine_typeface.cpp",
45    ]
46  }
47
48  public_configs = [ ":texgine_drawing_public_config" ]
49
50  platform = current_os
51  if (platform == "mingw") {
52    platform = "windows"
53  }
54
55  if (defined(use_new_skia) && use_new_skia) {
56    public_deps = [ "//third_party/skia:skia_$platform" ]
57  } else {
58    public_deps = [ "//third_party/flutter/build/skia:ace_skia_$platform" ]
59  }
60
61  deps = []
62
63  part_name = "graphic_2d"
64  subsystem_name = "graphic"
65}
66